]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/iplink_ipvlan.c
ip/ipvlan: enhance ability to add mode flags to existing modes
authorMahesh Bandewar <maheshb@google.com>
Mon, 30 Oct 2017 20:57:51 +0000 (13:57 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 1 Nov 2017 21:17:01 +0000 (22:17 +0100)
commit1ef5c95201d41ac8527a2eb2d977f63a79532f02
treef03398087dbf08c1fb854246022f63df32baec0e
parentfe388b9e0c19a0127df9be94e7c98f4ccc981036
ip/ipvlan: enhance ability to add mode flags to existing modes

IPvlan supported bridge-only functionality prior to commits
a190d04db937 ('ipvlan: introduce 'private' attribute for all
existing modes.') and fe89aa6b250c ('ipvlan: implement VEPA mode').
These two commits allow to configure the VEPA and private modes now.
This patch adds those options in ip command.

e.g.
  bash:~# ip link add link eth0 name ipvl0 type ipvlan mode l2 private
  -or-
  bash:~# ip link add link eth0 type ipvl0 type ipvlan mode l2 vepa

Also the output will reflect the mode and the mode-flag accordingly.
e.g.
  bash:~# ip -details link show ipvl0
  4: ipvl0@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc ...
     link/ether 00:1a:11:44:a5:3e brd ff:ff:ff:ff:ff:ff promiscuity 0
     ipvlan  mode l2 private addrgenmode eui64 numtxqueues 1 ...

Signed-off-by: Mahesh Bandewar <maheshb@google.com>
ip/iplink_ipvlan.c