summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2025-04-16Merge pull request #18662 from mjstapp/fix_test_nb_endianDavid Lamparter
2025-04-15tests: add nb test binary to .gitignoreMark Stapp
Add a northbound unit-test binary product to .gitignore Signed-off-by: Mark Stapp <mjs@cisco.com>
2025-04-15tests: use little-endian order for libyang apiMark Stapp
Use the expected - little-endian - byte-order for a param to one of the libyang apis; tests fail on LE architectures otherwise. Signed-off-by: Mark Stapp <mjs@cisco.com>
2025-04-14tests: Validating staticd v4-over-v6 nexthopChristopher Dziomba
Introducing do_ipv6_nexthop to static_simple topotest. The test configures IPv4 routes with IPv6 nexthop and validates that via inet6 is visible in the Linux Kernel Signed-off-by: Christopher Dziomba <christopher.dziomba@telekom.de>
2025-04-12tests: Add more tests to bgp_rpki_topo1 testDonald Sharp
Looking at the gcov of the rpki code, I noticed that there was some functionality that is not covered in our test suites. Add the functionality. Signed-off-by: Donald Sharp <donaldsharp72@gmail.com>
2025-04-11Merge pull request #18574 from y-bharath14/srib-tests-v10Donatas Abraitis
tests: Shadowing the built-in function
2025-04-11Merge pull request #18633 from y-bharath14/srib-tests-v11Donald Sharp
tests: Fix potential issues in mcast-tester.py
2025-04-10tests: Fix potential issues in mcast-tester.pyY Bharath
Fix potential issues in mcast-tester.py Signed-off-by: y-bharath14 <y.bharath@samsung.com>
2025-04-09test: Test for bgp route deleteSoumya Roy
This fix add tests to verify routes/path are getting deleted properly, when the advertising neighbor is shutdown Signed-off-by: Soumya Roy <souroy@nvidia.com>
2025-04-08tests: clean up variable-shadow warningsMark Stapp
Clean up -Wshadow warnings in unit-tests Signed-off-by: Mark Stapp <mjs@cisco.com>
2025-04-07staticd: Avoid requesting SRv6 sid from zebra when loc and sid block dont matchRajasekar Raja
Currently, when the locator block and sid block differs, staticd would still go ahead and request zebra to allocate the SID which it does if there is atleast one match (from any locators). Only when staticd tries to install the route, it sees that the locator block and sid block are different and avoids installing the route. Fix: Check if the locator block and sid block match before even requesting Zebra to allocate one. Signed-off-by: Rajasekar Raja <rajasekarr@nvidia.com>
2025-04-04tests: Shadowing the built-in functionY Bharath
Shadowing the built-in function Signed-off-by: y-bharath14 <y.bharath@samsung.com>
2025-04-03Merge pull request #18572 from ↵Mark Stapp
opensourcerouting/fix/syntax_error_bgp_gr_notification tests: Fix typo when configuring delayopen timer
2025-04-03Merge pull request #18546 from LabNConsulting/ziemba/250330-rfapi-mem-cleanupMark Stapp
bgpd: rfapi: track outstanding rib and import timers, free mem at exit
2025-04-03Merge pull request #18396 from pguibert6WIND/srv6l3vpn_to_bgp_vrf_redistributeRuss White
Add BGP redistribution in SRv6 BGP
2025-04-03tests: Fix typo when configuring delayopen timerDonatas Abraitis
`"` was accidentally added, and random tests failures happening. Fixes: a4f61b78dd382c438ff4fec2fda7450ecc890edf ("tests: Check if routes are marked as stale and retained with N-bit for GR") Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2025-04-03Merge pull request #18553 from y-bharath14/srib-tests-v9Donatas Abraitis
tests: Resource leaks in test_all_protocol_startup
2025-04-01Merge pull request #18450 from donaldsharp/bgp_packet_readsRuss White
Bgp packet reads conversion to a FIFO
2025-04-01tests: Resource leaks in test_all_protocol_startupY Bharath
Fix resource leaks in test_all_protocol_startup.py Signed-off-by: y-bharath14 <y.bharath@samsung.com>
2025-03-31bgpd: rfapi: track outstanding rib and import timers, free mem at exitG. Paul Ziemba
While here, also make "VPN SAFI clear" test wait for clear result (tests/topotests/bgp_rfapi_basic_sanity{,_config2}) Original RFAPI code relied on the frr timer system to remember various allocations that were supposed to be freed at future times rather than manage a parallel database. However, if bgpd is terminated before the times expire, those pending allocations are marked as memory leaks, even though they wouldn't be leaks under normal operation. This change adds some hash tables to track these outstanding allocations that are associated with pending timers, and uses those tables to free the allocations when bgpd exits. Signed-off-by: G. Paul Ziemba <paulz@labn.net>
2025-03-28tests: Irrelevant code in lutil.pyY Bharath
Irrelevant code in lutil.py Signed-off-by: y-bharath14 <y.bharath@samsung.com>
2025-03-27tests: Fix potential issues at send_bsr_packet.pyY Bharath
Fix potential issues at send_bsr_packet.py Signed-off-by: y-bharath14 <y.bharath@samsung.com>
2025-03-26Merge pull request #18498 from opensourcerouting/fix/keep_stale_routes_on_clearRuss White
bgpd: Retain the routes if we do a clear with N-bit set for Graceful-Restart
2025-03-26Merge pull request #18508 from donaldsharp/rip_snmp_test_fixupJafar Al-Gharaibeh
tests: Modify simple_snmp_test to use frr.conf
2025-03-26Merge pull request #18502 from opensourcerouting/fix/mpls_withdraw_labelDonald Sharp
bgpd: Set the label for MP_UNREACH_NLRI 0x800000 instead of 0x000000
2025-03-26tests: Modify simple_snmp_test to use frr.confDonald Sharp
The simple_snmp_test was not properly testing the rip snmp code because of weirdness w/ mgmtd and non-integrated configs. Modify the whole test to use a integrated config and voila ripd is talking snmp again in the test. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2025-03-26Merge pull request #18506 from donaldsharp/ripng_test_aggregate_addressRuss White
tests: Add ripng aggregate address testing
2025-03-26tests: Use label 0x800000 instead of 0x000000 for BMP testsDonatas Abraitis
Related-to: 94e2aadf7187d7d695babce21033b5bc8e454f25 ("bgpd: Set the label for MP_UNREACH_NLRI 0x800000 instead of 0x000000") Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2025-03-26tests: Fix wait times in test_ospf6_gr_topo1 topotestMartin Buck
Increase wait times to at least the minimum wait time accepted by topotest.run_and_expect(). Also change poll interval to 1s, no point in doings this more frequently. Finally, slightly improve the topology diagram to also include area numbers. Signed-off-by: Martin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org>
2025-03-26Merge pull request #18476 from y-bharath14/srib-tests-v6Donatas Abraitis
tests: Handling potential errors gracefully
2025-03-25tests: Add ripng aggregate address testingDonald Sharp
Looking at gcov and noticed that ripngd does not test any aggregate address addition/deletion to ensure that it works. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2025-03-25tests: Check if routes are marked as stale and retained with N-bit for GRDonatas Abraitis
Related-to: b7c657d4e065f310fcf6454abae1a963c208c3b8 ("bgpd: Retain the routes if we do a clear with N-bit set for Graceful-Restart") Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2025-03-25topotests: remove useless frr commands of bgp_srv6l3vpn_to_bgp*Philippe Guibert
Many useless commande are still persistent in the bgp_srv6l3vpn_to_bgp_vrf tests. Remove the useless commands. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2025-03-25tests: Expand hold timer to 60 seconds for high_ecmpDonald Sharp
The hold timer is 5/20. At load with a very very large number of routes, the tests are experiencing some issues with this. Let's just give ourselves some headroom associated with the receiving of packets Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2025-03-24Merge pull request #18447 from donaldsharp/bgp_clear_batchRuss White
Bgp clear batch
2025-03-24topotests: use json exact test for bgp_srv6l3vpn_to_bgp_vrf3Philippe Guibert
Add more control on the expected outputs, by using an exact json comparison. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2025-03-24tests: Handling potential errors gracefullyY Bharath
Handling potential errors gracefully at exa-receive.py Signed-off-by: y-bharath14 <y.bharath@samsung.com>
2025-03-24Merge pull request #18467 from cscarpitta/fix/fix_srv6_static_sids_crash_2Donatas Abraitis
staticd: Fix a crash that occurs when modifying an SRv6 SID
2025-03-24topotests: fix invalidate exported vpn prefixes on srv6l3vpn vrf3 setupPhilippe Guibert
When srv6 is disabled due to misconfiguration, exported VPN prefixes are invalidated, except for the ones that have their nexthop modified with the 'nexthop vpn export' command. The previous commit also invalidates those vpn prefixes. Apply the changes to the test by not considering some prefixes as selected. Enforce the expected route count. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2025-03-24topotests: extend bgp_srv6_l3vpn_to_bgp_vrf4 test with bgp peersJonathan Voss
This test ensures route redistribution across an srv6 VPN network is well taken into account. Signed-off-by: Jonathan Voss <jvoss@onvox.net> Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2025-03-24topotests: bgp_srv6l3vpn_to_bgp_vrf, add redistribute BGP update in l3vpnPhilippe Guibert
Add a BGP update in CE1 for redistribution. The expectation is that this BGP update will be leaked to the L3VPN. Reversely, if the locator is unset, the L3VPN prefix will be invalidated. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2025-03-24topotests: bgp_srv6l3vpn_to_bgp_vrf, change AS valuesPhilippe Guibert
Use experimental AS values to play the test. Add BGP peering on CEs, and use the default-originate functionality on each PE facing CPEs. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2025-03-24topotests: remove useless zebra aspath control in bgp srv6 testPhilippe Guibert
The aspath value has no need to be controlled. Unset the bgp capability to send aspath information to zebra. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2025-03-24topotests: move bgp_srv6l3vpn_to_bgp_vrf to unified configurationPhilippe Guibert
Use the unified configuration for bgp_srv6l3vpn_to_bgp_vrf test. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2025-03-23tests: high_ecmp creates 2 update groupsDonald Sharp
The high_ecmp test was creating 2 update groups, where 513 of the neighbors are in 1 and the remaining is in another. They should just all be in 1 update group. Modify the test creation such that interfaces r1-eth514 and r2-eth514 have v4 and v6 addresses. Signed-off-by: Donald Sharp <donaldsharp72@gmail.com>
2025-03-23tests: Add test case to verify SRv6 SID modifyCarmine Scarpitta
This commit adds a test case that modifies a SID and verifies that the RIB is as expected. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
2025-03-23Merge pull request #18378 from Tuetuopay/fix-route-map-gateway-ipDonatas Abraitis
bgpd: fix `set evpn gateway-ip ipv[46]` route-map
2025-03-22Merge pull request #18339 from y-bharath14/srib-tests-v3Donald Sharp
tests: Corrected typo at path_attributes.py
2025-03-22Merge pull request #18446 from louis-6wind/test_bfd_static_vrfDonatas Abraitis
tests: add bfd_static_vrf
2025-03-21tests: Change up start order of bmp testsDonald Sharp
Currently the tests appear to do this: a) Start the neighbors b) Start the bmp server connection c) Look for the neighbors up d) Look for the neighbor up messages in the bmp log This is not great from a testing perspective in that even though we started a) first it may not happen until after b) happens. Or even worse if it is partially up ( 1 of the 2 peers ) then the dump will have the neighbor connecting after parts of the table. This doesn't work too well because the SEQ number is something that is kept and compared to to make sure only new data is being looked at. Let's modify the startup configuration to start the bmp server first and then have a delayopen on the bgp neighbor statements so that the bmp peering can come up first. Signed-off-by: Donald Sharp <sharpd@nvidia.com>