]> git.proxmox.com Git - mirror_ifupdown2.git/commit
addons: bridge: bridge-portmcfl: add support for yes/no value
authorJulien Fortin <julien@cumulusnetworks.com>
Tue, 3 Jan 2017 15:48:59 +0000 (18:48 +0300)
committerJulien Fortin <julien@cumulusnetworks.com>
Tue, 3 Jan 2017 15:48:59 +0000 (18:48 +0300)
commit0b1bea5bb3572f467ff1e69694fe0ed664d47c9a
treebb6ed809ccad358e6298a439d4f0d26f4bfb5946
parent291bdc04ec5aadbd5911f1ad338678ecad3163c3
addons: bridge: bridge-portmcfl: add support for yes/no value

Ticket: CM-14146
Reviewed By: Roopa, Daniel W, Nikhil G
Testing Done:

bridge-portmcfl attribute needs to validate an <interface-yes-no-0-1-list>
to support the yes/no syntax.
This is an incremental commit for CM-8866

$ ifquery -a
auto br0
iface br0
      bridge-ports swp1 swp2 swp3 swp4
      bridge-portmcfl swp1=yes swp2=no swp3=1 swp4=0

auto br1
iface br1
      bridge-vlan-aware yes
      bridge-ports swp5 swp6 swp7 swp8

auto swp5
iface swp5
      bridge-portmcfl yes

auto swp6
iface swp6
      bridge-portmcfl no

auto swp7
iface swp7
      bridge-portmcfl 1

auto swp8
iface swp8
      bridge-portmcfl 0
$

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
addons/bridge.py