mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
Remove upper device check warnings + implicitly follow upperifaces when
a logical interface comes up Ticket: CM-2493 Reviewed By: Testing Done: Tested ifup, ifdown in bond bridge setup Also, implicitly pick up the upperifaces (even when user has not specified --with-depends) for logical interfaces. This is because when a logical interface goes down/deleted, kernel impilicity deletes its upperifaces. so its better to implicitly bring up upperifaces. example bridge name bridge id STP enabled interfaces br0 8000.7072cf8c2fca yes bond1 bond2 br2000 8000.7072cf8c2fca yes bond1.2000 bond2.2000 br2001 8000.7072cf8c2fca yes bond1.2001 bond2.2001 bridge name bridge id STP enabled interfaces br0 8000.000000000000 yes br2000 8000.000000000000 yes br2001 8000.000000000000 yes bridge name bridge id STP enabled interfaces br0 8000.7072cf8c2fca yes bond1 bond2 br2000 8000.7072cf8c2fca yes bond1.2000 bond2.2000 br2001 8000.7072cf8c2fca yes bond1.2001 bond2.2001
This commit is contained in:
@@ -803,7 +803,7 @@ class ifupdownMain(ifupdownBase):
|
||||
for objidx in range(0, len(lastifaceobjlist)):
|
||||
oldobj = lastifaceobjlist[objidx]
|
||||
newobj = newifaceobjlist[objidx]
|
||||
if newobj.is_different(oldobj):
|
||||
if not newobj.compare(oldobj):
|
||||
ifacedownlist.append(ifname)
|
||||
continue
|
||||
|
||||
|
Reference in New Issue
Block a user