]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ip-link: man: Document existence of netns argument in add command
authorDaniel Xu <dxu@dxuuu.xyz>
Thu, 8 Dec 2022 18:53:06 +0000 (11:53 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 9 Dec 2022 18:05:04 +0000 (10:05 -0800)
ip-link-add supports netns argument just like ip-link-set. This commit
documents the existence of netns in help text and man page.

Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/iplink.c
man/man8/ip-link.8.in

index 301a535e66d957ee3b81fb6d301de5ad634c76f4..adb9524c3b936893d58769e3e2cd6e88bbfc6c1e 100644 (file)
@@ -68,6 +68,7 @@ void iplink_usage(void)
                        "                   [ mtu MTU ] [index IDX ]\n"
                        "                   [ numtxqueues QUEUE_COUNT ]\n"
                        "                   [ numrxqueues QUEUE_COUNT ]\n"
+                       "                   [ netns { PID | NAME } ]\n"
                        "                   type TYPE [ ARGS ]\n"
                        "\n"
                        "       ip link delete { DEVICE | dev DEVICE | group DEVGROUP } type TYPE [ ARGS ]\n"
index 88ad9d7baab7977b6cdd2e1206091ebe80cb5430..6c72e122442fdaea23dd108e06590642513c6d28 100644 (file)
@@ -43,6 +43,8 @@ ip-link \- network device configuration
 .br
 .RB "[ " gro_max_size
 .IR BYTES " ]"
+.RB "[ " netns " {"
+.IR PID " | " NETNSNAME " } ]"
 .br
 .BI type " TYPE"
 .RI "[ " ARGS " ]"
@@ -437,6 +439,10 @@ on this device.
 specifies the desired index of the new virtual device. The link
 creation fails, if the index is busy.
 
+.TP
+.BI netns " { PID | NAME } "
+specifies the desired network namespace to create interface in.
+
 .TP
 VLAN Type Support
 For a link of type