]> git.proxmox.com Git - mirror_ifupdown2.git/commit - ifupdown2/ifupdown/scheduler.py
Remove upper device check warnings + implicitly follow upperifaces when
authorroopa <roopa@cumulusnetworks.com>
Thu, 27 Mar 2014 21:00:00 +0000 (14:00 -0700)
committerroopa <roopa@cumulusnetworks.com>
Thu, 27 Mar 2014 21:00:00 +0000 (14:00 -0700)
commitca3f4fc75acc701156c661af00359131256bf5a0
treef0676a3b19627ae0f513d3c786de330c8b32eece
parent53b0022499ede32623a968bd82c499286830a06d
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
pkg/iface.py
pkg/ifupdownmain.py
pkg/scheduler.py
pkg/statemanager.py