]> git.puffer.fish Git - matthieu/frr.git/commit
tools: quagga-reload should raise Exception instead of exiting
authorDaniel Walton <dwalton@cumulusnetworks.com>
Tue, 27 Sep 2016 15:56:36 +0000 (15:56 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Tue, 27 Sep 2016 15:56:36 +0000 (15:56 +0000)
commit276887bb1c2961fa37b42ce7160346f1417577a8
tree245841af101361419a93a7443d71a72dbc29dc80
parent0cf74a83920687f3c8be84a8c7d796acf2cb6e95
tools: quagga-reload should raise Exception instead of exiting

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
NCLU imports quagga-reload.py and uses its Config class to parse
Quagga.conf.  The Config class will call 'vtysh -m -f Quagga.conf" and
if that exited with an error Config would call sys.exit(1) which in my
cases causes the NCLU daemon to exit which is bad.  The fix is to have
the Config class raise an exception instead of exiting, then NCLU can
catch the exception, log it and move on.
tools/quagga-reload.py