]> git.proxmox.com Git - mirror_ifupdown2.git/commit
addons: bridge: fix running_vids value when cache is stale
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Fri, 19 Aug 2016 18:09:57 +0000 (11:09 -0700)
committerNikhil <nikhil@cumulusnetworks.com>
Wed, 24 Aug 2016 17:19:55 +0000 (10:19 -0700)
commit5859b3228e063aacff3ca159605652b9f4799400
tree4956476acb59a9f1173f64876d7f47f9e198caf8
parent0184c8c537894f8c84646d25801b00f687221506
addons: bridge: fix running_vids value when cache is stale

Ticket: CM-12552
Reviewed By: julien, nikhil
Testing Done: tested with failing config with bridge-access 1

This is similar to the fix done in the below commit for pvid:
"5061730ea5bf ("addons: bridge: fix default pvid handling in cases where
cache is stale")"

easier steps to reproduce:
- have a vlan aware bridge with more than one ports
- add 'bridge-access 1' to one of the ports
- boot the box with the config
- check that the  vlans are fine
- ifdown <interface_with_bridge_access_1>
- ifreload -a
- the interface with bridge_access 1 does
not have the pvid flag on vlan 1

This patch makes sure we assume the right running
vid and pvid value ie [1] and 1 if the
cache returns no values. vid = [1] and pvid = 1
are the kernel default/initial values for a port.

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
addons/bridge.py