]>
git.puffer.fish Git - matthieu/frr.git/log
Donald Sharp [Wed, 31 Jul 2024 12:19:14 +0000 (08:19 -0400)]
Merge pull request #16500 from opensourcerouting/fix/show_afi_when_printing_debug
bgpd: Show which AFI is affected when prefix-list is not found
Donald Sharp [Wed, 31 Jul 2024 12:14:34 +0000 (08:14 -0400)]
Merge pull request #16497 from opensourcerouting/fix/tunel_encap
bgpd: Check the actual remaining stream length before taking TLV value
Donatas Abraitis [Wed, 31 Jul 2024 10:20:59 +0000 (13:20 +0300)]
bgpd: Show which AFI is affected when prefix-list is not found
When the prefix-list is not found, show which AFI is the real one we are
looking for.
E.g.: looking at this output is not clear:
```
[RYF1Z-ZKDRS] route_match_address_prefix_list: Prefix List p1 specified does not exist defaulting to NO_MATCH
```
route_match_address_prefix_list() is called by route_match_ipv6_address_prefix_list(),
and route_match_ip_address_prefix_list().
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donatas Abraitis [Wed, 31 Jul 2024 05:35:14 +0000 (08:35 +0300)]
bgpd: Check the actual remaining stream length before taking TLV value
```
0 0xb50b9f898028 in __sanitizer_print_stack_trace (/home/ubuntu/frr-public/frr_public_private-libfuzzer/bgpd/.libs/bgpd+0x368028) (BuildId:
3292703ed7958b20076550c967f879db8dc27ca7 )
1 0xb50b9f7ed8e4 in fuzzer::PrintStackTrace() (/home/ubuntu/frr-public/frr_public_private-libfuzzer/bgpd/.libs/bgpd+0x2bd8e4) (BuildId:
3292703ed7958b20076550c967f879db8dc27ca7 )
2 0xb50b9f7d4d9c in fuzzer::Fuzzer::CrashCallback() (/home/ubuntu/frr-public/frr_public_private-libfuzzer/bgpd/.libs/bgpd+0x2a4d9c) (BuildId:
3292703ed7958b20076550c967f879db8dc27ca7 )
3 0xe0d12d7469cc (linux-vdso.so.1+0x9cc) (BuildId:
1a77697e9d723fe22246cfd7641b140c427b7e11 )
4 0xe0d12c88f1fc in __pthread_kill_implementation nptl/pthread_kill.c:43:17
5 0xe0d12c84a678 in gsignal signal/../sysdeps/posix/raise.c:26:13
6 0xe0d12c83712c in abort stdlib/abort.c:79:7
7 0xe0d12d214724 in _zlog_assert_failed /home/ubuntu/frr-public/frr_public_private-libfuzzer/lib/zlog.c:789:2
8 0xe0d12d1285e4 in stream_get /home/ubuntu/frr-public/frr_public_private-libfuzzer/lib/stream.c:324:3
9 0xb50b9f8e47c4 in bgp_attr_encap /home/ubuntu/frr-public/frr_public_private-libfuzzer/bgpd/bgp_attr.c:2758:3
10 0xb50b9f8dcd38 in bgp_attr_parse /home/ubuntu/frr-public/frr_public_private-libfuzzer/bgpd/bgp_attr.c:3783:10
11 0xb50b9faf74b4 in bgp_update_receive /home/ubuntu/frr-public/frr_public_private-libfuzzer/bgpd/bgp_packet.c:2383:20
12 0xb50b9faf1dcc in bgp_process_packet /home/ubuntu/frr-public/frr_public_private-libfuzzer/bgpd/bgp_packet.c:4075:11
13 0xb50b9f8c90d0 in LLVMFuzzerTestOneInput /home/ubuntu/frr-public/frr_public_private-libfuzzer/bgpd/bgp_main.c:582:3
```
Reported-by: Iggy Frankovic <iggyfran@amazon.com>
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Russ White [Tue, 30 Jul 2024 19:12:33 +0000 (15:12 -0400)]
Merge pull request #16496 from donaldsharp/topotest_hints
doc: Add some topotest documentation about how to reproduce failures
Donald Sharp [Tue, 30 Jul 2024 17:57:44 +0000 (13:57 -0400)]
doc: Add some topotest documentation about how to reproduce failures
Add some hints for developers about how to reproduce failure conditions
in the test.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Mark Stapp [Tue, 30 Jul 2024 15:46:15 +0000 (11:46 -0400)]
Merge pull request #16178 from y-bharath14/srib-babel-code-refactoring
babel: Added null check after retrieving babel_ifp
Russ White [Tue, 30 Jul 2024 15:16:32 +0000 (11:16 -0400)]
Merge pull request #16494 from donaldsharp/gr_meta_q
zebra: Fix removal of routes on MetaQ when client goes down
Donald Sharp [Tue, 30 Jul 2024 11:21:58 +0000 (07:21 -0400)]
zebra: Fix removal of routes on MetaQ when client goes down
It is possible that right before an upper level protocol dies
or is killed routes would be installed into zebra. These routes
could be on the Meta-Q for early route-processing. Leaving us with
a situation where the client is removed, and all it's routes that are
in the rib at that time, and then after that the MetaQ is run and the
routes are reprocessed leaving routes from an upper level daemon
post daemon going away from zebra's perspective. These routes will
be abandoned.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald Sharp [Tue, 30 Jul 2024 12:03:07 +0000 (08:03 -0400)]
Merge pull request #12459 from opensourcerouting/msdp-auth-v2
pimd: MSDP peer MD5 authentication
Donald Sharp [Mon, 29 Jul 2024 16:31:42 +0000 (12:31 -0400)]
Merge pull request #16480 from LabNConsulting/dleroy/nhrpd-duplicate-auth-fix
nhrpd: fixes duplicate auth extension
Rafael Zalamena [Mon, 10 May 2021 14:36:16 +0000 (11:36 -0300)]
topotests: test MSDP authentication
Modify existing MSDP topology to use authentication.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Tue, 10 May 2022 11:23:06 +0000 (08:23 -0300)]
lib: define constant for plataforms missing it
Add definition of `TCP_MD5SIG_MAXKEYLEN` in the `sockopt.h` header so
users of it have the definition of the maximum key length for socket
authentication operations.
The following OSes reported failure in CI while building:
- NetBSD 8
- FreeBSD 11
- FreeBSD 12
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Tue, 10 May 2022 11:22:53 +0000 (08:22 -0300)]
doc: document MSDP authentication and reset
Tell user how to use the new authentication and clear commands.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Wed, 7 Dec 2022 13:13:39 +0000 (10:13 -0300)]
pimd: add support for MSDP authentication
Implement MSDP MD5 authentication connection support.
Implementation details:
- Move the MSDP socket creation code to a generic function so it can be
parametrized to be used with/without authentication.
- The MSDP peer connection will not change when the configuration is
set, instead it will only be applied next connection or when
`clear ip msdp peer A.B.C.D` is called.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Tue, 6 Dec 2022 12:58:22 +0000 (09:58 -0300)]
yang: MSDP authentication support
Specify MSDP authentication specification model.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Donald Sharp [Mon, 29 Jul 2024 14:25:14 +0000 (10:25 -0400)]
Merge pull request #12484 from opensourcerouting/msdp-filter
pimd: MSDP SA filtering support
Donald Sharp [Mon, 29 Jul 2024 11:56:00 +0000 (07:56 -0400)]
Merge pull request #16492 from LabNConsulting/ziemba/topotests-lib-bgprib-wait
tests: topotests/lib: add wait to RequireVpnRoutes, RequireUnicastRoutes
Donald Sharp [Sun, 28 Jul 2024 19:27:45 +0000 (15:27 -0400)]
Merge pull request #16490 from adrianomarto/master
tests: Test MSDP RPF
Donald Sharp [Sun, 28 Jul 2024 19:27:33 +0000 (15:27 -0400)]
Merge pull request #16491 from opensourcerouting/fix/crash_bgp_auto_vrf
bgpd: Do not process VRF import/export to/from auto created VRF instances
G. Paul Ziemba [Sat, 27 Jul 2024 18:56:54 +0000 (11:56 -0700)]
tests: add wait to RequireVpnRoutes, RequireUnicastRoutes
Signed-off-by: G. Paul Ziemba <paulz@labn.net>
Donatas Abraitis [Sun, 28 Jul 2024 11:26:13 +0000 (14:26 +0300)]
bgpd: Do not process VRF import/export to/from auto created VRF instances
Fixes the crash:
```
(gdb) bt
0 __pthread_kill_implementation (no_tid=0, signo=11, threadid=
124583315603008 ) at ./nptl/pthread_kill.c:44
1 __pthread_kill_internal (signo=11, threadid=
124583315603008 ) at ./nptl/pthread_kill.c:78
2 __GI___pthread_kill (threadid=
124583315603008 , signo=signo@entry=11) at ./nptl/pthread_kill.c:89
3 0x0000714ed0242476 in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26
4 0x0000714ed074cfb7 in core_handler (signo=11, siginfo=0x7ffe6d9792b0, context=0x7ffe6d979180) at lib/sigevent.c:258
5 <signal handler called>
6 0x000060f55e33ffdd in route_table_get_info (table=0x0) at ./lib/table.h:177
7 0x000060f55e340053 in bgp_dest_table (dest=0x60f56dabb840) at ./bgpd/bgp_table.h:156
8 0x000060f55e340c9f in is_route_injectable_into_vpn (pi=0x60f56dbc4a60) at ./bgpd/bgp_mplsvpn.h:331
9 0x000060f55e34507c in vpn_leak_from_vrf_update (to_bgp=0x60f56da52070, from_bgp=0x60f56da75af0, path_vrf=0x60f56dbc4a60) at bgpd/bgp_mplsvpn.c:1575
10 0x000060f55e346657 in vpn_leak_from_vrf_update_all (to_bgp=0x60f56da52070, from_bgp=0x60f56da75af0, afi=AFI_IP) at bgpd/bgp_mplsvpn.c:2028
11 0x000060f55e340c10 in vpn_leak_postchange (direction=BGP_VPN_POLICY_DIR_TOVPN, afi=AFI_IP, bgp_vpn=0x60f56da52070, bgp_vrf=0x60f56da75af0) at ./bgpd/bgp_mplsvpn.h:310
12 0x000060f55e34a692 in vpn_leak_postchange_all () at bgpd/bgp_mplsvpn.c:3737
13 0x000060f55e3d91fc in router_bgp (self=0x60f55e5cbc20 <router_bgp_cmd>, vty=0x60f56e2d7660, argc=3, argv=0x60f56da19830) at bgpd/bgp_vty.c:1601
14 0x0000714ed069ddf5 in cmd_execute_command_real (vline=0x60f56da32a80, vty=0x60f56e2d7660, cmd=0x0, up_level=0) at lib/command.c:1002
15 0x0000714ed069df6e in cmd_execute_command (vline=0x60f56da32a80, vty=0x60f56e2d7660, cmd=0x0, vtysh=0) at lib/command.c:1061
16 0x0000714ed069e51e in cmd_execute (vty=0x60f56e2d7660, cmd=0x60f56dbf07d0 "router bgp 100\n", matched=0x0, vtysh=0) at lib/command.c:1227
17 0x0000714ed076faa0 in vty_command (vty=0x60f56e2d7660, buf=0x60f56dbf07d0 "router bgp 100\n") at lib/vty.c:616
18 0x0000714ed07719c4 in vty_execute (vty=0x60f56e2d7660) at lib/vty.c:1379
19 0x0000714ed07740f0 in vtysh_read (thread=0x7ffe6d97c700) at lib/vty.c:2374
20 0x0000714ed07685c4 in event_call (thread=0x7ffe6d97c700) at lib/event.c:1995
21 0x0000714ed06e3351 in frr_run (master=0x60f56d1d2e40) at lib/libfrr.c:1232
22 0x000060f55e2c4b44 in main (argc=7, argv=0x7ffe6d97c978) at bgpd/bgp_main.c:555
(gdb)
```
Fixes https://github.com/FRRouting/frr/issues/16484
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Adriano Marto Reis [Sun, 28 Jul 2024 04:34:24 +0000 (14:34 +1000)]
tests: Test MSDP RPF
Adding a MSDP test with multiple possible routes.
Signed-off-by: "Adriano Marto Reis" <adrianomarto@gmail.com>
David Lamparter [Sat, 27 Jul 2024 21:45:42 +0000 (14:45 -0700)]
Merge pull request #16485 from donaldsharp/test_fixes
Rafael Zalamena [Fri, 9 Dec 2022 17:34:13 +0000 (14:34 -0300)]
topotests: test MSDP SA filtering
Modify existing MSDP topology to use test SA filtering:
- Add new multicast host (so we get two sources for same group)
- Test group only filtering
- Test source / group filtering
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Mon, 3 May 2021 13:34:49 +0000 (10:34 -0300)]
doc: document new MSDP filter command
Let user know how to use the MSDP SA filtering command
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Mon, 3 May 2021 13:25:52 +0000 (10:25 -0300)]
pimd: MSDP SA filtering
Implement MSDP peer incoming/outgoing SA filter.
Note
----
Cisco extended access list has a special meaning: the first address is
the source address to filter.
Example:
! The rules below filter some LAN prefix to be leaked out
access-list filter-lan-source deny ip 192.168.0.0 0.0.255.255 224.0.0.0 0.255.255.255
access-list filter-lan-source permit any
router pim
msdp peer 192.168.0.1 sa-filter filter-lan-source out
! The rules below filter some special management group from being
! learned
access-list filter-management-group deny 230.0.0.0 0.255.255.255
access-list filter-management-group permit any
router pim
msdp peer 192.168.0.1 sa-filter filter-management-group in
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Mon, 3 May 2021 11:37:51 +0000 (08:37 -0300)]
yang: MSDP SA filtering support
Add option to configure MSDP peer SA incoming/outgoing filtering.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Dave LeRoy [Thu, 25 Jul 2024 18:58:22 +0000 (11:58 -0700)]
nhrpd: fixes duplicate auth extension
When an NHRP server was forwarding a message, it was copying all
extensions from the originally received packet. The authentication
extension must be regenerated hop by hop per RFC2332. The copied
auth extension had an incorrect length. This fix checks for the
auth extension when copying extensions and omits the original
packet auth and instead regenerates a new auth extension.
Fix bug #16466
Signed-off-by: Dave LeRoy <dleroy@labn.net>
Russ White [Fri, 26 Jul 2024 18:45:01 +0000 (14:45 -0400)]
Merge pull request #15797 from pguibert6WIND/isis_srv6_ls_subnet
isis, lib: add isis srv6 end sid to ls_prefix
Donald Sharp [Fri, 26 Jul 2024 18:16:36 +0000 (14:16 -0400)]
tests: Run black on bgp_vpnv[4|6]_per_nexthop_label
I did not have my formatting right, let's get it
right for these two.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald Sharp [Fri, 26 Jul 2024 18:15:40 +0000 (14:15 -0400)]
tests: Fix test_bgp_vpnv6_per_nexthop_label.py to handle timing changes
So the test script is making changes to a vpn configuration by
changing something fundamental about the vpn. This is causing
a window where routes we are interested in are:
present ( from pre-change ) then
withdrawn ( the test change causes this ) then
present ( with the new data )
The test code was trying to test for this by checking
to see if the prefix was there, but due to timing issues
it's not always there when we look for it.
Modify the test to get the vpn table version prior to
the change( as that it should not be moving around ) and
then change the test for the prefix to look for a version
that is later than the vpn's table version. Then we know
that it is *after* everything has stabilized again.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald Sharp [Fri, 26 Jul 2024 18:02:31 +0000 (14:02 -0400)]
tests: Fix test_bgp_vpnv4_per_nexthop_label.py to handle timing changes
So the test script is making changes to a vpn configuration by
changing something fundamental about the vpn. This is causing
a window where routes we are interested in are:
present ( from pre-change ) then
withdrawn ( the test change causes this ) then
present ( with the new data )
The test code was trying to test for this by checking
to see if the prefix was there, but due to timing issues
it's not always there when we look for it.
Modify the test to get the vpn table version prior to
the change( as that it should not be moving around ) and
then change the test for the prefix to look for a version
that is later than the vpn's table version. Then we know
that it is *after* everything has stabilized again.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald Sharp [Tue, 23 Jul 2024 14:31:02 +0000 (10:31 -0400)]
tests: Increase timing of bgp_duplicate_nexthop
a) Make timers more aggressive for this test
b) Double run_and_expect time for one sub test.
These two changes cause this test to pass regularly for
me when this test used to fail regularly for me.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald Sharp [Fri, 26 Jul 2024 14:24:37 +0000 (10:24 -0400)]
Merge pull request #16463 from opensourcerouting/bfd-remove-control-socket
bfdd: remove obsolete control socket
Donald Sharp [Fri, 26 Jul 2024 13:29:38 +0000 (09:29 -0400)]
Merge pull request #16467 from louis-6wind/fix-flex-algo-asla
isisd: fix building flex-algo asla at init
Donald Sharp [Fri, 26 Jul 2024 11:34:22 +0000 (07:34 -0400)]
Merge pull request #16471 from opensourcerouting/fix/treat_as_withdraw_stats
bgpd: Do not increment treat-as-withdraw counters if debug is enabled
Donald Sharp [Fri, 26 Jul 2024 11:34:08 +0000 (07:34 -0400)]
Merge pull request #16473 from opensourcerouting/fix/add_soft_version_in_summary
bgpd: Show software version in bgp summary
Louis Scalbert [Fri, 26 Jul 2024 07:56:14 +0000 (09:56 +0200)]
isisd: free asla at last flex-algo unconfiguration
Free ASLA when the last flex-algo is unconfigured.
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Louis Scalbert [Thu, 25 Jul 2024 07:34:10 +0000 (09:34 +0200)]
isisd: fix building asla at first flex-algo config
When an color affinity is set on an interface before configuring the
flex-algorithm, the ASLA (Application Specific Link-Attribute) sub-TLV
is not build. Flex-algo fails to build the paths when a affinity
constraint is required because of the lacking of information contained
in ASLA. There are no problems when the configuration order is reversed.
For example:
> affinity-map red bit-position 1
>
> interface eth2
> link-params
> affinity red
>
> router isis 1
> mpls-te on
> flex-algo 129
> dataplane sr-mpls
> advertise-definition
> affinity include-any green
In isis_link_params_update_asla(), the ASLA sub-TLV is not build when
the list of flex-algos is empty.
Update ASLA when the first flex-algorithm is configured.
Fixes: 893882ee20 ("isisd: add isis flex-algo configuration backend")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Louis Scalbert [Fri, 26 Jul 2024 07:28:40 +0000 (09:28 +0200)]
isisd: move flex_algo_delete into flex_algo_destroy
Move flex_algo_delete() content into isis_instance_flex_algo_destroy()
because it is called only once.
Rename _flex_algo_delete to flex_algo_free()
Cosmetic change.
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Louis Scalbert [Fri, 26 Jul 2024 07:40:10 +0000 (09:40 +0200)]
lib: remove duplicated flex_algos_free prototype
Remove duplicated flex_algos_free prototype
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Donatas Abraitis [Thu, 25 Jul 2024 18:09:39 +0000 (21:09 +0300)]
Merge pull request #16416 from raja-rajasekar/rajasekarr/fix_logs_bp
bgpd: backpressure - fix ret value and log err for evpn
Donatas Abraitis [Thu, 25 Jul 2024 18:09:19 +0000 (21:09 +0300)]
Merge pull request #16472 from donaldsharp/msdp_bug
pimd: Fix msdp setting of sa->rp
Donald Sharp [Thu, 25 Jul 2024 17:49:55 +0000 (13:49 -0400)]
Merge pull request #16470 from opensourcerouting/fix/keep_last_reset_reasons
bgpd: Keep the last reset reason before we reset the peer
mobash-rasool [Thu, 25 Jul 2024 17:06:17 +0000 (22:36 +0530)]
Merge pull request #16041 from sri-mohan1/srib-24-zebra-d
zebra: changes for code maintainability
Rafael Zalamena [Wed, 24 Jul 2024 14:42:11 +0000 (11:42 -0300)]
doc: remove BFD control socket documentation
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Wed, 24 Jul 2024 14:19:40 +0000 (11:19 -0300)]
doc: missing distributed BFD man page bit
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Tue, 16 Jul 2024 18:50:16 +0000 (15:50 -0300)]
bfdd: remove control socket obsolete code
Let's remove the obsolete BFD control socket. If the functionality is
needed then YANG/northbound notifications / getting should be used
instead.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Donatas Abraitis [Thu, 25 Jul 2024 12:07:57 +0000 (15:07 +0300)]
bgpd: Show software version in bgp summary
E.g.:
```
$ vtysh -c 'show bgp summary json' | jq '.ipv4Unicast.peers'
{
"127.0.0.1": {
"hostname": "donatas.net",
"softwareVersion": "GoBGP/3.26.0",
"remoteAs": 65001,
"localAs": 65001,
"version": 4,
"msgRcvd": 12,
"msgSent": 16,
"tableVersion": 0,
"outq": 0,
"inq": 0,
"peerUptime": "00:00:10",
"peerUptimeMsec": 10000,
"peerUptimeEstablishedEpoch":
1721908563 ,
"pfxRcd": 0,
"pfxSnt": 0,
"state": "Established",
"peerState": "OK",
"connectionsEstablished": 1,
"connectionsDropped": 0,
"idType": "ipv4"
},
"127.0.0.3": {
"hostname": "putin-xujlo",
"domainname": "donatas.net",
"softwareVersion": "ExaBGP/5.0.0-
20240725 +main-
a56c70e84a ",
"remoteAs": 65003,
"localAs": 65001,
"version": 4,
"msgRcvd": 3,
"msgSent": 7,
"tableVersion": 0,
"outq": 0,
"inq": 0,
"peerUptime": "00:00:13",
"peerUptimeMsec": 13000,
"peerUptimeEstablishedEpoch":
1721908560 ,
"pfxRcd": 0,
"pfxSnt": 0,
"state": "Established",
"peerState": "OK",
"connectionsEstablished": 1,
"connectionsDropped": 0,
"idType": "ipv4"
}
}
```
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donald Sharp [Thu, 25 Jul 2024 12:05:19 +0000 (08:05 -0400)]
Merge pull request #16464 from cscarpitta/fix/remove-duplicate-include
zebra: Remove duplicate `#include`s
Donald Sharp [Thu, 25 Jul 2024 11:50:32 +0000 (07:50 -0400)]
pimd: Fix msdp setting of sa->rp
The code is clearly incorrect. After consultation with
the original author this is the decided change.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald Sharp [Thu, 25 Jul 2024 11:17:03 +0000 (07:17 -0400)]
Merge pull request #16449 from opensourcerouting/py-invalid-escapes
build: fix a few python string escape warnings
Donald Sharp [Thu, 25 Jul 2024 11:16:13 +0000 (07:16 -0400)]
Merge pull request #16469 from opensourcerouting/fix/add_5701_supported
doc: Add RFC 5701 to the supported RFCs list
Donatas Abraitis [Thu, 25 Jul 2024 10:41:23 +0000 (13:41 +0300)]
bgpd: Do not increment treat-as-withdraw counters if debug is enabled
Increment only if we really treat the UPDATE as withdrawn.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donatas Abraitis [Thu, 25 Jul 2024 10:22:27 +0000 (13:22 +0300)]
bgpd: Keep the last reset reason before we reset the peer
If we send a notification, there is no point setting the last_reset, because
bgp_notify_send() sets last_reset to PEER_DOWN_NOTIFY_SEND (almost everywhere).
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donatas Abraitis [Thu, 25 Jul 2024 10:06:46 +0000 (13:06 +0300)]
bgpd: Set the last_reset if we change the password also
```
donatas.net(config-router)# do show ip bgp summary failed
IPv4 Unicast Summary:
BGP router identifier 1.1.1.1, local AS number 65001 VRF default vrf-id 0
BGP table version 0
RIB entries 0, using 0 bytes of memory
Peers 1, using 24 KiB of memory
Neighbor EstdCnt DropCnt ResetTime Reason
127.0.0.1 2 2 00:02:02 Password config change (GoBGP/3.26.0)
Displayed neighbors 1
Total number of neighbors 1
```
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donatas Abraitis [Thu, 25 Jul 2024 08:52:45 +0000 (11:52 +0300)]
doc: Add RFC 5701 to the supported RFCs list
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Carmine Scarpitta [Wed, 24 Jul 2024 21:50:02 +0000 (23:50 +0200)]
zebra: Remove duplicate `#include "zebra/interface.h"`
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Carmine Scarpitta [Wed, 24 Jul 2024 21:41:29 +0000 (23:41 +0200)]
zebra: Remove duplicate `#include "zebra/interface.h"`
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Carmine Scarpitta [Wed, 24 Jul 2024 21:41:09 +0000 (23:41 +0200)]
zebra: Remove duplicate `#include "zebra/debug.h"`
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Carmine Scarpitta [Wed, 24 Jul 2024 21:39:34 +0000 (23:39 +0200)]
zebra: Remove duplicate `#include <stdio.h>`
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Carmine Scarpitta [Wed, 24 Jul 2024 21:39:14 +0000 (23:39 +0200)]
zebra: Remove duplicate `#include <string.h>`
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Carmine Scarpitta [Wed, 24 Jul 2024 21:38:55 +0000 (23:38 +0200)]
zebra: Remove duplicate `#include <stdlib.h>`
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Carmine Scarpitta [Wed, 24 Jul 2024 21:38:27 +0000 (23:38 +0200)]
zebra: Remove duplicate `#include <arpa/inet.h>`
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Carmine Scarpitta [Wed, 24 Jul 2024 21:38:04 +0000 (23:38 +0200)]
zebra: Remove duplicate `#include <netinet/in.h>`
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Donald Sharp [Wed, 24 Jul 2024 17:17:31 +0000 (13:17 -0400)]
Merge pull request #16455 from opensourcerouting/fix/bgp_gr_notifications_timing_flake
tests: Delay initial OPEN after we do `clear bgp`
Donald Sharp [Wed, 24 Jul 2024 17:17:12 +0000 (13:17 -0400)]
Merge pull request #16456 from opensourcerouting/fix/delay_open_when_open_received
bgpd: Pass a connection struct directly for EVENT_OFF()
Donald Sharp [Wed, 24 Jul 2024 14:30:34 +0000 (10:30 -0400)]
Merge pull request #16232 from zhou-run/
202406171755
isisd: Even after configuring "no hostname dynamic", the topology still displays the hostname.
Donald Sharp [Wed, 24 Jul 2024 14:28:43 +0000 (10:28 -0400)]
Merge pull request #16240 from y-bharath14/srib-topotest-f
tests: Avoid using unused modules and variables at FRR test suites
Donald Sharp [Wed, 24 Jul 2024 14:22:53 +0000 (10:22 -0400)]
Merge pull request #16451 from LabNConsulting/chopps/fix-early-mgmtd-detach
lib: mgmtd: fix too early daemon detach of mgmtd
Donatas Abraitis [Wed, 24 Jul 2024 12:30:43 +0000 (15:30 +0300)]
bgpd: Pass a connection struct directly for EVENT_OFF()
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Donatas Abraitis [Wed, 24 Jul 2024 11:30:32 +0000 (14:30 +0300)]
tests: Delay initial OPEN after we do `clear bgp`
Under some circumstances it might happen that the session is quickly UP in the
middle of `clear bgp ...` and `shutdown`. That leads to session be UP, and
the stale routes being cleared quickly.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Christian Hopps [Wed, 24 Jul 2024 10:35:01 +0000 (03:35 -0700)]
Merge pull request #16428 from y-bharath14/srib-yang-c
yang: Added missed prefix to the frr-deviations-ietf-routing yang file
Christian Hopps [Tue, 23 Jul 2024 21:42:07 +0000 (17:42 -0400)]
lib: mgmtd: fix too early daemon detach of mgmtd
Correct FRR startup counts on a daemon's vty socket to be open when the
parent process exits. The parent process waits for `frr_check_detach()`
to be called by the child before exiting. The problem is when the
`FRR_MANUAL_VTY_START` flag is set the vty socket was not opened but
`frr_check_detach()` was called anyway.
Instead add a bool option for `frr_check_detach()` to be called when the
socket is opened with `frr_vty_serv_start()`, and do so when "manually"
calling said function (i.e., when FRR_MANUAL_VTY_START is set).
The `FRR_MANUAL_VTY_START` flag is only set by mgmtd. The reason we
wait to open the vty socket is so that mgmtd can parse the various
daemon specific config files it has taken over, after the event loop has
started, but before we receive any possible new config from `vtysh`.
fixes #16362
Signed-off-by: Christian Hopps <chopps@labn.net>
Russ White [Tue, 23 Jul 2024 20:42:41 +0000 (16:42 -0400)]
Merge pull request #16410 from pguibert6WIND/show_zebra_dplane_nexthop
zebra: add nexthop counter to 'show zebra dplane' command
David Lamparter [Tue, 23 Jul 2024 17:21:42 +0000 (10:21 -0700)]
build: fix a few python string escape warnings
When using a regex (or anything that uses `\?` escapes) in python, raw
strings (`r"content"`) should be used so python doesn't consume the
escapes itself. Otherwise we get either broken behavior and/or
`SyntaxWarning: invalid escape sequence '\['`
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Russ White [Tue, 23 Jul 2024 14:54:12 +0000 (10:54 -0400)]
Merge pull request #16403 from lsang6WIND/vpn_leak_label
bgpd: fix label lost when vrf loopback comes back
Russ White [Tue, 23 Jul 2024 14:51:46 +0000 (10:51 -0400)]
Merge pull request #16376 from c-po/ospfd-ldp-sync
ospfd: fix internal ldp-sync state flags when feature is disabled
Russ White [Tue, 23 Jul 2024 14:49:49 +0000 (10:49 -0400)]
Merge pull request #16330 from donaldsharp/nhg_going_down
zebra: Properly note that a nhg's nexthop has gone down
Donatas Abraitis [Tue, 23 Jul 2024 14:46:43 +0000 (17:46 +0300)]
Merge pull request #16437 from raja-rajasekar/rajasekarr/use_after_free_4001204
bgpd: backpressure - Avoid use after free
Mark Stapp [Tue, 23 Jul 2024 12:08:14 +0000 (08:08 -0400)]
Merge pull request #16432 from Jafaral/pim-warn
pimd: fix compile warnings
Jafar Al-Gharaibeh [Mon, 22 Jul 2024 19:03:23 +0000 (15:03 -0400)]
Merge pull request #16407 from opensourcerouting/fix/ignore_alias_for_clang-formatter
tools: Ignore ALIAS_* macros for clang-formatter
Rajasekar Raja [Mon, 22 Jul 2024 17:13:19 +0000 (10:13 -0700)]
bgpd: backpressure - Avoid use after free
Coverity complains there is a use after free (
1598495 and
1598496 )
At this point, most likely dest->refcount cannot go 1 and free up
the dest, but there might be some code path where this can happen.
Fixing this with a simple order change (no harm fix).
Ticket :#
4001204
Signed-off-by: Rajasekar Raja <rajasekarr@nvidia.com>
Donald Sharp [Mon, 22 Jul 2024 16:37:51 +0000 (12:37 -0400)]
Merge pull request #16309 from louis-6wind/fix-pim-crash
pimd: fix crash on non-existent interface
Jafar Al-Gharaibeh [Mon, 22 Jul 2024 16:19:50 +0000 (11:19 -0500)]
pimd: fix compile warnings
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
Donald Sharp [Mon, 22 Jul 2024 14:35:43 +0000 (10:35 -0400)]
Merge pull request #16429 from LabNConsulting/chopps/fix-bad-log
lib: move non-error from __log_err to __dbg
Christian Hopps [Mon, 22 Jul 2024 11:52:10 +0000 (07:52 -0400)]
lib: move non-error from __log_err to __dbg
Additionally, print `errmsg_if_any` in successful debug messages
if non-NULL.
fixes #16386 #16043
Signed-off-by: Christian Hopps <chopps@labn.net>
Y Bharath [Mon, 22 Jul 2024 11:17:54 +0000 (16:47 +0530)]
yang: Added missed prefix to the yang file
Corrected warning by including the module
Signed-off-by: y-bharath14 <y.bharath@samsung.com>
Donatas Abraitis [Mon, 22 Jul 2024 10:48:59 +0000 (03:48 -0700)]
Merge pull request #16408 from sri-mohan1/srib-24-zebra-e
bgpd: changes for code maintainability
Donatas Abraitis [Mon, 22 Jul 2024 09:53:26 +0000 (02:53 -0700)]
Merge pull request #16341 from crosser/preserve-needed-rmacs
zebra: evpn: not coerce VTEP IP to IPv4 in nh_list
sri-mohan1 [Wed, 17 Jul 2024 07:02:53 +0000 (12:32 +0530)]
bgpd: changes for code maintainability
these changes are for improving the code maintainability and readability
Signed-off-by: sri-mohan1 <sri.mohan@samsung.com>
Jafar Al-Gharaibeh [Sun, 21 Jul 2024 18:01:16 +0000 (14:01 -0400)]
Merge pull request #16425 from opensourcerouting/fix/do_not_prepend_an_empty_list_for_pim_vrfs
tools: Do not append an empty list (pim_vrfs) to the config lines
Jafar Al-Gharaibeh [Sun, 21 Jul 2024 18:00:10 +0000 (14:00 -0400)]
Merge pull request #16426 from cscarpitta/fix/remove-annoying-topotest-warnings
tests: Fix topotest warnings
Carmine Scarpitta [Sun, 21 Jul 2024 07:37:06 +0000 (09:37 +0200)]
tests: Fix warnings in `bgp_srv6l3vpn_to_bgp_vrf3`
When performing the `bgp_srv6l3vpn_to_bgp_vrf3` topotest, the following
warnings are observed:
```
2024-07-21 08:01:51,390 WARNING: r1: Router(r1): proc failed: rc 127 pid 52974
args: /usr/bin/nsenter --mount=/proc/52322/ns/mnt --net=/proc/52322/ns/net --uts=/proc/52322/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf3/r1/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf3/r1/setup.sh: No such file or directory
stderr: *empty*
2024-07-21 08:01:51,522 WARNING: r2: Router(r2): proc failed: rc 127 pid 52984
args: /usr/bin/nsenter --mount=/proc/52397/ns/mnt --net=/proc/52397/ns/net --uts=/proc/52397/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf3/r2/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf3/r2/setup.sh: No such file or directory
stderr: *empty*
2024-07-21 08:01:51,632 WARNING: ce1: Router(ce1): proc failed: rc 127 pid 52994
args: /usr/bin/nsenter --mount=/proc/52472/ns/mnt --net=/proc/52472/ns/net --uts=/proc/52472/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf3/ce1/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf3/ce1/setup.sh: No such file or directory
stderr: *empty*
2024-07-21 08:01:51,757 WARNING: ce2: Router(ce2): proc failed: rc 127 pid 53004
args: /usr/bin/nsenter --mount=/proc/52547/ns/mnt --net=/proc/52547/ns/net --uts=/proc/52547/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf3/ce2/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf3/ce2/setup.sh: No such file or directory
stderr: *empty*
2024-07-21 08:01:51,878 WARNING: ce3: Router(ce3): proc failed: rc 127 pid 53014
args: /usr/bin/nsenter --mount=/proc/52622/ns/mnt --net=/proc/52622/ns/net --uts=/proc/52622/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf3/ce3/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf3/ce3/setup.sh: No such file or directory
stderr: *empty*
2024-07-21 08:01:51,997 WARNING: ce4: Router(ce4): proc failed: rc 127 pid 53024
args: /usr/bin/nsenter --mount=/proc/52697/ns/mnt --net=/proc/52697/ns/net --uts=/proc/52697/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf3/ce4/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf3/ce4/setup.sh: No such file or directory
stderr: *empty*
2024-07-21 08:01:52,109 WARNING: ce5: Router(ce5): proc failed: rc 127 pid 53034
args: /usr/bin/nsenter --mount=/proc/52772/ns/mnt --net=/proc/52772/ns/net --uts=/proc/52772/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf3/ce5/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf3/ce5/setup.sh: No such file or directory
stderr: *empty*
2024-07-21 08:01:52,225 WARNING: ce6: Router(ce6): proc failed: rc 127 pid 53044
args: /usr/bin/nsenter --mount=/proc/52847/ns/mnt --net=/proc/52847/ns/net --uts=/proc/52847/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf3/ce6/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf3/ce6/setup.sh: No such file or directory
stderr: *empty*
````
This occurs because the topotest attempts to execute the `setup.sh`
file, and the file does not exist.
Let's fix the issue by checking if the `setup.sh` file exists and
executing it only if it does.
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Carmine Scarpitta [Sun, 21 Jul 2024 07:36:47 +0000 (09:36 +0200)]
tests: Fix warnings in `bgp_srv6l3vpn_to_bgp_vrf2`
When performing the `bgp_srv6l3vpn_to_bgp_vrf2` topotest, the following
warnings are observed:
```
2024-07-21 08:01:51,390 WARNING: r1: Router(r1): proc failed: rc 127 pid 52974
args: /usr/bin/nsenter --mount=/proc/52322/ns/mnt --net=/proc/52322/ns/net --uts=/proc/52322/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/r1/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/r1/setup.sh: No such file or directory
stderr: *empty*
2024-07-21 08:01:51,522 WARNING: r2: Router(r2): proc failed: rc 127 pid 52984
args: /usr/bin/nsenter --mount=/proc/52397/ns/mnt --net=/proc/52397/ns/net --uts=/proc/52397/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/r2/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/r2/setup.sh: No such file or directory
stderr: *empty*
2024-07-21 08:01:51,632 WARNING: ce1: Router(ce1): proc failed: rc 127 pid 52994
args: /usr/bin/nsenter --mount=/proc/52472/ns/mnt --net=/proc/52472/ns/net --uts=/proc/52472/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/ce1/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/ce1/setup.sh: No such file or directory
stderr: *empty*
2024-07-21 08:01:51,757 WARNING: ce2: Router(ce2): proc failed: rc 127 pid 53004
args: /usr/bin/nsenter --mount=/proc/52547/ns/mnt --net=/proc/52547/ns/net --uts=/proc/52547/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/ce2/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/ce2/setup.sh: No such file or directory
stderr: *empty*
2024-07-21 08:01:51,878 WARNING: ce3: Router(ce3): proc failed: rc 127 pid 53014
args: /usr/bin/nsenter --mount=/proc/52622/ns/mnt --net=/proc/52622/ns/net --uts=/proc/52622/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/ce3/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/ce3/setup.sh: No such file or directory
stderr: *empty*
2024-07-21 08:01:51,997 WARNING: ce4: Router(ce4): proc failed: rc 127 pid 53024
args: /usr/bin/nsenter --mount=/proc/52697/ns/mnt --net=/proc/52697/ns/net --uts=/proc/52697/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/ce4/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/ce4/setup.sh: No such file or directory
stderr: *empty*
2024-07-21 08:01:52,109 WARNING: ce5: Router(ce5): proc failed: rc 127 pid 53034
args: /usr/bin/nsenter --mount=/proc/52772/ns/mnt --net=/proc/52772/ns/net --uts=/proc/52772/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/ce5/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/ce5/setup.sh: No such file or directory
stderr: *empty*
2024-07-21 08:01:52,225 WARNING: ce6: Router(ce6): proc failed: rc 127 pid 53044
args: /usr/bin/nsenter --mount=/proc/52847/ns/mnt --net=/proc/52847/ns/net --uts=/proc/52847/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/ce6/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf2/ce6/setup.sh: No such file or directory
stderr: *empty*
````
This occurs because the topotest attempts to execute the `setup.sh`
file, and the file does not exist.
Let's fix the issue by checking if the `setup.sh` file exists and
executing it only if it does.
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Carmine Scarpitta [Sun, 21 Jul 2024 07:36:28 +0000 (09:36 +0200)]
tests: Fix warnings in `bgp_srv6l3vpn_to_bgp_vrf`
When performing the `bgp_srv6l3vpn_to_bgp_vrf` topotest, the following
warnings are observed:
```
2024-07-21 08:01:51,390 WARNING: r1: Router(r1): proc failed: rc 127 pid 52974
args: /usr/bin/nsenter --mount=/proc/52322/ns/mnt --net=/proc/52322/ns/net --uts=/proc/52322/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf/r1/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf/r1/setup.sh: No such file or directory
stderr: *empty*
2024-07-21 08:01:51,522 WARNING: r2: Router(r2): proc failed: rc 127 pid 52984
args: /usr/bin/nsenter --mount=/proc/52397/ns/mnt --net=/proc/52397/ns/net --uts=/proc/52397/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf/r2/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf/r2/setup.sh: No such file or directory
stderr: *empty*
2024-07-21 08:01:51,632 WARNING: ce1: Router(ce1): proc failed: rc 127 pid 52994
args: /usr/bin/nsenter --mount=/proc/52472/ns/mnt --net=/proc/52472/ns/net --uts=/proc/52472/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf/ce1/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf/ce1/setup.sh: No such file or directory
stderr: *empty*
2024-07-21 08:01:51,757 WARNING: ce2: Router(ce2): proc failed: rc 127 pid 53004
args: /usr/bin/nsenter --mount=/proc/52547/ns/mnt --net=/proc/52547/ns/net --uts=/proc/52547/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf/ce2/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf/ce2/setup.sh: No such file or directory
stderr: *empty*
2024-07-21 08:01:51,878 WARNING: ce3: Router(ce3): proc failed: rc 127 pid 53014
args: /usr/bin/nsenter --mount=/proc/52622/ns/mnt --net=/proc/52622/ns/net --uts=/proc/52622/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf/ce3/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf/ce3/setup.sh: No such file or directory
stderr: *empty*
2024-07-21 08:01:51,997 WARNING: ce4: Router(ce4): proc failed: rc 127 pid 53024
args: /usr/bin/nsenter --mount=/proc/52697/ns/mnt --net=/proc/52697/ns/net --uts=/proc/52697/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf/ce4/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf/ce4/setup.sh: No such file or directory
stderr: *empty*
2024-07-21 08:01:52,109 WARNING: ce5: Router(ce5): proc failed: rc 127 pid 53034
args: /usr/bin/nsenter --mount=/proc/52772/ns/mnt --net=/proc/52772/ns/net --uts=/proc/52772/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf/ce5/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf/ce5/setup.sh: No such file or directory
stderr: *empty*
2024-07-21 08:01:52,225 WARNING: ce6: Router(ce6): proc failed: rc 127 pid 53044
args: /usr/bin/nsenter --mount=/proc/52847/ns/mnt --net=/proc/52847/ns/net --uts=/proc/52847/ns/uts -F /bin/bash -c /bin/bash /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf/ce6/setup.sh
stdout: /bin/bash: /media/workspace/frr/tests/topotests/bgp_srv6l3vpn_to_bgp_vrf/ce6/setup.sh: No such file or directory
stderr: *empty*
````
This occurs because the topotest attempts to execute the `setup.sh`
file, and the file does not exist.
Let's fix the issue by checking if the `setup.sh` file exists and
executing it only if it does.
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Donatas Abraitis [Sat, 20 Jul 2024 08:44:48 +0000 (01:44 -0700)]
Merge pull request #16412 from y-bharath14/srib-yang-b
yang: Fixed pyang warnings at frr-bfdd yang file
Donatas Abraitis [Sat, 20 Jul 2024 06:46:49 +0000 (23:46 -0700)]
Merge pull request #16392 from y-bharath14/srib-yang-a
yang: Corrected range in yang file
Donatas Abraitis [Sat, 20 Jul 2024 00:30:08 +0000 (03:30 +0300)]
tools: Apply black formatting for the recent frr-reload.py changes
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>