summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2022-09-25bgpd: conditional advertise-map unset on peer fixing warning messagesMadhuri Kuruganti
Signed-off-by: Madhuri Kuruganti <maduri111@gmail.com>
2022-09-25bgpd: conditional advertise-map unset on peer not re-advertising withdrawn ↵Madhuri Kuruganti
routes Signed-off-by: Madhuri Kuruganti <maduri111@gmail.com>
2022-09-12Merge pull request #11868 from LabNConsulting/ziemba/bgp-labelpool-performanceDonald Sharp
bgpd: improve labelpool performance at scale
2022-09-12Merge pull request #11923 from ↵Donald Sharp
opensourcerouting/fix/aggregate-address-matching-MED bgpd: Fix aggregate-address summary-only matching-MED-only
2022-09-10tests: Validate the routes using polling for bgp_remove_private_asDonatas Abraitis
Do not fail at the first shot. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-09-07Merge pull request #11915 from opensourcerouting/topotests-collectDonald Sharp
topotests: ignore env for pytest --collect-only
2022-09-07bgpd: Fix aggregate-address summary-only matching-MED-onlyDonatas Abraitis
Before it worked only when configured initially via CLI. Later, when we receive a new route, that should match a decent MED, we just skip it, because MED mismatch is not recalculated. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-09-06topotests: ignore env for pytest --collect-onlyDavid Lamparter
`--collect-only` does not run any tests, so bypass env checks for it. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-09-05bgpd: associate appropriate family for redistributed connected addressesPhilippe Guibert
When redistributing connected addresses, the address family has to be figured out. The calculation was not done, the next-hop address length was not set, and as consequence, the nexthop is displayed like if it was an ipv6 address, which is wrong for ipv4 addresses. Calculate the family for connected addresses. Change the topotests accordingly. Fixes: ("7226bc40d606") bgpd: ignore NEXT_HOP for MP_REACH_NLRI Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2022-09-05topotests: add bgp_vpnv4_ebgp test with 'mpls bgp forwarding'Philippe Guibert
add bgp_vpnv4_ebgp using the 'mpls bgp forwarding' interface command. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2022-09-05topotests: add bgp vpnv4 over gre testPhilippe Guibert
This test ensures that MPLS VPN routes can be installed into a gre interface with route-map l3vpn next-hop encapsulation command set. On the other hand, if this command is not set, incoming bgp routes are not considered as valid. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2022-08-31bgpd: improve labelpool performance at scaleG. Paul Ziemba
- double the size of each new chunk request from zebra - use bitfields to track label allocations in a chunk - When allocating: - skip chunks with no free labels - search biggest chunks first - start search in chunk where last search ended - Improve API documentation in comments (bgp_lp_get() and callback) - Tweak formatting of "show bgp labelpool chunks" - Add test features (compiled conditionally on BGP_LABELPOOL_ENABLE_TESTS) Signed-off-by: G. Paul Ziemba <paulz@labn.net>
2022-08-30Merge pull request #11833 from opensourcerouting/feature/bgp_neighbor_sooRuss White
bgpd: Add `neighbor soo` command
2022-08-30Merge pull request #11852 from gpnaveen/bgp_admin_distRuss White
tests: adding bgp admin distance topotests.
2022-08-28tests: adding bgp admin distance topotests.nguggarigoud
This has bgp admin topotest automation suit. Signed-off-by: nguggarigoud <nguggarigoud@vmware.com>
2022-08-24Revert "tests: Check if BGP community-list filtering works correctly"Donatas Abraitis
This reverts commit b08784281471bebb8b8dd4a97e558ae7cc078954.
2022-08-23Merge pull request #11820 from opensourcerouting/fix/clist_matchRuss White
bgpd: Fix community-list handling
2022-08-23Merge pull request #11842 from opensourcerouting/fix/topotests_platform_checkRuss White
tests: Log as error if some of the daemons are missing
2022-08-22tests : bgp-default-originate ecmp scenerio is addedARShreenidhi
Signed-off-by: ARShreenidhi <rshreenidhi@vmware.com>
2022-08-20tests: Log as error if some of the daemons are missingDonatas Abraitis
Also print runtime directory for topotests if the error occurs. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-08-19tests: Check if BGP SoO extended community filtering worksDonatas Abraitis
Whn using as-override, we should be able to deny outgoing updates from being propogated when `neighbor soo` is configured. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-08-16tests: Check if BGP community-list filtering works correctlyDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-08-11ospf6d: Remove ospf6Enabled from JSON outputDonatas Abraitis
Time to deprecate it. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-08-09Merge pull request #11752 from opensourcerouting/fix/update_policy_on_filtersRuss White
bgpd: Handle ORF remove-all events correctly and update ORF prefix-list on changes
2022-08-08tests: Convert one test to use interface based mpls configDonald Sharp
To prove that this works. Modify a test that uses mpls to turn on mpls for the interfaces that need mpls via the new mpls command. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-08-05tests: Check if ORF filtering works correctly when modifying prefix-listsDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-08-03Merge pull request #11710 from donaldsharp/split_up_test_multicast_pim_static_rpDonatas Abraitis
some test fixes and a coverity fix
2022-08-01Merge pull request #11692 from opensourcerouting/fix/bgpd_as_overrideDonald Sharp
bgpd: Override ASN without checking if an entire as-path is from a single ASN
2022-07-29tests: Fix test_ospf_topo1 as that it sometimes failsDonald Sharp
This test is sometimes failing when it looks at the v6 routes in the fib. Since the step before is ensuring that v3 ospf has just converged let's give it a bit of time to find and see if things have had a chance to install the routes too. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-07-29tests: Split up test_multicast_pim_static_rp.py into 3 test suitesDonald Sharp
This test directory takes almost 7 minutes to complete splitting this up into 3 test files drops it down to just over 3 minutes. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-07-27tests: [PIMv6] Update topology for static rp suiteKuldeep Kashyap
Updated topology for static rp suite as per testcase. Signed-off-by: Kuldeep Kashyap <kashyapk@vmware.com>
2022-07-27tests: Check if BGP as-override works correctlyDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-07-27Merge pull request #11164 from kuldeepkash/pim_v6Martin Winter
2022-07-26tests: Fixup more missing pytestmark annotationsDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-07-26Merge pull request #11523 from pguibert6WIND/bgp_no_retainRuss White
Bgp no retain
2022-07-23tests: [PIMv6] Add test_multicast_pimv6_static_rp suiteKuldeep Kashyap
Adding supporting multicast PIMv6 static rp test suite. Signed-off-by: Kuldeep Kashyap <kashyapk@vmware.com>
2022-07-23tests: [PIMv6] APIs for multicast PIMv6 configKuldeep Kashyap
Enhanced few exsiting PIM APIs to support both IPv4 and IPv6 configuration. Added few new APIs for PIMv6. Tested all existing tests with new API changes. Signed-off-by: Kuldeep Kashyap <kashyapk@vmware.com>
2022-07-23topotests: Drop static routeChromico
Signed-off-by: Nathan Mangar <nathan@thundergear.io>
2022-07-22Merge pull request #11565 from pguibert6WIND/bfd_vrf_lite_supportRafael Zalamena
bfdd: allow l3vrf bfd sessions without udp leaking
2022-07-22topotests: add bfd_vrflite_topo1 testPhilippe Guibert
This tests checks that there are no errors when receiving BFD packets over the various linux vrf interfaces. For example, if an incoming packet is received by the wrong socket, a VRF mismatch error would occur, and BFD flapping would be observed. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2022-07-20Merge pull request #11643 from ARShreenidhi/df_or_ntw_autoDonatas Abraitis
tests: bgp default orignate behaviour on network commands
2022-07-19tests: Make bgp_snmp_mplsl3vpn be more forgivingDonald Sharp
I rarely get this failure: @classname: bgp_snmp_mplsl3vpn.test_bgp_snmp_mplsvpn @name: test_pe1_converge_evpn @time: 44.875 @message: AssertionError: BGP SNMP does not seem to be running assert False + where False = <bound method SnmpTester.test_oid of <lib.snmptest.SnmpTester object at 0x7fa8562eb4f0>>('bgpVersion', '10') + where <bound method SnmpTester.test_oid of <lib.snmptest.SnmpTester object at 0x7fa8562eb4f0>> = <lib.snmptest.SnmpTester object at 0x7fa8562eb4f0>.test_oid "Wait for protocol convergence" tgen = get_topogen() r1 = tgen.gears["r1"] r1_snmp = SnmpTester(r1, "10.1.1.1", "public", "2c") assertmsg = "BGP SNMP does not seem to be running" > assert r1_snmp.test_oid("bgpVersion", "10"), assertmsg E AssertionError: BGP SNMP does not seem to be running E assert False E + where False = <bound method SnmpTester.test_oid of <lib.snmptest.SnmpTester object at 0x7fa8562eb4f0>>('bgpVersion', '10') E + where <bound method SnmpTester.test_oid of <lib.snmptest.SnmpTester object at 0x7fa8562eb4f0>> = <lib.snmptest.SnmpTester object at 0x7fa8562eb4f0>.test_oid Under heavy system load a quick test before BGP can fully come up can result in a failed test. Add some extra time for snmp to come up properly. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-07-19tests: bgp default orignate behaviour on network commandsARShreenidhi
test script covers 1. Default originate behaviour using 'network <x.x.x.x>' command 2. Default originate behaviour using aggregate summary command Signed-off-by: ARShreenidhi <rshreenidhi@vmware.com>
2022-07-18topotests: add bgp retain testPhilippe Guibert
This test checks that when retain functionality is disabled, some prefixes are removed from the BGP ipv4 vpn RIB. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2022-07-16Merge pull request #11605 from LabNConsulting/improve-valgrindDonald Sharp
Improve valgrind
2022-07-15Merge pull request #11564 from kuldeepkash/multicast_pim_bsmJafar Al-Gharaibeh
tests: Fix multicast_pim_bsm_topo2 static route issue
2022-07-14tests: analyze: handle list of strings being returnedChristian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>
2022-07-14tests: check memleaks end of module and ignore daemonizing parentChristian Hopps
- ignore parent from daemonize valgrind files these allocations will be checked in the child. - check for memleaks at end of module/file not just after tests. Signed-off-by: Christian Hopps <chopps@labn.net>
2022-07-14topotests: Remove typo on IPChromico Rek
Signed-off-by: Nathan Mangar <nathan@thundergear.io> topotests: Remove static route Signed-off-by: Nathan Mangar <nathan@thundergear.io>
2022-07-12Merge pull request #11285 from iqras23/conditional_def_origDavid Lamparter