summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2022-04-27tests: Correctly align variable type in testsDonald Sharp
New compilers are noticing that the tests are compiling with a pointer for the bgpd_privs variable while the bgp library that is being linked against is not a pointer. Since these tests had the declaration just to make the compiler happy, let's actually align the variable type to make the compiler even happier. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-25bgpd: Add `set as-path replace <any|ASN>` cmd for route-mapsDonatas Abraitis
``` route-map tstas permit 10 set as-path replace 1 exit ``` Before: ``` donatas-laptop(config-router-af)# do show ip bgp 10.10.10.10/32 BGP routing table entry for 10.10.10.10/32, version 13 Paths: (1 available, best #1, table default) Advertised to non peer-group peers: 192.168.10.65 65000 1 2 3 123 192.168.10.65 from 192.168.10.65 (10.10.10.11) Origin IGP, metric 0, valid, external, best (First path received) Last update: Mon Apr 25 10:39:50 2022 ``` After: ``` donatas-laptop(config-router-af)# do show ip bgp 10.10.10.10/32 BGP routing table entry for 10.10.10.10/32, version 15 Paths: (1 available, best #1, table default) Advertised to non peer-group peers: 192.168.10.65 65000 65010 2 3 123 192.168.10.65 from 192.168.10.65 (10.10.10.11) Origin IGP, metric 0, valid, external, best (First path received) Last update: Mon Apr 25 10:40:16 2022 ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-04-20Merge pull request #7811 from kuldeepkash/multicast_pim_dr_nondrJafar Al-Gharaibeh
tests: Add multicast_pim_dr_nondr_test suite
2022-04-19tests: Fix spelling of conjuctionDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-19*: Fix spelling of overridenDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-19*: Fix spelling of VerfiyDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-19tests: Fix spelling of InitilizedDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-19*: Fix spelling of intefaceDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-19*: Fix spelling of comparisionDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-19*: Fix spelling of modfiyDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-19tests: Fix spelling of 'registred'Donald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-18Merge pull request #11001 from donaldsharp/system_route_recursionRuss White
zebra: Allow system routes to recurse through themselves
2022-04-12tests: Add multicast_pim_dr_nondr_test suitekuldeepkash
1. Added test cases to test/verify multicast_pim_dr_nondr scenarios Signed-off-by: kuldeepkash <kashyapk@vmware.com>
2022-04-10tests: Do not turn off multicast streamDonald Sharp
The test is testing whether interface flaps are causing the appropriate pim reactions. Unfortunately the test is turning off the multicast stream and the test also has a keep alive timer of 15 seconds set on all routers. Which of course means the test has 15 seconds(at most) to finish testing. This is not always possible given system loads. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-10tests: Fix test_multicast_pim_sm_topo3.py from generating a support bundleDonald Sharp
The test_multicast_pim_sm_topo3.py test is both spending extra time looking for state that will never occurr but also generating a support bundle when it doesn't find it. Fix the test to come to the correct solution faster. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-09tests: Add a test case for a kernel route depending on a kernel routeDonald Sharp
Add a test case where a kernel route depends on a kernel route and when you perturb an interface, ensure that FRR does not loose the route. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-08tests: Add a test to ensure that FRR does not loose kernel routesDonald Sharp
Add a test case to ensure that Kernel routes are not lost when there are multiple overlapping connected routes. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-04Merge pull request #10946 from donaldsharp/pim_fhr_lhr_same_pimregJafar Al-Gharaibeh
pimd: Send immediate join( with possible SG RPT prune bit set
2022-04-02Merge pull request #10954 from donaldsharp/speellJafar Al-Gharaibeh
Speell
2022-04-02tests: Fix spelling of disbaleDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-02*: Fix spelling of GracefullDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-02tests: Fix spelling of neigborsDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-02Merge pull request #10925 from qlyoung/fix-grpc-wants-installed-frrChristian Hopps
tests: skip grpc test if frr not installed
2022-04-01tests: Fix spelling of daemonsDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-01tests: Fix spelling of kernelDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-01tests: Fix perticular spellingDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-01Merge pull request #10950 from donaldsharp/uninit_testDonatas Abraitis
tests: Fix uninitialized usage of variables in tests
2022-04-01tests: Fix uninitialized usage of variables in testsDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-01tests: Reduce some pim test timings to more manageable levelsDonald Sharp
a) Remove the retry mechanism to continue looking for 75% of the time for pim code. This alone saves a bunch of time in tests that use lib/pim.py Effectively all the times given for retry are already long enough. Additionally some tests are gathering data with the expectation that they will not find data so the entire time is being taken up in retry's. Extending the retry mechanism makes this even worse. This is especially bad for pim in that keep alive timers are counting down and state can be removed due to excessive time waiting. b) Reduce verify verify_multicast_traffic from 40 seconds to 20 seconds to gather traffic data. A bunch of tests are doing this: a) gather pre test start traffic data( taking about 70 seconds to run, because a bunch of time it was looking for data that does not exist yet) b) run a change to introduce a different traffic flow c) gather post test traffic data ( taking about 70 seconds to run ) Why does this matter? Tests were iterating through all the different routers looking for traffic flow as well as different mroute state. This is against the keepalive timer of 210 seconds. It does not take long before the stream can be removed and the test is still looking for data that is no longer there due to state timeout. The multicast_pim_sm_topo3/test_multicast_pim_sm_topo3.py test reduced run time from 398 seconds to 297 seconds. Greatly reducing keepalive timeout problems. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-03-31bgpd: Add `%pBP` printfrr() extension to print `IP(hostname)` for BGP peerDonatas Abraitis
Replace existing bgp_peer_hostname() function. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-03-29tests: skip grpc test if frr not installedQuentin Young
it wants yang models installed which will only be there if frr has been installed before, causing `make check` to fail when run on a system on which frr has not been installed when GRPC is enabled (--enable-grpc) Signed-off-by: Quentin Young <qlyoung@nvidia.com>
2022-03-29Merge pull request #10158 from ckishimo/ospf6d_norefreshRuss White
ospf6d: stop refreshing type-5 from NSSA
2022-03-28ospf6d: fix topotestckishimo
The routes in the test_nssa_range() are E2 "routes":{ "2001:db8:1000::2/128":{ "destinationType":"Network", "installedTimeSince":"00:06:29", "changedTimeSince":"00:06:29", "numberOfLock":2, "flags":"BA--", "associatedArea":"0.0.0.2", "pathType":"External-2", "lsOriginRoutePathType":"NSSA", "lsId":"0.0.0.3", "lsAdvertisingRouter":"10.254.254.4", "options":"--|-|-|--|-|--", "routerBits":"--------", "prefixOptions":"--|P|--|--|--", "metricType":2, "metricCost":10, "metricCostE2":20, "pathsCount":1, "nextHopCount":1, "nextHops":[ { "nextHop":"::", "interfaceName":"r2-eth2" } ] } This PR fixes the key from `metricCost` to `metricCostE2` Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
2022-03-23tests: Add the show database for ospfv3 before checking for ospf routeMobashshera Rasool
Moved the database dump for ospfv3 before ospf route check. Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-03-21tests: Adding bgp_vrf_dynamic_route_leak_topo4 suiteKuldeep Kashyap
1. Added 3 test cases to veirfy bgp vrf dynamic route leak functionality Signed-off-by: Kuldeep Kashyap <kashyapk@vmware.com>
2022-03-21tests: Adding bgp_vrf_dynamic_route_leak_topo3 test suiteKuldeep Kashyap
1. Added 4 test cases to verify bgp vrf dynamic route leak functionlality Signed-off-by: Kuldeep Kashyap <kashyapk@vmware.com>
2022-03-21tests: Framework changes to support bgp vrf dynamic route leak automationKuldeep Kashyap
1. Enhance framework to support bgp vrf dynamic route leak automation Signed-off-by: Kuldeep Kashyap <kashyapk@vmware.com>
2022-03-18Merge pull request #10817 from kuldeepkash/micronet_fixesChristian Hopps
tests: Fix topotests crash when KeyError found
2022-03-17Merge pull request #10705 from kuldeepkash/cut_execution_timeMartin Winter
tests: Adding EVPN-GR scenario to evpn_type5 suite
2022-03-17tests: Fix topotests crash when KeyError foundKuldeep Kashyap
1. Handle KeyError 2. logger object is defined in main function and its not not accessible in other functions so defined it in local functions. Signed-off-by: Kuldeep Kashyap <kashyapk@vmware.com>
2022-03-16tests: Adding database information in ospfv3 testcaseMobashshera Rasool
Improving the test case to show database info as well to help narrow down whether its a LSA origination problem or route calculation problem in case of failures. Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-03-16Merge pull request #9262 from gpnaveen/ospfv3_basic_testsJafar Al-Gharaibeh
tests: adding ospfv3 base cases.
2022-03-15topotest: enable pim when detecting pim using unified configJafar Al-Gharaibeh
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
2022-03-15tests: adding ospfv3 base cases.nguggarigoud
Covers basic test case like route map, rte calc. Signed-off-by: nguggarigoud <nguggarigoud@vmware.com>
2022-03-15Merge pull request #10427 from sworleys/Protodown-Reason-UpstreamRuss White
Add Support for Setting Protodown Reason Code
2022-03-15Merge pull request #10643 from Jafaral/ospf-multi-vrfDonald Sharp
tests: add a topotest for ospf, mutli vrf, and route leaking
2022-03-15topotests: pytest mark bgpdJafar Al-Gharaibeh
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
2022-03-15tests: Adding EVPN-GR scenario to evpn_type5 suiteKuldeep Kashyap
1. Adding EVPN-GR scenario to evpn_type5 suite Signed-off-by: Kuldeep Kashyap <kashyapk@vmware.com>
2022-03-14Merge pull request #10738 from LabNConsulting/chopps/fixgrpcDonald Sharp
fixes for grpc module
2022-03-14tests: new grpc topotestChristian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>