From: Daniel Xu Date: Thu, 8 Dec 2022 18:53:06 +0000 (-0700) Subject: ip-link: man: Document existence of netns argument in add command X-Git-Tag: v6.1.0~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a408bda2eec967bdb5dde5bb3dd99f7d9462f66;p=thirdparty%2Fiproute2.git ip-link: man: Document existence of netns argument in add command 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 Signed-off-by: Stephen Hemminger --- diff --git a/ip/iplink.c b/ip/iplink.c index 301a535e6..adb9524c3 100644 --- a/ip/iplink.c +++ b/ip/iplink.c @@ -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" diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in index 88ad9d7ba..6c72e1224 100644 --- a/man/man8/ip-link.8.in +++ b/man/man8/ip-link.8.in @@ -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