1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

Fix check for bridge interface in scheduler during upperiface check

Ticket: CM-6525
Reviewed By: trivial
Testing Done: Tested with failing config mentioned in the bug

c4d27f53e965af5edc938acae25bcb249a2214a7 introduced a
new interface kind of BRIDGE_VLAN_AWARE which broke the
scheduler check. This patch fixes the check.
This commit is contained in:
Roopa Prabhu
2015-06-27 10:12:21 -07:00
parent 7f67f3e59f
commit 914caaa2d0

View File

@ -362,7 +362,7 @@ class ifaceScheduler():
& ifupdownobj.NOCONFIG)
if (((has_config and ifupdownobj.get_ifaceobjs_saved(u)) or
not has_config) and (not ifupdownobj.link_exists(u)
or uifaceobj.link_kind == ifaceLinkKind.BRIDGE)):
or (uifaceobj.link_kind & ifaceLinkKind.BRIDGE))):
nulist.append(u)
upperifacenames.extend(nulist)
allupperifacenames.extend(upperifacenames)