]> git.proxmox.com Git - mirror_ifupdown2.git/commit
ifupdown2 loses interfaces on second down of swp port
authorSam Tannous <stannous@cumulusnetworks.com>
Fri, 24 Apr 2015 00:19:22 +0000 (20:19 -0400)
committerSam Tannous <stannous@cumulusnetworks.com>
Fri, 24 Apr 2015 00:27:44 +0000 (20:27 -0400)
commit4c773918da3321b64a4423bed15b706710a9dbd9
treefc1e518a3afefa02acadbb3b8b5b9c62b4d20ee0
parentef7b7c04b4e94cbb6a9cfd98de6b92cde56eb576
ifupdown2 loses interfaces on second down of swp port

Ticket: CM-5693
Reviewed By: roopa
Testing Done: tested bridge and bonds with interfaces with configs

Both bridge and mstpctl modules set priv_flags on interfaces
that have configs (like link-speed) even when used as bridge-ports.
And this collision causes statemanager.ifaceobj_sync() to never get called
because ifaceobj.priv_flags is 1 (we return immediately):
The fix was to create a new iface module_flags array to carry module info.
addons/bridge.py
addons/mstpctl.py
ifupdown/iface.py