]> 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>
Wed, 3 Jun 2015 17:06:54 +0000 (13:06 -0400)
commitf7e2962a925921ac59dade0a62933da290c39eba
treea79a757bb45d8b0e9da8c4bbceb6bd49c0221959
parent2a7c45e8b48b30a3c25c28b6042b62534fe726cb
ifupdown2 loses interfaces on second down of swp port

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.
(cherry picked from commit 56924fef20984fd959939bf7f17c3dd6fd6b137a)
(cherry picked from commit 28d96f7643e2885b1f9c17ad9324a6dbb1b0f8c7)
ifupdown2/addons/bridge.py
ifupdown2/addons/mstpctl.py
ifupdown2/ifupdown/iface.py