]> git.proxmox.com Git - mirror_iproute2.git/commit
ip: Allow to easy change network namespace
authorVadim Kochan <vadim4j@gmail.com>
Wed, 24 Dec 2014 21:04:09 +0000 (23:04 +0200)
committerStephen Hemminger <shemming@brocade.com>
Sat, 27 Dec 2014 18:22:29 +0000 (10:22 -0800)
commit52700d40a2b3ee20afcdfa999c611fef0107579a
tree68fa2d3b26ca8d25a32a6723d8ea1679f7b0f727
parenteb67e4498aec35eb16eaf894329f85b6316dabe8
ip: Allow to easy change network namespace

Added new '-netns' option to simplify executing following cmd:

    ip netns exec NETNS ip OPTIONS COMMAND OBJECT

    to

    ip -n[etns] NETNS OPTIONS COMMAND OBJECT

e.g.:

    ip -net vnet0 link add br0 type bridge
    ip -n vnet0 link

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
ip/ip.c
man/man8/ip.8