]> git.proxmox.com Git - mirror_ifupdown2.git/commit
addons: bridge: Fix KeyError when 'bridge-pvid' is not in the set 'bridge-vid'
authorNikhil <nikhil@cumulusnetworks.com>
Mon, 25 Jul 2016 17:32:47 +0000 (10:32 -0700)
committerNikhil <nikhil@cumulusnetworks.com>
Tue, 26 Jul 2016 17:33:46 +0000 (10:33 -0700)
commit1efda6c232f67717da5ffbfa2669ff14886b9dfc
tree6d4a1d471cb4ee6d1cb1cce317a5004c6dc251c8
parentbb70f923856a31dd191cc36d4ef290c71e8a47ff
addons: bridge: Fix KeyError when 'bridge-pvid' is not in the set 'bridge-vid'

Ticket: CM-11998
Reviewed By: roopa
Testing Done: used same config given in bug descreption

When we try to unconditionally remove 'pvid' from 'vids' set,
we run into KeyError if 'vids' set doesn't contain 'pvid'

Example configuration:
auto swp9
iface swp9
   mstpctl-portautoedge no

auto frontnet
iface frontnet
   bridge-vlan-aware yes
   bridge-ports swp9
   bridge-vids 10
   bridge-stp on

Signed-off-by: Nikhil <nikhil@cumulusnetworks.com>
addons/bridge.py