Go to file
Donald Sharp 3221dca81e vtysh: Set an erroneous exit code if dry run fails because of syntax error
vtysh has a -C option to do a dry run of the quagga commands. However, the
program always returns 0 even when there's an error detected in the command.
Furthermore, it only parses vtysh.conf, not Quagga.conf.

This patch makes vtysh -C parse Quagga.conf also and return a non-zero
exit code so that network automation tools can catch this to flag errors in
syntax. This non-zero exit code along with printing the exact error with the
line number and offending line itself should help in fixing the error. But
this lack of proper error code requires the automation tools to go through
an additional hoop to validate the syntax.

Signed-off-by: Dinesh G Dutt <ddutt@cumulusnetworks.com>
2016-03-09 07:25:02 -05:00
bgpd BGP: Update commands for VRF support 2016-03-07 00:08:49 +00:00
cumulus/etc quagga: remove babel 2016-02-11 08:55:24 -08:00
debian debian: Turn on Poll usage 2016-03-04 12:33:57 -05:00
doc quagga: remove babel 2016-02-11 08:55:24 -08:00
fpm fpm: Add public header for Forwarding Plane Manager 2012-11-30 21:41:17 +01:00
init build: delete .cvsignore files 2011-12-13 14:27:01 +04:00
isisd Quagga: Support VRF unregister for clients 2016-02-12 11:37:33 -08:00
lib lib: Allow daemons to startup without an actual conf file 2016-03-07 14:57:16 -05:00
m4 build: fix "pragma weak" mixups 2013-02-09 03:00:12 +01:00
ospf6d OSPFv3: Check area before scheduling SPF 2016-03-07 23:49:45 +00:00
ospfclient Quagga: Fixup some compile warnings 2015-11-23 13:31:11 -08:00
ospfd Make duplicate ospf commands hidden 2016-03-02 19:56:28 +00:00
pkgsrc build: delete .cvsignore files 2011-12-13 14:27:01 +04:00
ports build: delete .cvsignore files 2011-12-13 14:27:01 +04:00
redhat quagga: remove babel 2016-02-11 08:55:24 -08:00
ripd Quagga: Support VRF unregister for clients 2016-02-12 11:37:33 -08:00
ripngd Quagga: Support VRF unregister for clients 2016-02-12 11:37:33 -08:00
solaris build: delete .cvsignore files 2011-12-13 14:27:01 +04:00
tests quagga: remove babel 2016-02-11 08:55:24 -08:00
tools quagga-reload should not call vtysh for every command that needs to be 2016-03-04 00:46:58 +00:00
vtysh vtysh: Set an erroneous exit code if dry run fails because of syntax error 2016-03-09 07:25:02 -05:00
watchquagga Fix watchquagga to watch just one daemon 2015-08-24 10:50:21 -07:00
zebra Zebra: Cleanup registered nexthops upon client exit 2016-03-02 01:08:43 +00:00
.gitignore git: add (generated) cscope files to .gitignore 2015-09-22 11:54:09 -07:00
AUTHORS
bootstrap.sh
buildtest.sh quagga: remove babel 2016-02-11 08:55:24 -08:00
ChangeLog
configure.ac lib: Add ability to use poll() instead of select 2016-03-04 12:33:57 -05:00
COPYING *: nuke ^L (page feed) 2014-06-04 06:58:02 +02:00
COPYING.LIB *: nuke ^L (page feed) 2014-06-04 06:58:02 +02:00
HACKING.pending HACKING.pending: Add Quagga-RE details 2012-03-02 11:56:38 +00:00
HACKING.tex HACKING.tex: Change to a LaTeX version of HACKING 2012-03-08 16:14:13 +00:00
INSTALL.quagga.txt build: improve backtrace support/detection 2014-04-01 17:20:44 +02:00
Makefile.am quagga: remove babel 2016-02-11 08:55:24 -08:00
NEWS doc: update NEWS for 0.99.23 changes 2014-06-24 07:12:01 +02:00
README
README.NetBSD
REPORTING-BUGS
SERVICES
stamp-h.in
TODO doc: update TODO for ospf6d work & bgp multipath 2013-04-16 11:56:11 +02:00
update-autotools

Quagga is free software that manages various IPv4 and IPv6 routing
protocols.

Currently Quagga supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1,
RIPv2, and RIPng as well as very early support for IS-IS.
  
See the file INSTALL.quagga.txt for building and installation instructions.
  
See the file REPORTING-BUGS to report bugs.
  
Quagga is free software. See the file COPYING for copying conditions.