summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2023-03-27Merge pull request #13086 from donaldsharp/suppress_fib_pendingDonatas Abraitis
bgpd: Ensure suppress-fib-pending works with network statements
2023-03-26Merge pull request #13084 from opensourcerouting/fix/bgp_vrf_md5_passwordDonald Sharp
bgpd: Set md5 TCP socket option for outgoing connections on listener
2023-03-24*: Convert event.h to frrevent.hDonald Sharp
We should probably prevent any type of namespace collision with something else. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Convert `struct event_master` to `struct event_loop`Donald Sharp
Let's find a better name for it. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Convert thread_master_XXX functions to event_master_XXXDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Convert THREAD_XXX macros to EVENT_XXX macrosDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Convert struct thread_master to struct event_master and it's ilkDonald Sharp
Convert the `struct thread_master` to `struct event_master` across the code base. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Convert thread_should_yield and thread_set_yield_timeDonald Sharp
Convert thread_should_yield and thread_set_yield_time to event_should_yield and event_set_yield_time Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Convert thread_execute to event_executeDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Convert thread_fetch and thread_call to event_fetch and event_callDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Convert thread_cancelXXX to event_cancelXXXDonald Sharp
Modify the code base so that thread_cancel becomes event_cancel Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Convert thread_add_XXX functions to event_add_XXXDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Rename `struct thread` to `struct event`Donald Sharp
Effectively a massive search and replace of `struct thread` to `struct event`. Using the term `thread` gives people the thought that this event system is a pthread when it is not Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-24*: Rename thread.[ch] to event.[ch]Donald Sharp
This is a first in a series of commits, whose goal is to rename the thread system in FRR to an event system. There is a continual problem where people are confusing `struct thread` with a true pthread. In reality, our entire thread.c is an event system. In this commit rename the thread.[ch] files to event.[ch]. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-23Merge pull request #13074 from donaldsharp/hash_clean_and_freeDonatas Abraitis
*: Add a hash_clean_and_free() function
2023-03-22bgpd: Ensure suppress-fib-pending works with network statementsDonald Sharp
The flag for telling BGP that a route is expected to be installed first before notifying a peer was always being set upon receipt of a path that could be accepted as bestpath. This is not correct: imagine that you have a peer sending you a route and you have a network statement that covers the same route. Irrelevant if the network statement would win the flag on the dest was being set in bgp_update. Thus you could get into a situation where the network statement path wins but since the flag is set on the node, it will never be announced to a peer. Let's just move the setting of the flag into bgp_zebra_announce and _withdraw. In _announce set the flag to TRUE when suppress-fib is enabled. In _withdraw just always unset the flag as that a withdrawal does not need to wait for rib removal before announcing. This will cover the case when a network statement is added after the route has been learned from a peer. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-22tests: Check if BGP peering with MD5 per-VRF works correctlyDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-03-22tests: apply frrbot style requirementsChristian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-03-22tests: Add topotests for MGMT daemonnguggarigoud
1. MGMT daemon support in topotests. 2. Sanity tests for MGMTd. Signed-off-by: nguggarigoud <nguggarigoud@vmware.com>
2023-03-21*: Add a hash_clean_and_free() functionDonald Sharp
Add a hash_clean_and_free() function as well as convert the code to use it. This function also takes a double pointer to the hash to set it NULL. Also it cleanly does nothing if the pointer is NULL( as a bunch of code tested for ). Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-03-21Merge pull request #12816 from gpnaveen/stc_rte_err_msgDonatas Abraitis
tests: Enhance error msgs for static route automation.
2023-03-20Merge pull request #12688 from dorDiogo/isis_hello_padding_sometimesRuss White
isisd: Add support for IS-IS hello padding during-adjacency-formation
2023-03-19tests: Check if prefix-lists with IPv6 any works fineDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-03-17tests: Check if route-map works correctly if modifying prefix-listsDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-03-15Merge pull request #12310 from kuldeepkash/pim_v6Donatas Abraitis
tests: [PIMv6] Adding multicast pim6 SM testsuite
2023-03-07tests: Check if IPv6 BGP Link-Local peering worksDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-03-06tests: [PIMv6] Adding multicast pim6 SM testsuiteKuldeep Kashyap
Automated new scenarios to multicast pim6 SM test suite. Added 10 test cases to verify multicast PIM6-SM functionality. Signed-off-by: Kuldeep Kashyap <kashyapk@vmware.com> Co-Auther: Vijay Kumar Gupta <vijayg@vmware.com>
2023-03-06tests: [PIMv6] F/W support for multicast pimv6 automationKuldeep Kashyap
Enhanced or added new libraries to support multicast pimv6 automation Signed-off-by: Kuldeep Kashyap <kashyapk@vmware.com> Co-Auther: Vijay Kumar Gupta <vijayg@vmware.com>
2023-03-03tests: fix --pause functionalityChristian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-03-02Merge pull request #12650 from isabelladeleon12/advertise_high_metricsRuss White
isisd: Add support for advertise-high-metrics
2023-02-28Merge pull request #12618 from pguibert6WIND/vpnv4_ecmpRuss White
Vpnv4 ecmp
2023-02-28tests: Add test to cover advertise-high-metrics functionalityIsabella de Leon
Add tests that configure and disable advertise-high-metrics with wide, narrow, and transition metric styles. Also test ip route behavior. Signed-off-by: Isabella de Leon <ideleon@microsoft.com>
2023-02-28isisd,tests,doc: Rename hello padding sometimes to hello padding ↵Diogo Oliveira
during-adjacency-formation Signed-off-by: Diogo Oliveira <14191454+dorDiogo@users.noreply.github.com>
2023-02-28tests: Add test to check hello padding sometimes behaviorDiogo Oliveira
Signed-off-by: Diogo Oliveira <14191454+dorDiogo@users.noreply.github.com>
2023-02-28Merge pull request #12840 from dorDiogo/isis_advertise_passive_onlyRuss White
isisd: Add support for IS-IS advertise-passive-only
2023-02-28tests: Enhance error msgs for static route auto.Naveen
tests: Enhance error messages for static route automation. Signed-off-by: nguggarigoud <nguggarigoud@vmware.com>
2023-02-27tests: Use inequality operator for stringsDonatas Abraitis
tests/topotests/lib/ospf.py:2819: SyntaxWarning: "is not" with a literal. Did you mean "!="? _age is not "get" -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-02-26topotests: add vpnv4 ecmp testPhilippe Guibert
This test ensures that BGP VRF instance is able to import ECMP paths, and is able to install 2 labelled routes accordingly. The test also ensures that the imported 172.31.0.10/32 prefix is selected and that the reason why the 172.31.0.10/32 prefix is selected is not 'Locally configured route'. Actually, imported routes do not figure out correctly the peer, and the reason is falsely mentioned as local. This test also uses IP ranges used for documentation and for testing. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2023-02-24Merge pull request #12888 from opensourcerouting/fix/peer_af_flag_check_integerDonald Sharp
bgpd: Flags fixes
2023-02-24Merge pull request #12841 from opensourcerouting/topofix_bgp_gr_retain_routesDonald Sharp
tests: Change bgp_gr_retained_routes to use json output of "ip route"
2023-02-24tests: Check if peer->af_flags can be higher than uint32_tDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-02-22tests: Add test for IS-IS advertise-passive-only configurationDiogo Oliveira
Signed-off-by: Diogo Oliveira <14191454+dorDiogo@users.noreply.github.com>
2023-02-22tests: Check if BGP confederation works with AS_EXTERNAL (!AS_SPECIFIED)Donatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-02-21Merge pull request #12832 from ↵Russ White
opensourcerouting/fix/deprecate_bgp_internet_community bgpd: Deprecate BGP `internet` community
2023-02-21Merge pull request #12366 from manojvn/ospfv2-flood-reductionRuss White
ospfd: Support OSPF Refresh and Flooding Reduction RFC4136.
2023-02-21Merge pull request #12248 from pguibert6WIND/bgpasdotRuss White
lib, bgp: add initial support for asdot format
2023-02-20Merge pull request #12849 from opensourcerouting/fix/tests_enumDonald Sharp
tests: Cover all enum values for unit tests
2023-02-20tests: improve the ospfapi test (move to square topology)Christian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-02-20tests: Cover all enum values for unit testsDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-02-18tests: Change bgp_gr_retained_routes to use json output of "ip route"Martin Winter
Depending on ip_route and kernel, the output might include a nhid which causes the test to fail with a strict text output check. Change to json output to avoid the issue Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>