summaryrefslogtreecommitdiffstats
path: root/tests/topotests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #17836 from pguibert6WIND/limit_comm_list_countDonatas Abraitis2 days3-0/+76
|\ | | | | limit community list count
| * topotest: add a test to control the community-list countPhilippe Guibert5 days3-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 Sharp3 days6-16/+20
|\ \ | | | | | | lib: introduce global -w option for VRF netns backend
| * | tests: use global -w option instead of per-daemon -nIgor Ryzhov4 days6-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 Hopps4 days1-0/+5
| | | | | | | | | | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* | | tests: fix missed grpc test requirement for frr-backend additionChristian Hopps4 days1-7/+2
|/ / | | | | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* | Merge pull request #17838 from opensourcerouting/msdp-topo3Russ White4 days3-3/+28
|\ \ | | | | | | topotests: improve test reliability
| * | topotests: improve test reliabilityRafael Zalamena6 days3-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 Sharp4 days3-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 Abraitis5 days3-0/+236
| | |/ | |/| | | | | | | Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* | | Merge pull request #17776 from nabahr/group-rpf-modeDonald Sharp4 days5-25/+959
|\ \ \ | | | | | | | | PIMD: RPF lookup mode per-group, per-source
| * | | tests: Add tests for new RPF lookup group and source list featuresNathan Bahr10 days5-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 Sharp5 days4-27/+207
|\ \ \ | | | | | | | | operational-state (datastore) change notifications
| * | | tests: add datastore notification testChristian Hopps6 days4-27/+207
| | | | | | | | | | | | | | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* | | | Merge pull request #17800 from ↵Russ White5 days4-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 Abraitis11 days4-0/+225
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* | | | | Merge pull request #17639 from pguibert6WIND/bmp_import_vrf_viewRuss White5 days17-0/+1052
|\ \ \ \ \ | |_|_|_|/ |/| | | | Ability to import BMP information from a separate BGP instance
| * | | | topotests: bmp, test syncro for pre/post-policy of imported bgpsPhilippe Guibert12 days5-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 Guibert12 days1-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 Guibert12 days1-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 Guibert12 days1-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 Guibert12 days1-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 Guibert12 days1-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 Guibert12 days15-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 Abraitis5 days1-16/+0
|\ \ \ \ \ | |_|_|/ / |/| | | | tests: remove unnecessary wildcard fields from pim acl test
| * | | | tests: remove unnecessary wildcard fields from pim acl testJafar Al-Gharaibeh9 days1-16/+0
| | |_|/ | |/| | | | | | | | | | Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
* | | | tests: update munet to 0.15.4Christian Hopps7 days5-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-Gharaibeh10 days4-36/+15
|/ / / | | | | | | | | | Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
* | | tests: bgp_srv6l3vpn_to_bgp_vrf3 needs more timeDonald Sharp10 days1-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 Sharp10 days1-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 White12 days6-54/+448
|\ \ | | | | | | tests: cleanup ospf6 ecmp inter area
| * | tests: ospf6_ecmp_inter_area, no shutdown r7/r8 eth3Martin Buck12 days2-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 Buck12 days4-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 #17782 from LabNConsulting/chopps/new-notify-msg-fmtDonald Sharp12 days1-5/+37
|\ \ \ | |_|/ |/| | New YANG notify msg fmt
| * | tests: fe-client: only pick mgmtd FE notify selectors onceChristian Hopps12 days1-5/+37
| | | | | | | | | | | | | | | | | | - adapt fe_client to new notification message format Signed-off-by: Christian Hopps <chopps@labn.net>
* | | Merge pull request #17733 from pguibert6WIND/bmp_event_changesRuss White12 days3-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>
| * | | topotests: bgp_bmp, add peer up message test when router-id changesPhilippe Guibert2024-12-302-1/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a test to control the value of the peer bgp id of loc-rib peer up messages when the bgp router-id is reconfigured. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
| * | | topotests: bgp_bmp, add a test to check for bgp vrf peer loc-rib messagePhilippe Guibert2024-12-302-4/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a test where, when the vrf interface is flapping, a peer down and a peer up message are sent. This test, when used with ASAN, detects the memory leak of the open_tx and open_rx messages of the loc-rib. Refresh the method of updating the SEQ value when reading the peer messages: only update to the last matching SEQ value. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
* | | | Merge pull request #17773 from LabNConsulting/chopps/more-oper-test-fixRuss White12 days2-2/+24
|\ \ \ \ | | | | | | | | | | tests: improve test reliability
| * | | | tests: improve test reliabilityChristian Hopps13 days2-2/+24
| | |/ / | |/| | | | | | | | | | | | | | | | | | Test for presence of IPv6 kernel routes too. Signed-off-by: Christian Hopps <chopps@labn.net>
* | | | Merge pull request #17474 from sougata-github-nvidia/rib_ip_protocol_cleanupRuss White12 days1-0/+14
|\ \ \ \ | | | | | | | | | | zebra: Fix ip protocol route-map issue.
| * | | | zebra: Fix ip protocol route-map issue.Sougata Barik13 days1-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "ip/ipv6 protocol any route-map <route map>" cli is setting wrong route type ( ZEBRA_ROUTE_MAX ), It should set route type ZEBRA_ROUTE_ALL. Ticket: #4101560 Signed-off-by: Sougata Barik <sougatab@nvidia.com>
* | | | | Merge pull request #17431 from krishna-samy/bgpd_json_commitsRuss White12 days1-0/+15
|\ \ \ \ \ | |_|/ / / |/| | | | bgpd: show json output changes to optimize various show commands
| * | | | bgpd: add topotest for show bgp router json commandKrishnasamy R2024-11-191-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit has changes to validate show bgp router json command Signed-off-by: Krishnasamy R <krishnasamyr@nvidia.com>
* | | | | Merge pull request #17728 from dmytroshytyi-6WIND/bgp_rpki_stateDonatas Abraitis2025-01-012-0/+99
|\ \ \ \ \ | |_|_|/ / |/| | | | bgpd: add rpki current state
| * | | | tests: add bgp rpki topo1 rpkiValidationStateDmytro Shytyi2024-12-302-0/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Topotest to verify the next key-value "rpkiValidationState": "valid" Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
* | | | | tests: Check prefix statistics for path-attribute discard/withdrawDonatas Abraitis2024-12-302-0/+42
|/ / / / | | | | | | | | | | | | Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* | | | Merge pull request #17718 from cscarpitta/fix/fix-srv6-static-route-pytestmarkDonatas Abraitis2024-12-261-1/+1
|\ \ \ \ | | | | | | | | | | tests: Fix markers in `srv6_static_route` topotest