Daniel Walton
276887bb1c
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.
2016-09-27 15:56:36 +00:00
Daniel Walton
a4b2b61027
bgpd: fixed some bgp_routemap CHECK MEs
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-27 13:24:19 +00:00
Daniel Walton
4c9bd27548
bgpd: fixed some bgp_routemap CHECK MEs
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-27 05:05:12 +00:00
Daniel Walton
b44c509a14
isisd: resolve CHECK MEs
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-27 04:26:43 +00:00
Daniel Walton
7c17a8f2fd
bgpd: remove unused variable
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-27 00:31:28 +00:00
Daniel Walton
00e3b3f8ed
Merge branch 'vtysh-grammar' of ssh://stash.cumulusnetworks.com:7999/quag/quagga into vtysh-grammar
2016-09-27 00:27:00 +00:00
Daniel Walton
80d3d26b36
pimd: removed undebug CHECK MEs
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-27 00:26:41 +00:00
Quentin Young
cc13f81fb8
Merge branch 'vtysh-grammar' of ssh://stash.cumulusnetworks.com:7999/quag/quagga into vtysh-grammar
2016-09-27 00:10:55 +00:00
Quentin Young
55c727dd75
ripd, ripngd: cli refactor
...
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2016-09-27 00:10:31 +00:00
Daniel Walton
e961923c72
bgpd, etc: changed .LINE to LINE...
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-27 00:07:46 +00:00
Daniel Walton
31500417e4
bgpd: fixed more CHECK MEs
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-26 23:50:02 +00:00
Donald Sharp
5bebf56884
zebra: Put back missing code
...
When pulling forward the zebra_vty.c changes I accidently dropped
these changes from earlier commits.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2016-09-26 18:29:04 -04:00
Donald Sharp
28dadafced
zebra: Refactor 'no ipv6 route XXXX' for new cli
...
Refactor the 'no ipv6 route XXXX' commands to
work under the new cli and to collapse the code
to a much smaller set.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2016-09-26 18:29:04 -04:00
Donald Sharp
96121d19fa
zebra: Refactor 'ipv6 route XXXX' for new cli
...
Take existing code for 'ipv6 route XXX' and
refactor to use the new cli.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2016-09-26 18:29:04 -04:00
Donald Sharp
fb5b479d9d
zebra: Fixup 'no ip route....'
...
Rework the 'no ip route XXXX' commands to use the new cli
and collapse all DEFUN's that we could into a much smaller
set of commands.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2016-09-26 18:29:04 -04:00
Donald Sharp
030721b7ef
zebra: Refactore "ip route XXXXXX" commands
...
Convert all 'ip route XXXX' commands to use the new syntax and
collapse all functions that we can easily do.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2016-09-26 18:29:04 -04:00
Daniel Walton
39573b33cb
bgpd: compress "show ip bgp neighbor received prefix-list"
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-26 20:56:20 +00:00
Daniel Walton
2525cf394a
bgpd: compress bgp_show_neighbor_route() calls
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-26 18:44:58 +00:00
Daniel Walton
a636c635ae
bgpd: collaps show ip bgp, show ip bgp x.x.x.x, etc calls
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-26 18:08:45 +00:00
Donald Sharp
0cf74a8392
lib: Allow more space in thread.c output
...
When displaying thread time for long running/busy
protocols, the space allocated may not be sufficient.
Allow the runtime to take a bit more space.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2016-09-26 14:06:23 -04:00
Renato Westphal
f134bf2b52
zebra: add missing files to EXTRA_DIST
...
This fixes RPM package generation on CentOS 7.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2016-09-26 11:41:50 -04:00
Matthieu Boutier
fb23cf4abe
lib: Make distribute.c accepts both v4 and v6.
...
distribute.c doesn't allow to manage both v4 and v6 distribute lists. This
patch fix this problem by having 4 DISTRIBUTE* values in the enumeration instead
of two. The code in all daemons using distribute.c is adapted.
2016-09-26 10:52:41 -04:00
Matthieu Boutier
644ed6c5de
ripngd: code simplification for redistribution.
...
Use loops and variables instead of doing each cases by hand.
Use boolean instead of having 2 almost identical functions.
2016-09-26 10:52:41 -04:00
Matthieu Boutier
7c989d74b5
ripd: code simplification for redistribution.
...
Use loops and variables instead of doing each cases by hand.
Use boolean instead of having 2 almost identical functions.
2016-09-26 10:52:41 -04:00
Matthieu Boutier
ee5bb56117
lib: simplify distribute.c's code.
...
Use loops and variables instead of doing each cases by hand.
Use static functions instead of rewriting code.
2016-09-26 10:52:41 -04:00
Daniel Walton
5bf159563c
bgpd: bgp_vty.c compiles now
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-26 04:59:47 +00:00
Daniel Walton
74ca3d330b
bgpd: combine "show ip bgp summary" commands into one DEFUN
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-26 01:12:24 +00:00
Quentin Young
c7178fe784
bgpd: minor grammar corrections
...
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2016-09-26 01:06:40 +00:00
Daniel Walton
b09b5ae033
bgpd: combine "clear bgp, clear ip bgp" commands into one DEFUN
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-26 00:47:13 +00:00
Daniel Walton
199d90a10e
Expand #defines in command strings
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-25 16:49:39 +00:00
Daniel Walton
3ce54f7812
Expand #defines in command strings
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
Reviewed-by: Sam Tannous <stannous@cumulusnetworks.com>
Ticket:
2016-09-25 14:22:48 +00:00
Daniel Walton
9ccf14f739
Expand #defines in command strings
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-25 14:10:48 +00:00
Daniel Walton
92300491f6
zebra: CHECK ME fixes
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-25 03:00:04 +00:00
Daniel Walton
8334fd5ade
bgpd: fixed more CHECK MEs in bgp_vty.c
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-25 02:29:38 +00:00
Quentin Young
34ccea1ec5
zebra: refactor rtadv.c
...
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2016-09-25 02:13:43 +00:00
Quentin Young
6af6be8616
zebra: refactor zserv.c
...
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2016-09-24 21:58:50 +00:00
Quentin Young
7757e5e1ae
zebra: fix zebra_routemap.c checkme's
...
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2016-09-24 17:42:34 +00:00
Daniel Walton
838758acbe
bgpd: fixed some CHECK MEs
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-24 03:14:42 +00:00
Daniel Walton
412e5cd94f
lib: added strmatch()
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-23 22:12:11 +00:00
Quentin Young
d862bffbda
lib: lib compiles
...
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2016-09-23 21:34:33 +00:00
Daniel Walton
9bf96c846d
zebra: zebra_vty.c compiles
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-23 21:17:10 +00:00
Daniel Walton
c349116d7c
lib: add 'int idx_foo' argv index variables
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-23 20:17:29 +00:00
Quentin Young
86959b0e07
Merge branch 'vtysh-grammar' of ssh://stash.cumulusnetworks.com:7999/quag/quagga into vtysh-grammar
2016-09-23 20:11:04 +00:00
Quentin Young
f667a580b7
lib: Implement removed ALIAS into DEFUN
...
N.B.: some of these are de-facto ALIAS resurrections
that are necessary due to some parser limitations; these
are marked with ALIAS_FIXME so I can go back and add
capability to the parser to handle these special cases.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2016-09-23 20:08:47 +00:00
Daniel Walton
80fa0c69e8
ripd: add 'int idx_foo' argv index variables
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-23 20:06:40 +00:00
Daniel Walton
ab34a28ac6
ripngd: add 'int idx_foo' argv index variables
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-23 20:04:42 +00:00
Daniel Walton
b181fa04e2
pimd: add 'int idx_foo' argv index variables
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-23 20:03:41 +00:00
Daniel Walton
8d769265c4
ospfd: add 'int idx_foo' argv index variables
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-23 20:01:26 +00:00
Daniel Walton
51c2641415
ospf6d: add 'int idx_foo' argv index variables
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-23 19:56:31 +00:00
Daniel Walton
ba4c5c8307
isisd: add 'int idx_foo' argv index variables
...
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2016-09-23 19:50:58 +00:00