summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2020-03-05*: Replace __PRETTY_FUNCTION__/__FUNCTION__ to __func__Donatas Abraitis
Just keep the code cool. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2020-03-02Merge pull request #5855 from ↵Sri Mohana Singamsetty
ton31337/fix/allow_using_add_sub_for_local-preference bgpd: Allow using add/subtract for local-preference in route-maps
2020-02-28tests: Add a test case for `set local-preference +/-LOCAL_PREF`Donatas Abraitis
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2020-02-26tests: Modified scripts to optimize execution time for route-map test suiteKuldeep Kashyap
1. Modified scripts to optimize execution time for route-map test suite 2. Removed unnecessary print statements from /lib/bgp.py Signed-off-by: Kuldeep Kashyap <kashyapk@vmware.com>
2020-02-19tests: Reduce rip[ng]-topo1 run timeDonald Sharp
Reduce rip topo1 run time from ~100 seconds down to ~45 seconds. 1) Reduce very very long sleeps 2) Modify rip timers to be more aggressive in sending data. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-02-19tests: bgp_multiview_topo1 was taking too longDonald Sharp
The bgp_multiview_topo1 test had two issues a) An abbundance of sleeps that are not necessary b) The convergence time was too short. The upshoot of this is that the test goes from 72 -> 33 seconds run time on my machine. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-02-19Merge pull request #5802 from ton31337/feature/aggregate-address_origin_overrideDonald Sharp
bgpd: Allow overriding ORIGIN for aggregate-address
2020-02-18Merge pull request #5651 from AnuradhaKaruppiah/evpn-pim-fixesPhilippe Guibert
EVPN-PIM: complete anycast (MLAG) VTEP support
2020-02-16bgpd: Add a couple more spaces for output on MsgRcvd and MsgSentDonald Sharp
annie# show bgp ipv4 uni summ BGP router identifier 192.168.201.136, local AS number 64539 vrf-id 0 BGP table version 22458946 RIB entries 1458006, using 178 MiB of memory Peers 4, using 68 KiB of memory Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 45.33.5.119 4 0 0 0 0 0 0 never Active 65.19.134.122 4 15096 4611832 108292 0 0 0 6d22h55m 800670 107.13.46.23 4 0 0 0 0 0 0 never Connect robot(192.168.201.139) 4 64540 11159975 11365599 0 0 0 05w2d05h Connect Total number of neighbors 4 On very busy systems The column output for MsgRcvd and MsgSent can quickly move past 7 columns. Add a couple more to allow for even display. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-02-14tests: Add a evpn-pim test caseAnuradha Karuppiah
This is a basic setup and test of evpn-pim. Create a vxlan device ensure that pim notices this and setups the appropriate groups and sends them to the RP. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-02-13tests: Add test case for `aggregate-address <prefix> origin <origin>`Donatas Abraitis
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2020-02-11Merge pull request #5744 from ton31337/fix/thread-as-withdraw_attributesRuss White
bgpd: Update some attributes how they are handled if malformed
2020-02-10Merge pull request #5776 from volta-networks/fix_ldp_topol_testRenato Westphal
ldpd: Fix LDP topotest to validate MPLS LDP CLI output
2020-02-10tests: Fix LDP topotest to validate MPLS LDP CLI outputKaren Schoener
Fixing existing ldp-topol test to validate MPLS LDP CLI output. Signed-off-by: Karen Schoener <karen@voltanet.io>
2020-02-08topotest: bgp_l3vpn_to_bgp_vrf - report unexpected BGP notificationsLou Berger
Signed-off-by: Lou Berger <lberger@labn.net>
2020-02-06Merge pull request #5722 from donaldsharp/kernel_routesRuss White
Kernel routes
2020-02-06Merge pull request #5761 from qlyoung/fix-bgp-gr-cruftDonatas Abraitis
Fix bgp gr style
2020-02-05bgpd: Update some attributes how they are handled if malformedDonatas Abraitis
According to https://tools.ietf.org/html/rfc7606 some of the attributes MUST be handled as "treat-as-withdraw" approach. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2020-02-04bgpd, lib: fix style from BGP GR codeQuentin Young
This patch fixes the noncompliant style for the following commit range: 4a6e80fbf 2ba1fe695 efcb2ebbb 8c48b3b69 dc95985fe 0f0444fbd 85ef4179a eb451ee58 2d3dd828d 9e3b51a7f d6e3c15b6 34aa74486 6102cb7fe d7b3cda6f 2bb5d39b1 5f9c1aa29 5cce3f054 3a75afa4b f009ff269 cfd47646b 2986cac29 055679e91 034e185dc 794b37d52 b0965c44e 949b0f24f 63696f1d8 Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2020-02-03*: don't null after XFREE; XFREE does this itselfQuentin Young
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2020-01-28Merge pull request #5210 from bisdhdh/masterRuss White
bgpd:BGP Graceful Restart Per Neighbor(BGPN) Feature.
2020-01-23tests: Test some basic kernel <-> zebra interactionsDonald Sharp
Install some kernel routes with different admin distances ensuring that they are installed correctly and characterized properly in the rib. Then add a static route to override the kernel and then remove it again to ensure that we account for it properly still. Signed-off-by: Donald Sharp <sharpd@cumulusnetorks.com>
2020-01-23bgpd: Adding Selection Deferral Timer handler changes.bisdhdh
* Selection Deferral Timer for Graceful Restart. * Added selection deferral timer handling function. * Route marking as selection defer when update message is received. * Staggered processing of routes which are pending best selection. * Fix for multi-path test case. Signed-off-by: Biswajit Sadhu <sadhub@vmware.com>
2020-01-22tests: Test ospf unnumbered behavior and ensure that it worksDonald Sharp
Recent commit: 0eb97b860dc94329cf9add9f8f3d3a2c7f539568 Broke onlink behavior and as a result ospf unnumbered failed to work. This commit adds a small test to create 2 ospf routers, connect them through ospf unlinked behavior and then ensure that the routes are installed into the kernel as expected. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-01-21topotest: log results summary at end of lutil runLou Berger
Signed-off-by: Lou Berger <lberger@labn.net>
2020-01-21topotest: bgp_l3vpn_to_bgp_vrf - catch case of sharpd not being compiledLou Berger
Signed-off-by: Lou Berger <lberger@labn.net>
2020-01-18Merge pull request #5707 from donaldsharp/nexthop_encodingDonatas Abraitis
Nexthop encoding
2020-01-18tests: Add another router to the basic pim testsDonald Sharp
Add an additional router to the basic pim tests. 1) This test will add a link between r1 and a new rp 2) This test will ensure that r1 and rp have the expected who is the rp. 3) This test will ensure that the rp has received the upstream data for the multicast stream that is started. Ostensibly commit 68a02e06e5f103048d947262c08c569056f74d1c is the first bad commit commit 68a02e06e5f103048d947262c08c569056f74d1c Author: Mark Stapp <mjs@voltanet.io> Date: Wed Nov 13 16:06:06 2019 -0500 *: revise zapi nexthop encoding Use a per-nexthop flag to indicate the presence of labels; add some utility zapi encode/decode apis for nexthops; use the zapi apis more consistently. Signed-off-by: Mark Stapp <mjs@voltanet.io> Sparked this commit in that it broke nexthop reporting to upper level protocols. Ensure that this expectation stays working in the future. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-01-17tests: Add test for `neighbor <X.X.X.X> maximum-prefix-out <Y>`Donatas Abraitis
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2020-01-15tests: add basic nexthop group functionality testStephen Worley
Add a very basic nexthop group functionality test. This test creates a 2-way ecmp group and installs a route with it using sharpd. Then we check to see that the nexthop groups are marked valid/installed in zebra. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
2020-01-10tests: ospf6-topo1 did not work properly with nhg's and 5.3 kernelsDonald Sharp
Fix the ospf6-topo1 test to understand nhg's and what happens when they are installed into a kernel that can support them. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-01-09Merge pull request #5410 from ↵Donald Sharp
ton31337/feature/bgp_default-route_with_route-map_set bgpd: An ability to set attributes for default-originate via route-map
2020-01-07tests: Add a test for 'neighbor <neighbor> default-originate route-map <rm>'Donatas Abraitis
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2020-01-03bgpd: fix missing bounds checks for psid attrQuentin Young
Guess what - for a bounds check to work, it has to happen *before* you read the data. We were trusting the attribute field received in a prefix SID attribute and then checking if it was correct afterwards, but if was wrong we'd crash before that. This fixes the problem, and adds additional paranoid bounds checks. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2019-12-19tests: Test if eBGP policy is not applied to iBGP peersDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2019-12-18tests: fix endian bug in test_typelistMark Stapp
Fix a byte-swapping bug that appeared on big-endian arch but wasn't visible on little-endian runs. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2019-12-16Merge pull request #5502 from ton31337/fix/rr_do_not_show_fqdnSri Mohana Singamsetty
bgpd: Show `ip` and `fqdn` in json output for `show [ip] bgp json`
2019-12-12tests: Test if `ip` and `fqdn` are included in `show [ip] bgp json`Donatas Abraitis
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2019-12-06Merge pull request #4765 from opensourcerouting/defaults-v2Donald Sharp
lib/*: new config defaults system, v2
2019-12-06topojson: use empty vtysh.conf for frr-reload.pyDavid Lamparter
Signed-off-by: David Lamparter <equinox@diac24.net>
2019-12-06bgpd: use new defaults system (v2)David Lamparter
This moves all the DFLT_BGP_* stuff over to the new defaults mechanism. bgp_timers_nondefault() added to get better file-scoping. v2: moved everything into bgp_vty.c so that the core BGP code is independent of the CLI-specific defaults. This should make the future northbound conversion easier. Signed-off-by: David Lamparter <equinox@diac24.net>
2019-12-06lib: add frr_version_cmp()David Lamparter
This just compares 2 version strings. Signed-off-by: David Lamparter <equinox@diac24.net>
2019-12-06lib: rename memory_vty.c to lib_vty.cDavid Lamparter
And memory_init() to lib_cmd_init(). Signed-off-by: David Lamparter <equinox@diac24.net>
2019-12-06topotests: Adapt to linux kernel 5+Mark Stapp
Make a few changes to try to support topotests with vrfs on kernel 5 and later. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2019-12-03Merge pull request #5305 from ↵Donald Sharp
ton31337/feature/draft-ietf-idr-deprecate-as-set-confed-set bgpd: Reject incoming and outgoing UPDATES for AS_SET and AS_CONFED_SET
2019-11-30*: make frr_yang_module_info constDavid Lamparter
Signed-off-by: David Lamparter <equinox@diac24.net>
2019-11-19Merge pull request #5257 from ton31337/fix/update_rib_on_bgp_distance_changesSri Mohana Singamsetty
bgpd: Reflect the distance in RIB when it is changed for an arbitrary afi/safi
2019-11-14tests: Add a test case for `bgp reject-as-sets`Donatas Abraitis
Test if AS_SET was stripped and announced without AS_SET to the peers. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2019-11-14tests: Test if `distance bgp (1-255) (1-255) (1-255)` worksDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2019-11-13tests: Add a test case for `sender-as-path-loop-detection`Donatas Abraitis
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>