Commit Graph

7291 Commits

Author SHA1 Message Date
Donald Sharp
4ed40c1651 vtysh: Cleanup some stuff(tm)
1) vtysh_config_dump was not properly indented.  Fix

2) Add VRF_NODE to be line_uniq when parsing return from sub-daemons

3) Fix 'no log monitor' to be line_uniq as well

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-09-20 08:11:20 -04:00
Donald Sharp
5b81603f16 Merge pull request #1176 from opensourcerouting/isis-stable-circuit-ids
isisd: generate unique circuit ids
2017-09-20 07:55:55 -04:00
Quentin Young
b1f9d7630c
vtysh: fix various show commands
need 'do' to force ENABLE_NODE

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2017-09-19 11:33:59 -04:00
Quentin Young
fa984909ba
lib: allow 'do' commands in ENABLE_NODE
'do' is syntax sugar that allows the user to execute a command under
ENABLE_NODE when in another CLI node. If the user is already in
ENABLE_NODE, use of 'do' was previously disallowed. This patch allows it
because it makes it easier for us to hack around certain instances of
the node synchronization problem with vtysh.

Also included is a fix for one of these problems.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2017-09-19 11:22:35 -04:00
Christian Franke
ed39c57e5c isisd: generate unique circuit ids
Circuit IDs need to be unique, otherwise mayhem will ensue.

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
2017-09-14 16:20:04 +02:00
Renato Westphal
2d67d5a2b5 ldpd: fix broken label allocation
Once ldpd allocated label 48 for a given FEC, all subsequent requests
for a new label would return the same value (48). The problem is that
we were left shifting an uint32_t value up to 64 times, losing important
information.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2017-09-13 18:58:50 -03:00
Russ White
7e9e78293b Merge pull request #1159 from opensourcerouting/doc-tcp-zebra
doc: remove --enable-tcp-zebra from the build instructions (3.0)
2017-09-13 16:24:30 -04:00
Russ White
c6b50942a9 Merge pull request #1168 from donaldsharp/show_ver
lib: Add json support for 'show version' command
2017-09-13 16:18:57 -04:00
Donald Sharp
6a232d1a17 lib: Add json support for 'show version' command
Fixes: #1167
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-09-12 16:27:39 -04:00
Donald Sharp
b9843e63c0 release: FRR 3.0-rc2 2017-09-12 13:23:51 -04:00
Renato Westphal
2558c214d5 doc: remove --enable-tcp-zebra from the build instructions
This parameter was removed by commit 01c9f29.

Fixes #1146.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2017-09-12 10:00:08 -03:00
David Lamparter
20a1687734 Merge pull request #1141 from nkukard/lc-docs-3.0
docs: Added large-community documentation
2017-09-11 11:00:28 +02:00
David Lamparter
b69d277f2d Merge pull request #1128 from subsecond/patch-3
Build FRR using branch stable/3.0
2017-09-11 10:59:53 +02:00
Donald Sharp
0b9d4ca735 vtysh: Fix shell executed commands
Pretty much all shell executed commands from vtysh were
not behaving correctly due to errors introduced in
switching to the new cli.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-09-09 14:15:53 -04:00
Nigel Kukard
185919efb9 doc: Cleaned up BGP showing of information section
Signed-off-by: Nigel Kukard <nkukard@lbsd.net>
2017-09-09 10:33:50 +00:00
Nigel Kukard
18b5aa3335 doc: English language cleanup
Signed-off-by: Nigel Kukard <nkukard@lbsd.net>
2017-09-09 10:33:50 +00:00
Nigel Kukard
41b78d6644 doc: Moved AS regular expressions to BGP regular expressions
Regular expressions are used throughout in bgp commands, it
should not be in a section under as paths which cannot be
easily found.

Signed-off-by: Nigel Kukard <nkukard@lbsd.net>
2017-09-09 10:33:50 +00:00
Nigel Kukard
469ceca70f doc: Clarified the use of show bgp ipv4/ipv6 for communities
Signed-off-by: Nigel Kukard <nkukard@lbsd.net>
2017-09-09 10:33:50 +00:00
Donald Sharp
53227da0be
nhrpd: Fix missing include for 'access_list_init' function
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-09-08 16:58:12 -04:00
Quentin Young
031deddad9
lib: add #pragma's to ignore flex sign cmp error
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2017-09-08 16:53:43 -04:00
Nigel Kukard
01acb7fc42 docs: Added large-community documentation
Closes #1140

Signed-off-by: Nigel Kukard <nkukard@lbsd.net>
2017-09-08 12:39:42 +00:00
Manuel Schweizer
d300f570f2 Build FRR using branch stable/3.0
Change all build instructions to include checkout of the respective branch.
2017-09-08 12:55:45 +02:00
Donald Sharp
f49ae6c592 Merge pull request #1126 from subsecond/patch-2
Typos and formatting
2017-09-07 20:30:34 -04:00
Manuel Schweizer
5147ddb62e Build FRR using branch stable/3.0
This is the documentation for Ubuntu 16.04 in branch stable/3.0. Hence it is important to checkout the respective branch before building FRR.
2017-09-07 20:51:35 +02:00
Manuel Schweizer
8777e9ccbb Typos and formatting 2017-09-07 19:25:24 +02:00
Donald Sharp
8127fb3773 Merge pull request #1116 from opensourcerouting/attr-refcount-kill
[3.0] kill bgp_attr_refcount()
2017-09-07 09:39:54 -04:00
David Lamparter
f6d5ec3bbd bgpd: fix lcommunity refs in table-map
bgp_attr_deep_dup() needs to be removed just like bgp_attr_refcount(),
but that's a little too intrusive for the 3.0 branch at this point.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-09-07 14:51:00 +02:00
David Lamparter
eb21e895d7 bgpd: kill bgp_attr_refcount()
This attempt at optimization has cost us more than a week's worth of
time on several people hunting down the subtle bug that it was missing
an increment on attr->lcommunity.

This is absolutely not worth the maintenance cost.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-09-07 14:24:00 +02:00
Donald Sharp
c0f943258e bgpd: Modify attr->flag to be 64 bit
With the some current bgp drafts the Attribute number has
surpassed 32.  Which is a bit unfortunate in that we keep
track of the attributes via a bitfield based on the attribute #.

For the moment since I am not aware of Attribute #'s being
greater than 64, convert the flag to 64 bit and allow the
bit shifting to know about it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-09-07 07:25:37 -04:00
Donald Sharp
4e3fe046ce Merge pull request #1097 from nkukard/nk3.0
Large community fixes (critical)
2017-09-03 11:29:04 -04:00
Nigel Kukard
a9a3e6fa0c bgpd: Fixed incorrect MTYPE being used for large communites
Signed-off-by: Nigel Kukard <nkukard@lbsd.net>
2017-09-03 05:21:04 +00:00
Nigel Kukard
31a059962c bgpd: Fixed pointer calculation issue in lcommunity
Signed-off-by: Nigel Kukard <nkukard@lbsd.net>
2017-09-03 03:53:04 +00:00
Nigel Kukard
dedf5f1419 vtysh: Fix for the ordering of large-community lists in config output
Signed-off-by: Nigel Kukard <nkukard@lbsd.net>
2017-09-03 03:53:04 +00:00
Nigel Kukard
31495ae8b3 bgpd: Fixed pointer arithmatic miscalculation
If we increment PTR by i * size each time, we end up doing 1, 3, 6
etc.

Signed-off-by: Nigel Kukard <nkukard@lbsd.net>
2017-09-03 03:53:04 +00:00
Nigel Kukard
0d1b810a71 bgpd: Fixed incorrect large community pointer calculation
Signed-off-by: Nigel Kukard <nkukard@lbsd.net>
2017-09-03 03:53:04 +00:00
Nigel Kukard
2c025ee1c7 bgpd: Fixed incorrect calculation of pointer location
com_index_to_delete[i] holds the location in lcom->val of where the
value is stored, we cannot just increment it by this value on each
iteration as we'll overflow the size of lcom->val.

Signed-off-by: Nigel Kukard <nkukard@lbsd.net>
2017-09-03 03:53:04 +00:00
Nigel Kukard
602081b829 bgpd: Fixed potential memory leak if additive is false
The else portion of the IF dups the lc, but doesn't free old

Signed-off-by: Nigel Kukard <nkukard@lbsd.net>
2017-09-03 03:53:04 +00:00
Nigel Kukard
0d389c3641 bgpd: Fixed potential memory leak if additive is false in normal communities
The else portion of the IF dups the community, but doesn't free old

Signed-off-by: Nigel Kukard <nkukard@lbsd.net>
2017-09-03 03:53:04 +00:00
Nigel Kukard
1cb27f276a bgpd: Fixed typo in the lc list type being matched on
This should be EXPANDED, not STANDARD.

Signed-off-by: Nigel Kukard <nkukard@lbsd.net>
2017-09-03 03:53:04 +00:00
Donald Sharp
7752387024 Merge pull request #1070 from opensourcerouting/isis-spf-debug-guard-stable
Isis spf debug guard stable
2017-08-29 13:05:49 -04:00
Christian Franke
9ad9882d9a isisd: guard SPF warning by debug flag
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
2017-08-29 01:19:45 +02:00
Daniel Walton
5955d3cd1f lib: "show route-map" is missing from the parser
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
(cherry picked from commit 6d2729e3d7)
2017-08-28 09:02:07 +02:00
Donald Sharp
e3e91974e8 Merge pull request #1035 from opensourcerouting/isisd-simple-enhance-dict_verify
isisd: don't validate dict integrity for regular builds
2017-08-23 16:28:02 -04:00
Renato Westphal
514ec3761d
bgpd: fix file descriptor leak
Bug introduced by commit 37d361e7. Removing the call to bgp_close()
from bgp_delete() was a mistake.

Reported-by: Don Slice <dslice@cumulusnetworks.com>
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2017-08-23 15:47:54 -04:00
Christian Franke
0ed74b9167 isisd: don't validate dict integrity for regular builds
This method is intended to be only used for debugging as per the author
and profiling shows we are spending a lot of cycles on it. Remove it for
regular builds by guarding it with a define.

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
2017-08-23 20:52:34 +02:00
Donald Sharp
56dc5c3d83 Merge pull request #1015 from opensourcerouting/3.0-minor
[3.0] kill tcp-zebra, put pseudowire-show under mpls
2017-08-22 08:54:28 -04:00
David Lamparter
9f837dcab6 build: fix --disable-snmp
--disable-foo results in "no" as value in $enable_foo

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-08-21 14:55:00 +02:00
David Lamparter
01c9f29421 build: remove tcp-zebra option
It's a security hazard.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-08-21 14:29:30 +02:00
David Lamparter
3c9efe9002 zebra: put pseudowire show cmd under mpls
Let's group this where it belongs and not clutter the commands too much.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-08-21 14:29:01 +02:00
David Lamparter
f76d3aebf9 Merge branch 'frr/pull/964' into stable/3.0
This accidentally ended up merged to master... *derp*

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-08-16 15:20:14 +02:00