commit | d182ee1307c7a83b581d8f6d473bbce2004420c0 | [log] [tgz] |
---|---|---|
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | Tue Feb 17 17:30:37 2015 +0100 |
committer | Stephen Hemminger <shemming@brocade.com> | Sat Feb 21 16:54:53 2015 -0800 |
tree | 8d862f6b6d5689f72016d4e8224d21a2ee3b1ab9 | |
parent | c16298bea095380bb8ef0ceaf13e674f21d49c61 [diff] |
ipnetns: allow to get and set netns ids The kernel now provides ids for peer netns. This patch implements a new command 'set' to assign an id. When netns are listed, if an id is assigned, it is now displayed. Example: $ ip netns add foo $ ip netns set foo 1 $ ip netns foo (id: 1) init_net Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>