summaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tests: check bfd with update-source in peer-groupLouis Scalbert8 days2-1/+35
| | | | | | Check bfd with update-source in peer-group. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
* tests: remove table version check in bgp rpki topo1Louis Scalbert9 days1-3/+0
| | | | | | | Remove table version check in bgp rpki topo1. Fixes: 5f50b98f8e ("tests: add bgp rpki topo1 rpkiValidationState") Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
* Merge pull request #17883 from opensourcerouting/fix/topotest_dynamic_cap_enheJafar Al-Gharaibeh10 days1-27/+1
|\ | | | | tests: Fix test_bgp_dynamic_capability_enhe topotest
| * tests: Fix test_bgp_dynamic_capability_enhe topotestDonatas Abraitis12 days1-27/+1
| | | | | | | | | | | | | | | | | | | | Drop redundant function (duplicate), and reset counters for r2 instead of r1. We check received capabilities on r2, hence we need to flush the counters on r2 too. Fixes: d1cfd730601e5063d126ca1e78be5695fe909a77 ("tests: Check if ENHE capability can be handled dynamically") Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* | topotests: bgp_ipv6_rtadv, add control over bgp updatesPhilippe Guibert10 days3-0/+109
| | | | | | | | | | | | | | Add a test to control the json values of the incoming BGP update received by an unnumbered BGP. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
* | Merge pull request #16894 from wenwang00/project-phoenixwing-ysjPhilippe Guibert10 days5-0/+219
|\ \ | | | | | | staticd: Add support for SRv6 Static SIDs
| * | tests: Add topotest for SRv6 static SIDsYuqing Zhao12 days5-0/+219
| | | | | | | | | | | | Signed-off-by: Yuqing Zhao <galadriel.zyq@alibaba-inc.com>
* | | tests: split notify test to regular and datastore notify testsChristian Hopps12 days2-99/+240
|/ / | | | | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* | Merge pull request #17836 from pguibert6WIND/limit_comm_list_countDonatas Abraitis13 days3-0/+76
|\ \ | |/ |/| limit community list count
| * topotest: add a test to control the community-list countPhilippe Guibert2025-01-143-0/+76
| | | | | | | | | | | | Add a test to control the community-list count. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
* | Merge pull request #17727 from idryzhov/netns-all-daemonsDonald Sharp2025-01-166-16/+20
|\ \ | | | | | | lib: introduce global -w option for VRF netns backend
| * | tests: use global -w option instead of per-daemon -nIgor Ryzhov2025-01-156-16/+20
| | | | | | | | | | | | | | | | | | | | | Add ability to enable -w option for all daemons in a topotest and use this option instead of the deprecated -n. Signed-off-by: Igor Ryzhov <idryzhov@gmail.com>
* | | tests: dont run ldp snmp test if no snmpChristian Hopps2025-01-161-0/+5
| | | | | | | | | | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* | | tests: fix missed grpc test requirement for frr-backend additionChristian Hopps2025-01-161-7/+2
|/ / | | | | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* | Merge pull request #17838 from opensourcerouting/msdp-topo3Russ White2025-01-153-3/+28
|\ \ | | | | | | topotests: improve test reliability
| * | topotests: improve test reliabilityRafael Zalamena2025-01-133-3/+28
| | | | | | | | | | | | | | | | | | | | | Decrease the protocol timers, wait for peers to connect (and test it) then finally wait a bit more for SAs to be propagated. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* | | Merge pull request #17855 from ↵Donald Sharp2025-01-153-0/+236
|\ \ \ | | | | | | | | | | | | | | | | opensourcerouting/fix/bgp_enhe_capability_via_dynamic_capability bgpd: Handle ENHE capability via dynamic capability
| * | | tests: Check if ENHE capability can be handled dynamicallyDonatas Abraitis2025-01-143-0/+236
| | |/ | |/| | | | | | | Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* | | Merge pull request #17776 from nabahr/group-rpf-modeDonald Sharp2025-01-155-25/+959
|\ \ \ | | | | | | | | PIMD: RPF lookup mode per-group, per-source
| * | | tests: Add tests for new RPF lookup group and source list featuresNathan Bahr2025-01-095-25/+959
| | |/ | |/| | | | | | | | | | | | | | | | Expand existing pim_mrib tests to include testing lookup modes specific to source and/or group as defined in prefix lists. Signed-off-by: Nathan Bahr <nbahr@atcorp.com>
* | | Merge pull request #17796 from LabNConsulting/chopps/datastore-notificationsDonald Sharp2025-01-144-27/+207
|\ \ \ | | | | | | | | operational-state (datastore) change notifications
| * | | tests: add datastore notification testChristian Hopps2025-01-144-27/+207
| | | | | | | | | | | | | | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* | | | Merge pull request #17800 from ↵Russ White2025-01-144-0/+225
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | opensourcerouting/fix/import_between_vrf_respect_allowas_in bgpd: Respect allowas-in value from the source VRF's peer
| * | | | tests: Check if allowas-in works when importing between local VRFsDonatas Abraitis2025-01-084-0/+225
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* | | | | Merge pull request #17639 from pguibert6WIND/bmp_import_vrf_viewRuss White2025-01-1417-0/+1052
|\ \ \ \ \ | |_|_|_|/ |/| | | | Ability to import BMP information from a separate BGP instance
| * | | | topotests: bmp, test syncro for pre/post-policy of imported bgpsPhilippe Guibert2025-01-075-39/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a test that controls that the configuration of an imported BGP instance triggers a re-syncronisation. Ensure that changing an attribute like route distinguisher triggers also a re-syncronisation. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
| * | | | bgpd, topotests: bmp imported bgp, send peer up events when config param changedPhilippe Guibert2025-01-071-0/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a BGP instance is created or becomes valid, and when a parameter is updated (router-id, route distinguisher), the peer up messages other than loc rib peer up messages, are sent. Add a test that controls if peer down and peer up messages are sent accordingly with correct route distinguisher values. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
| * | | | bgpd, topotests: bmp, send peer down when unconfiguring imported vrfPhilippe Guibert2025-01-071-20/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When unconfiguring an imported BGP instance, a peer down should be sent to notify BMP collector that the BGP instance is leaving. Add a test that controls the presence of the peer down loc-rib message. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
| * | | | bgpd, topotests: bmp imported bgp, add loc-rib peer up support when vrf flapsPhilippe Guibert2025-01-071-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the emission of a loc-rib peer up event for an imported bgp instance when vrf state changes. Add a test to control in the BMP collector that the peer up message is the one from that BGP instance. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
| * | | | bgpd, topotests: bmp imported bgp, add loc-rib peer up support when ↵Philippe Guibert2025-01-071-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | router-id changes Add the emission of a loc-rib peer up event for an imported bgp instance at route-id reconfiguration. Add a test to control in the BMP collector that the peer up message is the one from that BGP instance. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
| * | | | bgpd, topotests: bmp, add loc-rib peer up event for imported bgpPhilippe Guibert2025-01-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the emission of a loc-rib peer up event for an imported bgp instance at import-vrf configuration. Add a test to control in the BMP collector that the peer up message is the one from that BGP instance. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
| * | | | topotests: bgp_bmp, add test for import-vrf-view servicePhilippe Guibert2025-01-0715-0/+682
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a test with a new peer defined in a VRF, and where the BGP updates are imported in the BMP instance of the default BGP instance. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
* | | | | Merge pull request #17840 from Jafaral/pim-acl-testDonatas Abraitis2025-01-141-16/+0
|\ \ \ \ \ | |_|_|/ / |/| | | | tests: remove unnecessary wildcard fields from pim acl test
| * | | | tests: remove unnecessary wildcard fields from pim acl testJafar Al-Gharaibeh2025-01-111-16/+0
| | |_|/ | |/| | | | | | | | | | Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
* | | | tests: update munet to 0.15.4Christian Hopps2025-01-125-14/+353
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add readline and waitline functions for use with popen objects - other non-topotest (munet native) run changes - vm/qemu support booting cloud images (rocky, ubuntu, debian) - native topology init commands Signed-off-by: Christian Hopps <chopps@labn.net>
* | | | tests: avoid nondeterministic routeJafar Al-Gharaibeh2025-01-094-36/+15
|/ / / | | | | | | | | | Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
* | | tests: bgp_srv6l3vpn_to_bgp_vrf3 needs more timeDonald Sharp2025-01-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | The test starts with checking for rib insertion of routes that may take some time after system startup to come up. Under heavy load this may cause this test to just fail. Give it more time. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* | | tests: bgp_srv6_sid_reachability should give more timeDonald Sharp2025-01-091-1/+1
| |/ |/| | | | | | | | | | | | | | | The test starts right in on check_pings with a 10 second time out. Any type of delay on startup is going to cause problems. Give the first check_ping significant time for the test to be fully brought up. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* | Merge pull request #17707 from gromit1811/pr16811_rebasedRuss White2025-01-076-54/+448
|\ \ | | | | | | tests: cleanup ospf6 ecmp inter area
| * | tests: ospf6_ecmp_inter_area, no shutdown r7/r8 eth3Martin Buck2025-01-072-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drop eth3 shutdown from ospf6d.conf - it doesn't do anything there. And it actually shouldn't do anything: eth3 on r7/r8 are used as loopback-like interfaces to inject the address on eth2 into OSPFv3. So they need to be up for eth2 to work as expected. Based on original PR#16811 commit: eth3 shutdown is not applied because it is ospf6d.conf. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com> Signed-off-by: Martin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org>
| * | tests: ospf6_ecmp_inter_area, use router_json_cmpMartin Buck2025-01-074-48/+448
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use router_json_cmp when checking for proper nexthops to get better diagnostics in case of mismatches. Add step() messages to see which check failed. Based on original PR#16811 commit: expect_num_nexthops() errors are not understandable. Use router_json_cmp. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com> Signed-off-by: Martin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org>
* | | Merge pull request #17781 from LabNConsulting/chopps/fix-keyless-list-queryDonald Sharp2025-01-072-0/+46
|\ \ \ | | | | | | | | fix xpath query on keyless list with positional predicate
| * | | tests: add unit test case for keyless list xpath queriesChristian Hopps2025-01-072-0/+46
| | | | | | | | | | | | | | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* | | | Merge pull request #17782 from LabNConsulting/chopps/new-notify-msg-fmtDonald Sharp2025-01-071-5/+37
|\ \ \ \ | | | | | | | | | | New YANG notify msg fmt
| * | | | tests: fe-client: only pick mgmtd FE notify selectors onceChristian Hopps2025-01-071-5/+37
| |/ / / | | | | | | | | | | | | | | | | | | | | - adapt fe_client to new notification message format Signed-off-by: Christian Hopps <chopps@labn.net>
* | | | Merge pull request #17783 from LabNConsulting/chopps/new-oper-get-callbackDonald Sharp2025-01-072-4/+49
|\ \ \ \ | |_|_|/ |/| | | Add new oper state get callback
| * | | tests: add test for new northbound get functionChristian Hopps2025-01-072-4/+49
| |/ / | | | | | | | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* | | Merge pull request #17733 from pguibert6WIND/bmp_event_changesRuss White2025-01-073-8/+192
|\ \ \ | | | | | | | | BMP handling of BGP configuration changes
| * | | topotests: bgp_bmp, add peer message test when RD changesPhilippe Guibert2024-12-302-0/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a test to control the peer up and down message sent when the route distinguisher is updated. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
| * | | topotests: bmp_collector, fix display peer distinguisher IP:AS2BPhilippe Guibert2024-12-301-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The peer distinguisher format was badly displayed when a per peer header is sent with an IP:AS2B format. > {"peer_type": "loc-rib instance", "is_filtered": false, "policy": "loc-rib", > "peer_distinguisher": "None:2", ... The IP header is incorrectly read. Fix it. > {"peer_type": "loc-rib instance", "is_filtered": false, "policy": "loc-rib", > "peer_distinguisher": "3.3.3.5:2", ... Fixes: 875511c46676 ("topotests: add basic bmp collector") Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>