summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2022-10-07Merge pull request #12062 from fdumontet6WIND/hash_listMark Stapp
lib: hash list add function fix
2022-10-06Merge pull request #12034 from opensourcerouting/fix/gr_hard_notificationRuss White
bgpd: Do not send Deconfig/Shutdown message when restarting
2022-10-06Merge pull request #12040 from opensourcerouting/fix/bgp_local_as_remote_asRuss White
bgpd: Allow using remote-as the same as local-as
2022-10-06tests: make hash collision test collide harderDavid Lamparter
The issue fixed in the previous commit now correctly triggers a failure: ("assertion (list_add(&head, &itm[j]) == &itm[j]) failed") Turns out the "shitty" hash function was not shitty enough. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-10-06Merge pull request #11838 from Pdoijode/v6-gua-nh-bgp-updateDonatas Abraitis
bgpd: BGP does not update next-hop when global V6 address is configured
2022-09-30tests: Check if the routes in the kernel are retained for GR as wellDonatas Abraitis
Not only in BGP table. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-09-30bgpd: Do not send Deconfig/Shutdown message when restartingDonatas Abraitis
We might disable sending unconfig/shutdown notifications when Graceful-Restart is enabled and negotiated. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-09-29bgpd: BGP does not update next-hop when global V6 address is configuredPdoijode
When primary global v6 unicast address is configured on an unnumbered interface, BGP does not re-advertise updates out with the new global v6 address as the nexthop Signed-off-by: Pdoijode <pdoijode@nvidia.com>
2022-09-29tests: Check if BGP works correctly when using local-as == remote-asDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
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