Commit Graph

19747 Commits

Author SHA1 Message Date
Stephen Worley
99299b445a
Merge pull request #5878 from mjstapp/fix_nhg_for_fpm
zebra: fix nexthop_group conversion in fpm code
2020-02-28 15:25:40 -05:00
Donald Sharp
7f5818fbd6 *: change hash_backet to hash_bucket
It's been a year search and destroy.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2020-02-28 13:59:13 -05:00
Donatas Abraitis
baaaf4f5b6
Merge pull request #5862 from sworleys/PBR-No-Table-Range
pbrd: unconfigure table range
2020-02-28 18:28:51 +02:00
Mark Stapp
ed34bd5cd0
Merge pull request #5876 from ton31337/feature/doc_vrrpd_update
doc: Change interface name for vrrp example
2020-02-28 10:57:11 -05:00
Mark Stapp
97cd9bfc07 zebra: fix nexthop_group conversion in fpm code
Recent commit that embedded the nhg_hash_entry's group
missed a couple of fpm modules.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-02-28 08:45:56 -05:00
Mark Stapp
890b3450ea
Merge pull request #5859 from donaldsharp/clang_latest
Clean up clang latest SA warnings
2020-02-28 07:51:52 -05:00
Donatas Abraitis
03252d6037 tests: Add a test case for set local-preference +/-LOCAL_PREF
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2020-02-28 14:03:47 +02:00
Donatas Abraitis
94f7568813 doc: Use +/- for set local-preference to add/subtract the value
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2020-02-28 14:03:47 +02:00
Donatas Abraitis
3684eb4360 bgpd: Allow using add/subtract for local-preference in route-maps
We already have a generic support for add/sub in route-maps. It's already
handled in route_value_compile().

Just convert to string (allow passing (-) minus sign) - works like expected.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2020-02-28 14:03:46 +02:00
Donatas Abraitis
3234e3a347 doc: Change interface name for vrrp example
Looks like copy-paste error.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2020-02-28 13:58:38 +02:00
Donatas Abraitis
173608e77f
Merge pull request #5875 from donaldsharp/support_rfcs
doc: Add notice of rfc-4893 in supported rfc's.
2020-02-28 09:23:44 +02:00
Stephen Worley
f16e992d37
Merge pull request #5857 from mjstapp/embed_nhg_in_nhe
zebra,lib: Embed lib nexthop-group in zebra hash entry
2020-02-27 18:43:59 -05:00
Donald Sharp
29a6be3e26 doc: Add notice of rfc-4893 in supported rfc's.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-02-27 17:51:30 -05:00
Mark Stapp
c415d89528 zebra: Embed lib nexthop-group in zebra hash entry
Embed nexthop-group, which is just a pointer, in the zebra
nexthop-hash-entry object, rather than mallocing one.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-02-27 15:49:31 -05:00
Ghasem Naddaf
912c556b3a nhrpd: route update support for natoa nbma
nhrp_cache_update_route, nhrp_cache_authorize_binding: Fix route update for NAT scenario. When remote_nbma_natoa is already set in the cache entry, binding should be updated to this value and not vc remote nbma, which would be different from the NATted address.

nhrp_shortcut_recv_resolution_rep: Simplify the logic for finding the natoa nbma. Also, install shortcut entries as DYNAMIC type, as suggested in Section 6.2.2 of RFC2332.

nhrp_shortcut_cache_notify: announce the installed route with the correct interface from cache.

Signed-off-by: Ghasem Naddaf <gshirazi@infoblox.com>
2020-02-27 11:37:37 -08:00
Ghasem Naddaf
47d4075766 nhrpd: add holdtime and MTU to CIE
nhrp_shortcut_send_resolution_req: Add Holding time and MTU to the resolution request CIE according to RFC2332 Sec. 5.2.1.

nhrp_handle_resolution_req: Parse Holding time and MTU from CIE and update the requestor's binding. Also, when preparing the resolution reply, copy the Holding time and MTU to the CIE according to RFC2332 Sec. 5.2.2.

Signed-off-by: Ghasem Naddaf <gshirazi@infoblox.com>
2020-02-27 10:55:47 -08:00
Ghasem Naddaf
e9178b8ba3 nhrpd: fix netlink neigh message handling for lladdr
Signed-off-by: Ghasem Naddaf <gshirazi@infoblox.com>
2020-02-27 10:22:39 -08:00
Donald Sharp
93b568451d
Merge pull request #5872 from Jafaral/backet
Revert "*: change hash_backet to hash_bucket"
2020-02-27 10:56:27 -05:00
Jafar Al-Gharaibeh
4d67e75282 Revert "*: change hash_backet to hash_bucket"
This reverts commit 3895c42a2e.

LabN CI update needs to be coordinated before merging this

Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
2020-02-27 09:52:02 -06:00
Donald Sharp
61b5ae3db0 ldpd: Cleanup indentation in merge_nbrps
We had a very deeply nested function, reduce the indentation
for easier reading.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-02-27 10:04:37 -05:00
Donald Sharp
5ca840a3e1 bgpd: Cleanup indentation in bgp_route_refresh_receive
Some code in bgp_route_refresh_receive was spread across several
lines because of an end of line commit.  Move comment to a place
to allow better formating.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-02-27 10:04:37 -05:00
Jafar Al-Gharaibeh
9288a0a0c9
Merge pull request #5870 from donaldsharp/hash_backet
*: change hash_backet to hash_bucket
2020-02-27 09:02:35 -06:00
Donald Sharp
94f7f37d54 bgpd: agg_node_lookup not unlocking
SA has found a case where we did a table lookup of a rn( and
associated lock of that node ) where we did not unlock it.

Unlock the node before moving on to the next one.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-02-27 09:41:58 -05:00
Donald Sharp
8ba9026b95 nhrpd: Cleanup set but unused variables
There existed some variables set but never used.  Clean this up.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-02-27 09:41:58 -05:00
Donald Sharp
6e3e2c6d5f ospfd: Cleanup set but unused variables
There existed some variables set but never used.  Clean this up.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-02-27 09:41:58 -05:00
Donald Sharp
2acf1ad1dd zebra: Cleanup set but unused variables
There existed some variables set but never used.  Clean this up.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-02-27 09:41:58 -05:00
Donald Sharp
f67de3ee72 ldpd: Cleanup set but unused variables
There existed some variables set but never used.  Clean this up.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-02-27 09:41:58 -05:00
Donald Sharp
5037cc3eb4 lib: Cleanup set but unused variables
There existed some variables set but never used.  Clean this up.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-02-27 09:41:58 -05:00
Donald Sharp
1bb379bf4e bgpd: Cleanup set but unused variables
There existed some variables set but never used.  Clean this up.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-02-27 09:41:58 -05:00
Donatas Abraitis
1f713948c6
Merge pull request #5864 from kuldeepkash/route_map
tests: Optimizing route-map test cases
2020-02-27 10:03:16 +02:00
Donald Sharp
3895c42a2e *: change hash_backet to hash_bucket
It's been a year search and destroy.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-02-26 20:03:34 -05:00
Kuldeep Kashyap
b9f80297c8 tests: Modified scripts to optimize execution time for route-map test suite
1. Modified scripts to optimize execution time for route-map test suite
2. Removed unnecessary print statements from /lib/bgp.py

Signed-off-by: Kuldeep Kashyap <kashyapk@vmware.com>
2020-02-26 21:02:09 +00:00
Mark Stapp
7a7cd6e9b2
Merge pull request #5866 from qlyoung/fix-ipaddr-isset
lib: fix ipaddr_isset
2020-02-26 15:34:50 -05:00
Quentin Young
f2d72fcdc5 lib: fix ipaddr_isset
Meaning inverted by mistake

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2020-02-26 12:14:21 -05:00
rbauduin
8b0d734b31 doc: document attribute-unchanged directive
This directive was undocumented, but is the way to configure the
next-hop to be left unchanged for ipv6 setups (in ipv4, a route-map with
`set next-hop unchanged` works fine, but this is unavailable for ipv6) .

Signed-off-by: Raphael Bauduin <rb@raphinou.com>
2020-02-25 20:31:22 +01:00
Stephen Worley
b246eb8a8d pbrd: unconfigure table range
Implement the [no] version of `pbr table range`. We had the command
but were doing nothing with it.

This just calls the set_table_range API again using the defaults.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
2020-02-25 12:53:45 -05:00
Russ White
5e34d224ea
Merge pull request #5783 from ton31337/fix/bad_formatting_bgpd_gr
bgpd: Format properly `show bgp neighbors` for graceful restart stuff
2020-02-25 11:01:27 -05:00
Mark Stapp
c9e5adba73 sharpd: add support for install/remove lsps
First round of support for exercising the lsp and ftn paths
using sharpd. This supports lsp-only, and binding to
ipv4 prefix. Also use the common lib nexthop-to-zapi
helper api instead of sharpd's open-coded version.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-02-25 10:55:51 -05:00
Donald Sharp
64c0f439d2
Merge pull request #5270 from NaveenThanikachalam/rmap
lib: Optimizing route-maps
2020-02-25 09:15:49 -05:00
Donald Sharp
8b3b427bae
Merge pull request #5771 from pguibert6WIND/show_route_table_protocol
vty: add command to get route with table, vrf and protocol
2020-02-25 09:14:56 -05:00
Mark Stapp
c13bfa7435 lib: use const in nexthop_group copy api
Add some const to the nhg copy api.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-02-25 08:26:38 -05:00
Mark Stapp
ac74a3f266 pimd: fix SA reports
Fix a couple of SA warnings introduced recently; replace some
'strcpy' calls.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-02-25 08:23:40 -05:00
Quentin Young
9863725ca7 zebra: check for invalid family in ipset entry msg
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2020-02-22 23:23:17 -05:00
Santosh P K
6f4aee61a2 Zebra: Zebra gr dynamic client handling.
When a client connects to zebra with GR capabilities and
then restarts, it might disconnect again even before hello is
sent leading zebra cores.

GR should be supported only for dynamic neighbor who are capable
of restarting.

Signed-off-by: Santosh P K <sapk@vmware.com>
2020-02-21 06:26:48 -08:00
Renato Westphal
9a6e1905e9
Merge pull request #5838 from volta-networks/fix_isis_ifdown
isisd: do not disable circuit on ifdown
2020-02-21 10:41:09 -03:00
Donatas Abraitis
ac26ef2b25
Merge pull request #5844 from qlyoung/fix-zebra-gr-unnecessary-malloc
Fix zebra gr unnecessary malloc
2020-02-21 15:03:46 +02:00
Quentin Young
e66ec0c457
Merge pull request #5847 from mjstapp/fix_pim_sas
pimd: fix SA reports
2020-02-20 13:51:07 -05:00
Mark Stapp
6c1b7a8c49 pimd: fix SA reports
Fix a couple of SA warnings introduced recently; replace some
'strcpy' calls.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-02-20 11:32:32 -05:00
Donatas Abraitis
f294fac22d
Merge pull request #5842 from qlyoung/fix-test-then-xfree-again
lib: do not test before XFREE
2020-02-20 14:40:02 +02:00
Donald Sharp
5b5f9dfb73
Merge pull request #5845 from TomasKorbar/master
Make frr able to be built by gcc 10
2020-02-20 06:32:02 -05:00