]> git.proxmox.com Git - mirror_ifupdown2.git/commit
ifupdown: scheduler: ignore errors generated by upperiface bring up
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Wed, 21 Sep 2016 23:03:11 +0000 (16:03 -0700)
committerRoopa Prabhu <roopa@cumulusnetworks.com>
Thu, 22 Sep 2016 20:54:16 +0000 (13:54 -0700)
commit3fb52fa360e3aaaf7e2802b0e7afa9328278fda4
tree7fb947d03f5a36d05df48d21a55155bc78958166
parentcd45e6295626b4aaad38a88acc1d653d16110187
ifupdown: scheduler: ignore errors generated by upperiface bring up

Ticket: CM-12923
Reviewed By: julien, nikhil
Testing Done: tested implicit upperiface bring up

upperiface bringup is best effort, so ignore errors.

$ifquery -c -a
..[snip]...
auto br0
iface br0
        bridge-vlan-aware yes                        [pass]
        bridge-ports vx-14 vx-11 vx-10 vx-13 vx-12   [pass]

$ifdown vx-10
$ifdown vx-11

before patch:
$ifup vx-10
..[snip]...
info: running upperifaces (parent interfaces) if available ..
info: br0: running ops ...
error: br0: bridge port vx-11 does not exist
....

After patch:
$ifup vx-10
..[snip]...
info: running upperifaces (parent interfaces) if available ..
info: br0: running ops ...
....

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
ifupdown/ifupdownflags.py
ifupdown/scheduler.py
ifupdownaddons/modulebase.py