]> git.proxmox.com Git - mirror_ifupdown2.git/commit - ifupdown2/ifupdown/scheduler.py
execute 'up' on upper devices if ifup is called with --with-depends
authorroopa <roopa@cumulusnetworks.com>
Tue, 18 Mar 2014 23:38:00 +0000 (16:38 -0700)
committerroopa <roopa@cumulusnetworks.com>
Tue, 18 Mar 2014 23:38:00 +0000 (16:38 -0700)
commitc798b0f4aa66736f9c260886c0bf4181dc755211
tree27905609e54a026e7876804098e90b88bc263836
parentdab8d81ec74842e72bb742e665f63bdeb5ba097e
execute 'up' on upper devices if ifup is called with --with-depends

Ticket: CM-1438
Reviewed By: review pending
Testing Done: Tested ifup/ifdown

Before this patch, `ifup --with-depends <iface>` only brought up
lowerdevices. Because those were enough for iface to function.

And if ifaces above it (upperdevices) needed fixing, user could just
execute `ifup --with-depends <ifaceupper>`.

But in a recent, bond under a bridge bug in 2.0, got me thinking that
its probably better to up the upperdevices which might be impacted as
well. and this patch does just that.

The patch includes changes to make ifupdown generate dependency
information for all interfaces even if the user requested to operate
on a single interface. This is to get a full view of the interfaces file.
This might add some overhead. Should not change anything during boot.
Still looking at ways to optimize.
pkg/graph.py
pkg/iface.py
pkg/ifupdownmain.py
pkg/scheduler.py
sbin/ifupdown