]> git.proxmox.com Git - mirror_ifupdown2.git/commit - ifupdown2/ifupdown/ifupdownmain.py
ifupdownmain: scheduler: propagate sched error on interfaces to upper layers
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Fri, 18 Mar 2016 18:27:42 +0000 (11:27 -0700)
committerRoopa Prabhu <roopa@cumulusnetworks.com>
Fri, 18 Mar 2016 18:45:54 +0000 (11:45 -0700)
commit2009513fa24b2c08e704052ac176218737510ca5
tree9ff645667bc0ee2d881664d18c2ffabd50b4a38e
parentd54baa2232de085321b8d39c8a08d6e57c593b85
ifupdownmain: scheduler: propagate sched error on interfaces to upper layers

Ticket: CM-7168
Reviewed By: julien, nikhil, stannous
Testing Done: Tested with errors in interfaces file

This patch changes a few errors to warns. and propagates errors
on ifaceobjects to upperlayers.

- any exception passed to upper layers (/sbin/ifupdown) results in
exit code of 1

- It uses a global SCHED flag to flag a scheduler error (maybe there is
  a better way). But traversing all the interfaces again to check status
is an overkill

- Changes a few errors to warns

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