summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2025-03-01tests: Add test case to verify that SIDs can be re-addedCarmine Scarpitta
Add a test case to verify that staticd is able to re-install all SIDs after disabling and re-enabling SRv6. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
2025-03-01tests: Add test case to verify `no srv6` commandCarmine Scarpitta
Add a test case to verify that staticd removes all SIDs when the `no srv6` command is executed. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
2025-02-28Merge pull request #18263 from cscarpitta/fix/add_no_form_for_static_sids_cliDonald Sharp
staticd: Add `no` form for `static-sids` command
2025-02-27topotests: add bgp ecommunity-list match testPhilippe Guibert
Add a test suite that checks that it is possible to filter out BGP updates based on the extcommunity-list match operation of the route-map. Check also the extcommunity-limit option. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2025-02-27tests: Add test case to verify that SIDs can be re-addedCarmine Scarpitta
Add a test case to verify that staticd is able to re-install all SIDs after deleting and re-adding them. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
2025-02-27tests: Add test case to verify `no static-sids` commandCarmine Scarpitta
Add a test case to verify that staticd removes all SIDs when the `no static-sids` command is executed. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
2025-02-26Merge pull request #18261 from y-bharath14/srib-tests-v1Donald Sharp
tests: Fixed input dict at create_router_bgp
2025-02-26Merge pull request #18237 from LabNConsulting/chopps/oper-walk-treeDonald Sharp
support pre-built oper state in libyang tree
2025-02-26tests: add oper test using existing libyang state treeChristian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>
2025-02-26tests: Add test case to verify the programming of SRv6 uA SIDsCarmine Scarpitta
This commit adds a test case to ensure staticd correctly programs SRv6 uA SIDs in the RIB. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
2025-02-25tests: Fixed input dict at create_router_bgpY Bharath
Missing comma between the key-value pairs Signed-off-by: y-bharath14 <y.bharath@samsung.com>
2025-02-25Merge pull request #18119 from louis-6wind/bgp-hiddenRuss White
bgpd: fix default instance when leaving the hidden state.
2025-02-24Merge pull request #18225 from nabahr/autorp-joinsDonald Sharp
pim: Fix autorp group joins
2025-02-24tests: check as number in show runLouis Scalbert
Creates the default VRF instance after the other VRF instances. The default VRF instance is created in hidden state. Check that AS number in show run is correctly written. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
2025-02-24tests: add bgp_l3vpn_hidden topotestLouis Scalbert
Test that leaving the hidden BGP instance state is working. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
2025-02-23zebra: Add operational retrieval of Multipath NumberDonald Sharp
The multipath number specified is not available through the yang data and is not retrievable. Make it so. At this point in time do not allow this to be set from yang. Perhaps in the future. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2025-02-22tests: add unit-test for choice/case node queriesChristian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>
2025-02-21pim: Fix autorp group joinsNathan Bahr
Group joining got broken when moving the autorp socket to open/close as needed. This fixes it so autorp group joining is properly handled as part of opening the socket. Signed-off-by: Nathan Bahr <nbahr@atcorp.com>
2025-02-21tests: add docstrings to frontend mgmtd clientChristian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>
2025-02-19Merge pull request #18197 from donaldsharp/ospf_passive_test_removalDonatas Abraitis
tests: Remove warning about passive command
2025-02-19tests: Remove warning about passive commandDonald Sharp
Several tests have warnings about the passive command and how to use it. Let's address this. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2025-02-19topotests: test PIM neighbor filteringRafael Zalamena
Add new topology for testing neighbor filtering and more features in the future. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2025-02-19Merge pull request #18111 from opensourcerouting/gmp-leaveDonald Sharp
pimd,pim6d: support IGMPv2/MLDv1 immediate leave
2025-02-16tests: Fix intermittent failures in `srv6_encap_src_addr` topotestCarmine Scarpitta
The `srv6_encap_src_addr` runs a vtysh command to configure the SRv6 encapsulation source address and then immediately invokes an iproute2 command to verify that zebra has set this address in the kernel. There is no wait between the two operations and the verification is attempted only once. If the topotest does not find the expected address it fails immediately. The problem is that when topotest is run on a heavyily loaded system, it can take some time for zebra to set the address in the kernel. In this case, when the topotest checks the kernel address right after running the vtysh command, it doesn't find the expected address because zebra hasn't set it yet. This commit gives zebra some time to configure the address. It keeps to check that the address is the expected one for about 1 minute. If after 1 minute the address is not the expected one then the test fails. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
2025-02-16tests: Increase retry timeout in `srv6_encap_src_addr` topotestCarmine Scarpitta
The `srv6_encap_src_addr` topotest uses a waiting time that is too small. For this reason during startup it prints a warning: ``` 2025-02-16 09:23:47,704 WARNING: topo: Waiting time is too small (count=10, wait=1), using default values (count=20, wait=3) ``` This commit increases the waiting time to fix the warning. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
2025-02-16tests: Do not load bgpd config in `srv6_encap_src_addr` topotestCarmine Scarpitta
The `srv6_encap_src_addr` topotest tries to load bgpd.conf file that does not exist, which produces the following warning: ``` 2025-02-16 09:23:35,151 WARNING: topo: missing config 'r1' for '/media/frr/tests/topotests/srv6_encap_src_addr/r1/bgpd.conf' creating empty file '/etc/frr/bgpd.conf' ``` Since this topotest doesn't actually use bgpd, there's no point in loading the config file. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
2025-02-16tests: Do not load sharpd config in `srv6_encap_src_addr` topotestCarmine Scarpitta
The `srv6_encap_src_addr` topotest tries to load sharpd.conf file that does not exist, which produces the following warning: ``` 2025-02-16 09:23:35,151 WARNING: topo: missing config 'r1' for '/media/frr/tests/topotests/srv6_encap_src_addr/r1/sharpd.conf' creating empty file '/etc/frr/sharpd.conf' ``` Since this topotest doesn't actually use sharpd, there's no point in loading the config file. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
2025-02-16tests: Remove bgpd marker in `srv6_encap_src_addr` topotestCarmine Scarpitta
The `srv6_encap_src_addr` does not use bgp. As such, it should not have bgpd marker. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
2025-02-13Merge pull request #18080 from ↵Donald Sharp
opensourcerouting/fix/enable_ll_capability_if_using_unnumerred bgpd: Some fixes/improvements for Link-Local Next Hop capability
2025-02-13Merge pull request #18064 from cscarpitta/fix/fix_srv6_sid_parametersDonald Sharp
staticd: Fix SRv6 SID installation and deletion
2025-02-13pimd,topotests: frrbot styling suggestionsRafael Zalamena
Incorporate frrbot suggestion to avoid the CI warning. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2025-02-13topotests: test IGMPv2/MLDv1 immediate leaveRafael Zalamena
Add new topology for testing IGMPv2/MLDv1 immediate leave and more features in the future. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2025-02-13Merge pull request #18032 from opensourcerouting/gmp-limitJafar Al-Gharaibeh
pimd,pim6d: implement GMP group / source limits
2025-02-12Merge pull request #17649 from ariel-anieli/calloc-warnsDonald Sharp
tests: clear `-Wcalloc-transposed-args` warnings
2025-02-11tests: Set scope to be link-local and not global for NHDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2025-02-11tests: Disable link-local capability to check if we can use GUA NHsDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2025-02-11Merge pull request #17370 from louis-6wind/fix-vpn-leakingRuss White
bgpd: fix for the validity and the presence of prefixes in the BGP VPN table.
2025-02-11tests: Adopt bgp_vrf_leaking_5549_routes for LL Next Hop capabilityDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2025-02-11tests: Adopt bgp_ipv6_rtadv for LL Next Hop capabilityDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2025-02-10tests: Check if Link-Local Next Hop capability is enabled implicitlyDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2025-02-10topotests: test IGMP/MLD group/source limitsRafael Zalamena
Add new topology for testing IGMP/MLD group/source limiting and more features in the future. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2025-02-10topotests: multicast source group joinRafael Zalamena
Allow topotests to generate source group join to test SSM. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2025-02-08tests: Extend SRv6 static SIDs topotest to verify SID structureCarmine Scarpitta
The `static_srv6_sids` topotest verifies that staticd correctly programs the SIDs in the zebra RIB. Currently, the topotest only validates the programmed behavior and SID attributes. This commit extends the topotest to also validate the SID structure. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
2025-02-07Merge pull request #17871 from ↵Russ White
opensourcerouting/feature/bgp_link_local_capability bgpd: Implement Link-Local Next Hop capability
2025-02-05tests: Remove improper pymarkDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2025-02-04Merge pull request #17962 from donaldsharp/fpm_problemsRuss White
Fpm problems
2025-02-04Merge pull request #17988 from cscarpitta/feature/srv6-ipv4-traffic-steeringRuss White
staticd: Add CLI to support steering of IPv4 traffic over SRv6 SID list
2025-02-04Merge pull request #17918 from lsang6WIND/bgp_evpn_route_mapRuss White
Add bgpevpn route type-2 route map filter tests
2025-02-04Merge pull request #17896 from ↵Russ White
opensourcerouting/fix/bgp_oad_extended_communities bgpd: Send non-transitive extended communities from/to OAD peers
2025-02-04Merge pull request #17959 from ↵Russ White
opensourcerouting/fix/bgp_deny_zero_bgp_identifier_to_establish bgpd: Do not start BGP session if BGP identifier is not set