Commit Graph

31837 Commits

Author SHA1 Message Date
Donald Sharp
cf0d1e8c25
Merge pull request #13468 from opensourcerouting/ripd-memtype-fix
ripd: fix another memtype mismatch
2023-05-08 15:15:15 -04:00
Mark Stapp
eb4c026d13
Merge pull request #13413 from chiragshah6/fdev2
zebra: re-install NHG on interface up
2023-05-08 14:36:07 -04:00
Donald Sharp
368f7ff753
Merge pull request #13464 from sri-mohan1/srib-ldpd
ldpd: changes for code maintainability
2023-05-08 12:42:10 -04:00
Renato Westphal
76f444a5d3 ripd: fix another memtype mismatch
Fixes #13447.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2023-05-08 12:30:50 -03:00
Jafar Al-Gharaibeh
2281363838
Merge pull request #13465 from donaldsharp/ospf_metric_ifindex
tests: ospf_metric_propagation is looking for a specific ifindex and vrfid
2023-05-08 09:43:56 -05:00
Mark Stapp
b20afef696
Merge pull request #13453 from donaldsharp/dplane_memory_leak
Dplane memory leak
2023-05-08 10:27:08 -04:00
Donald Sharp
bdcc5df5c3 tests: ospf_metric_propagation should not look for a specific vrfId
There is no guarantee that the vrfId is going to be the same across
tests, as that the vrfId is chosen based upon the ifindex of the
vrf device.  As such we should not be looking for the vrfId, but
the correct vrf name.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-05-08 08:06:30 -04:00
Donald Sharp
cb7c6fc2b9 tests: ospf_metric_propagation is looking for a specific ifindex
The test ospf_metric_propagation is looking for a specific ifindex
this ifindex is not guaranteed to be any particular value by the underlying
OS.  So let's remove this test for it.  As a side note I am seeing
tests fail in upstream CI because of this.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-05-08 07:47:49 -04:00
Donatas Abraitis
32a2f283d1
Merge pull request #13446 from louis-6wind/fix-ext-comm
bgpd: fix show running of nt extcommunity
2023-05-08 13:44:56 +03:00
sri-mohan1
0352223846 ldpd: changes for code maintainability
these changes are for improving the code maintainability and readability

Signed-off-by: sri-mohan1 <sri.mohan@samsung.com>
2023-05-08 15:28:50 +05:30
Donatas Abraitis
728c096823
Merge pull request #13440 from zice312963205/bgpfix
bgpd: fix the issue of connected tag error when BGP subscribes to NHT…
2023-05-08 11:47:14 +03:00
Donatas Abraitis
b38bfdb651
Merge pull request #13458 from sri-mohan1/srib-ldpd
ldpd: changes for code maintainability
2023-05-08 10:22:27 +03:00
sri-mohan1
e75e1553fa ldpd: changes for code maintainability
these changes are for improving the code maintainability and readability

Signed-off-by: sri-mohan1 <sri.mohan@samsung.com>
2023-05-07 21:00:52 +05:30
Donatas Abraitis
bf1b749001
Merge pull request #13455 from sri-mohan1/srib-ldpd
ldpd: changes for code maintainability
2023-05-06 22:47:27 +03:00
sri-mohan1
91cde6087d ldpd: changes for code maintainability
these changes are for improving the code maintainability and readability

Signed-off-by: sri-mohan1 <sri.mohan@samsung.com>
2023-05-06 19:52:34 +05:30
Donald Sharp
3beca2fce1
Merge pull request #13451 from sri-mohan1/srib-ldpd
ldpd: changes for code maintainability
2023-05-06 08:49:24 -04:00
Donald Sharp
69b7c34e88
Merge pull request #13424 from LabNConsulting/chopps/log-config-file-cmds 2023-05-06 06:47:05 -04:00
Jack.zhang
d1fe52f058 bgpd: fix the issue of connected tag error when BGP subscribes to NHT from Zebra
Imagine the following scenario:
1.Create a multihop ebgp peer and config the ttl as 254 for both side.
2.Call bgp_start and start an active connection.
Bgp will send a nht register with non-connected flag.
3.The function bgp_accept be called by remote connection.
Bgp will create a accept peer as a passive connection with default ttl(1). And then will send a nht register again with connected flag. This register result will cover the first one.
4.The active connection come to establish first. In funciton "peer_xfer_conn", check for "PEER_FLAG_CONFIG_NODE" flag of "from_peer->doppelganger" will not be pass, so we can not repair the nht register error forever.
Then the bgp nexthop will be like this:
2000::60 invalid, #paths 0, peer 2000::60
Must be Connected
Last update: Thu May 4 09:35:14 2023

The route from this peer can not be treat with a vaild nexthop forever.
This change will fix this error.

Signed-off-by: Jack.zhang <hanyu.zly@alibaba-inc.com>
2023-05-06 09:57:27 +08:00
Donald Sharp
3e7b3ed1dc zebra: dplane_gre_set could return while leaking ctx
Prevent this function from leaking the ctx memory.
Also properly record that something has gone wrong.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-05-05 19:11:02 -04:00
Donald Sharp
6636fc44c8 zebra: Dplane ctx allocation cannot fail
Having tests for memory allocation success makes no sense
given what happens when frr fails to allocate memory.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-05-05 19:10:59 -04:00
Chirag Shah
69cf016ee2 zebra:re-install dependent nhgs on interface up
Upon interface up associated singleton NHG's
dependent NHGs needs to be reinstalled as
kernel would have deleted if there is no route
referencing it.

Ticket:#3416477
Issue:3416477
Testing Done:
flap interfaces which are part of route NHG,
upon interfaces up event, NHGs are resynced
into dplane.

Signed-off-by: Chirag Shah <chirag@nvidia.com>
2023-05-05 14:37:52 -07:00
Ashwini Reddy
5bb87732f6 zebra: re-install nhg on interface up
Intermittently zebra and kernel are out of sync
when interface flaps and the add's/dels are in
same processing queue and zebra assumes no change in nexthop.
Hence we need to bring in a reinstall to kernel
of the nexthops and routes to sync their states.

Upon interface flap kernel would have deleted NHGs
associated to a interface (the one flapped),
zebra retains NHGs for 3 mins even though upper
layer protocol removes the nexthops (associated NHG).
As part of interface address add ,
re-add singleton NHGs associated to interface.

Ticket: #3173663
Issue: 3173663

Signed-off-by: Ashwini Reddy <ashred@nvidia.com>
Signed-off-by: Chirag Shah <chirag@nvidia.com>
2023-05-05 14:37:52 -07:00
sri-mohan1
849d8f2bbd ldpd: changes for code maintainability
these changes are for improving the code maintainability and readability

Signed-off-by: sri-mohan1 <sri.mohan@samsung.com>
2023-05-05 23:41:01 +05:30
Louis Scalbert
586861a141 bgpd: fix show running of nt extcommunity
Setting

> bgp extcommunity-list standard EXT seq 5 permit nt 192.168.1.3:0

results in:

> bgp extcommunity-list standard EXT seq 5 permit NT:192.168.1.3

Fix the display

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
2023-05-05 17:50:36 +02:00
Donatas Abraitis
4ead6555c9
Merge pull request #13436 from donaldsharp/ospf_json_mem_leak
ospfd: Fix memory leaks w/ `show ip ospf int X json` commands
2023-05-05 15:14:16 +03:00
Donald Sharp
d6d4962f38
Merge pull request #13428 from opensourcerouting/ripd-bfd-fixes
ripd: fix problemas
2023-05-05 08:04:57 -04:00
Donald Sharp
91c5393a71
Merge pull request #13435 from mjstapp/fix_pim_cpp_notice
pimd: replace CPP_NOTICE lines with TODO comments
2023-05-05 08:04:23 -04:00
Donald Sharp
9579b2f605
Merge pull request #13423 from LabNConsulting/chopps/coverity-string-fix
mgmtd: simplify commit id to just be a timeval string
2023-05-05 07:35:06 -04:00
Christian Hopps
3701780a15 lib: log commands read from config file
When the user specifies `--command-log-always` in CLI arguments then also log
commands executed from loading the config file.

Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-04 14:48:59 -04:00
Christian Hopps
d31d24c488 mgmtd: simplify commit id to just be a timeval string
Also fixes coverity warning

Signed-off-by: Christian Hopps <chopps@labn.net>
2023-05-04 14:47:55 -04:00
Christian Hopps
27797fec2c
Merge pull request #13357 from Jafaral/fix_ospf_prop
tests: clear the ospf neighbor to force a state change
2023-05-04 14:46:56 -04:00
Donald Sharp
74e21732db ospfd: Fix memory leaks w/ show ip ospf int X json commands
FRR has a memory leak in the case when int X does not
exist and a memory leak when int X does exist.  Fix
these

Fixes: #13434
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-05-04 12:56:13 -04:00
Mark Stapp
efa2a5f8ad pimd: replace CPP_NOTICE lines with TODO comments
Replace the noisy CPP_NOTICE lines with TODO comments.

Signed-off-by: Mark Stapp <mjs@labn.net>
2023-05-04 10:26:33 -04:00
Jafar Al-Gharaibeh
f92f88d361 tests: clear the ospf neighbor to force a state change
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
2023-05-04 08:27:17 -05:00
Renato Westphal
2da9c4c206 ripd: use correct memory type when freeing BFD profile
Fixes #13415.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2023-05-03 17:02:58 -03:00
Renato Westphal
bf384bbc90 ripd: fix null-pointer dereference
Fixes #13416.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2023-05-03 17:01:36 -03:00
Donald Sharp
abecbc3df1
Merge pull request #13425 from FRRouting/revert-12646-mpls_alloc_per_nh
Revert "MPLS allocation mode per next hop"
2023-05-03 07:35:37 -04:00
Donatas Abraitis
786e2b8bdb Revert "MPLS allocation mode per next hop"
Broken tests, let's revert now.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-05-03 13:52:46 +03:00
Mark Stapp
25664eae52
Merge pull request #13422 from donaldsharp/pim_thread_off_fix
pimd: Fix old commit that got in
2023-05-02 14:57:25 -04:00
Donald Sharp
42f5ab16ec pimd: Fix old commit that got in
An old fix that used THREAD_OFF was pushed in, should
have used EVENT_OFF instead.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-05-02 14:49:32 -04:00
Donald Sharp
f7a775a78e
Merge pull request #13020 from SaiGomathiN/2462808-3
pimd: PIM not sending register packets after changing from non DR to DR
2023-05-02 11:55:34 -04:00
Donatas Abraitis
99a1ab0b21
Merge pull request #12646 from pguibert6WIND/mpls_alloc_per_nh
MPLS allocation mode per next hop
2023-05-02 18:36:45 +03:00
Russ White
d0053da26b
Merge pull request #13376 from louis-6wind/fix-flex-algo-mem-leak
isisd, lib: fix flex-algo memory leak
2023-05-02 11:33:38 -04:00
Donatas Abraitis
da57946b0e
Merge pull request #13366 from zmw12306/rte_tag
ripd: add non-zero check for RIPv1 reserved field
2023-05-02 17:56:09 +03:00
Russ White
1998805bd5
Merge pull request #13403 from anlancs/fix/zebra-missing-vrf-flag
zebra: Fix missing VRF flag
2023-05-02 10:47:41 -04:00
Russ White
b9f0c8c8d0
Merge pull request #13404 from louis-6wind/fix-flex-algo-race-condition
isisd: fix a flex algo race condition and a minor fix
2023-05-02 10:42:39 -04:00
Russ White
9ab0661b89
Merge pull request #13235 from Orange-OpenSource/link-state
lib: Fix memory leaks in Link State library
2023-05-02 10:31:10 -04:00
Russ White
856e85e910
Merge pull request #13270 from pguibert6WIND/better_srv6_output_seg6local
zebra: display seg6local only when specified
2023-05-02 10:30:15 -04:00
Russ White
c12a40fee3
Merge pull request #13354 from zmw12306/parse_request_subtlv
babeld: add parse_request_subtlv into parse_packet
2023-05-02 10:28:20 -04:00
Russ White
ccf08bda1a
Merge pull request #13377 from donaldsharp/ospf_dead_interval
tests: Increase the dead interval to be longer for neighbor testing
2023-05-02 10:25:46 -04:00