]> git.proxmox.com Git - mirror_ifupdown2.git/commit
addons: bridge: fix default pvid handling in cases where cache is stale
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Wed, 10 Aug 2016 22:35:48 +0000 (15:35 -0700)
committerRoopa Prabhu <roopa@cumulusnetworks.com>
Thu, 11 Aug 2016 00:45:36 +0000 (17:45 -0700)
commit5061730ea5bf7ee86e21175ccdb1fe10fb7c20ad
tree0da793d70c1e0a1adb68be3d6b9fa72f715ab276
parent14593ccd63ab3c1ea137323d60d93c779fa0b98f
addons: bridge: fix default pvid handling in cases where cache is stale

Ticket: CM-12355
Reviewed By: julien, nikhil
Testing Done: tested with failing config

This can happen if the bridge vlans were
cached before the interface become a bridge port.
and when the interface becomes a bridge port
kernel adds a default pvid of 1. so this patch
assumes a default pvid is 1 if we did not find
anything in the cache. This will delete
the default pvid of 1 if the user has configured a
different pvid.

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