]>
git.puffer.fish Git - mirror/frr.git/log
Rafael Zalamena [Thu, 22 Jun 2017 20:01:58 +0000 (17:01 -0300)]
example: add missing __init__.py
Adding the __init__.py file makes python and its linter recognize that
the test makes part of the package, this makes us save a few lines of
code to make the linter and auto complete engines happy.
Rafael Zalamena [Thu, 22 Jun 2017 18:55:42 +0000 (15:55 -0300)]
topogen: implement memory leak test call
This is a shortcut for the memory leak test, it should be used in the
new tests in order to avoid boilerplate code.
Rafael Zalamena [Wed, 21 Jun 2017 21:01:19 +0000 (18:01 -0300)]
topogen: add support for setting link state
This commit changes how topology links are made in order to support
discovering who and what link is the node interface connected to. After
that, the implementation of the link state change functions were trivial
as calling a command in the node shell.
The method run() was moved from TopoRouter to TopoGear so all equipment
types can benefit from this code.
Rafael Zalamena [Wed, 21 Jun 2017 17:12:57 +0000 (14:12 -0300)]
Topogen: document new options
We can now add routers to the topology using different daemon binaries
path. This will allow us to run tests with different daemon versions and
types.
Rafael Zalamena [Wed, 21 Jun 2017 15:54:40 +0000 (12:54 -0300)]
topotest: parameterize daemon's path
This diff is a code cleanup that will allow us more flexibility when
defining and using the daemon binaries path, it also fixes a few pylint
warnings.
Rafael Zalamena [Thu, 15 Jun 2017 03:25:54 +0000 (00:25 -0300)]
topogen: first code import
Topogen (Topology Generator) is a helper that wraps around Topotest to
simplify some of the boilerplate code. This abstraction will help the
development of new tests and new APIs without breaking the existing
ones. It also makes the relation of objects clearer, since we no longer
touch the Mininet API directly, which in turn also makes us less
vulnerable to external API changes.
Rafael Zalamena [Wed, 14 Jun 2017 13:30:10 +0000 (10:30 -0300)]
lib: assert sysctl values
Implemented two functions to help setting sysctl values:
* set_sysctl: set a sysctl and return an auditable return value
* assert_sysctl: uses the previous function to assert that the sysctl
was set
Renato Westphal [Thu, 15 Jun 2017 13:47:15 +0000 (10:47 -0300)]
ldp-topo1: sync with PR#710 in FRR
Now zebra is adding the ldpd implicit-null labels to the RIB as well. We
don't want to hide them in the "show ip route" commands because knowing
that a route is associated with an implicit-null label is an useful
piece of information, specially when troubleshooting L2/L3 VPNs.
Note: preserve the original output for cli version 1 (stable/2.0).
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Renato Westphal [Thu, 15 Jun 2017 13:41:20 +0000 (10:41 -0300)]
ldp-topo1: add some debug commands to facilitate troubleshooting
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Martin Winter [Wed, 31 May 2017 03:24:20 +0000 (20:24 -0700)]
lib: Fix stopRouter not to fail for case if daemon was never started
Fixes the issue for topotest to fail ot end of skipped LDP test on
a system without MPLS support
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Wed, 31 May 2017 03:01:55 +0000 (20:01 -0700)]
ospf6_topo1: Remove ff00:/8 routes from Linux Table compare
Some Ubuntu VM setups show ff00:/8 kernel routes, not a FRR issue
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Wed, 31 May 2017 02:39:21 +0000 (19:39 -0700)]
lib: cleanup diff text output formatting issue and move to library
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Sat, 20 May 2017 09:24:11 +0000 (02:24 -0700)]
lib: Move AddressSanitizer check to separate procedure and add check for errors in vtysh itself as part of checkRouterRunning
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Sat, 20 May 2017 07:15:52 +0000 (00:15 -0700)]
lib: Send Output error from AddressSanitizer to StdErr
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Sat, 20 May 2017 04:07:25 +0000 (21:07 -0700)]
rip-topo1: Add check to make sure daemons are still running between essential tests
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Sat, 20 May 2017 03:41:20 +0000 (20:41 -0700)]
(all tests): Add extra check to make sure daemons are still running after each essential stage.
If daemon crashed at a later stage (not startup), then the test scripts didn't properly detect it and report unpredictable errors. This will properly log the daemon crashes
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Sat, 20 May 2017 03:30:40 +0000 (20:30 -0700)]
lib: Add different failure comment on processes killed by AddressSanitizer
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Fri, 19 May 2017 09:16:42 +0000 (02:16 -0700)]
lib: Move updated topotest.py lib with AddressSanitizer to correct directory (fix mistake from 2 commits ago)
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Fri, 19 May 2017 03:24:54 +0000 (20:24 -0700)]
Doc: Update manual sample build instruction with symlink for vtysh and reference to user creation
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Fri, 19 May 2017 01:51:07 +0000 (18:51 -0700)]
Add support for collecting AddressSanitizer output. See README.md for details
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Wed, 10 May 2017 16:41:53 +0000 (09:41 -0700)]
ldp-topo1: Adjust to accept new format in "show ip route" as introduced with PR 495 (extra comma)
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Thu, 27 Apr 2017 02:54:25 +0000 (19:54 -0700)]
Fix memory leak detection and reporting which accidentally was dropped a month ago
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Wed, 26 Apr 2017 20:35:48 +0000 (13:35 -0700)]
lib: Fix another typo on kernel compare
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Wed, 26 Apr 2017 20:22:34 +0000 (13:22 -0700)]
lib: Fix version check in previous kernel compare
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Donald Sharp [Wed, 26 Apr 2017 18:44:56 +0000 (14:44 -0400)]
Actually fix version comparison
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald Sharp [Wed, 26 Apr 2017 16:18:58 +0000 (12:18 -0400)]
Spell Verifying correctly
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald Sharp [Wed, 26 Apr 2017 16:15:39 +0000 (12:15 -0400)]
Fix tests to handle new output
The show commands for bgp now have a bit more
data associated with labeled unicast routes.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald Sharp [Wed, 26 Apr 2017 12:51:50 +0000 (08:51 -0400)]
lib: Fix kernel version parsing
When we have a kernel sub version > 10 the float conversion
of the kernel version causes 4.10 to be less than 4.5
Get the kernel version in groups on <major>.<minor> and do
comparison that way
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Martin Winter [Wed, 26 Apr 2017 12:30:50 +0000 (05:30 -0700)]
ospf6-topo1: Update to ignore the proto type in linux kernel table
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Mon, 24 Apr 2017 23:12:55 +0000 (16:12 -0700)]
all-protocol-startup: Fix bad assert in case of failed vtysh output test
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Tue, 11 Apr 2017 04:58:54 +0000 (21:58 -0700)]
all-protocol-startup: Fix pref commit - bamboo prefix is lower case
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Tue, 11 Apr 2017 04:07:02 +0000 (21:07 -0700)]
all-protocol-startup: Add option to skip currently broken checks and relax BGP check
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Sat, 8 Apr 2017 21:52:41 +0000 (14:52 -0700)]
ripng-topo1: Fix duplicate IP (Thanks Renato!) and documentation typos
Martin Winter [Sat, 8 Apr 2017 10:49:43 +0000 (03:49 -0700)]
all-protocol-startup: Add test suite which runs all protocols at once and verifies startup and spurious errors of each
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Sat, 8 Apr 2017 10:40:51 +0000 (03:40 -0700)]
lib: Add function to check for daemon available (i.e. LDPd) and function to return typ (quagga or frr)
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Sat, 8 Apr 2017 10:39:47 +0000 (03:39 -0700)]
Update FreeRangeRouting -> FRRouting name
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Sat, 8 Apr 2017 00:22:03 +0000 (17:22 -0700)]
rip_topo1: Adding new test for RIPv2 Topology
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Fri, 7 Apr 2017 23:40:47 +0000 (16:40 -0700)]
ripng_topo1: Adding new test for RIPng Topology
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Fri, 7 Apr 2017 00:38:48 +0000 (17:38 -0700)]
topotest library: Fix creation of /etc/XXX/vtysh.conf
- Needs to be created in local filesystem of each router
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Thu, 6 Apr 2017 07:34:43 +0000 (00:34 -0700)]
bgp_multiview_topo1: Fix case of tests hanging if convergence is not successful.
- Part of a command was missing which caused a hang in cases when BGP didn't converge
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Fri, 24 Mar 2017 05:31:50 +0000 (22:31 -0700)]
LDP-Topo1: Update test to accept new format of LDP output
* Added test to check for version
* Adopted all tests to verify against the correct version of output
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Thu, 2 Mar 2017 07:36:30 +0000 (14:36 +0700)]
Fix README incorrect reference to Quagga
Martin Winter [Thu, 16 Feb 2017 16:54:40 +0000 (23:54 +0700)]
ldp-topo1: Fix ordering of reference output to check against
Ordering of output is now done by LDP and should be consistent
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Thu, 16 Feb 2017 16:53:48 +0000 (23:53 +0700)]
ldp-topo1: Delete accidentally include tar file
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Donald Sharp [Thu, 9 Feb 2017 00:12:43 +0000 (19:12 -0500)]
Update Readme to have correct ordering for frr user
We cannot usermod the frr user until after we
create the user with adduser.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Martin Winter [Wed, 1 Feb 2017 16:07:53 +0000 (08:07 -0800)]
Update Readme to reflect FreeRangeRouting name
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Wed, 1 Feb 2017 16:01:32 +0000 (08:01 -0800)]
bgp_multiview_topo1: Mask out BGP Table version in comparison
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Wed, 1 Feb 2017 15:50:13 +0000 (07:50 -0800)]
Added optional output for memleaks at the end of test. Enable them by setting the environment variable TOPOTESTS_CHECK_STDERR to some value
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Mon, 30 Jan 2017 21:50:48 +0000 (13:50 -0800)]
Move common function and class to topotest library
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Mon, 16 Jan 2017 17:36:13 +0000 (09:36 -0800)]
ldp-topo1: Add new LDP Topology Test
Martin Winter [Mon, 16 Jan 2017 17:34:03 +0000 (09:34 -0800)]
bgp_multiview_topo1: Fix bad check for running daemons
Only one ruter running in the setup
Martin Winter [Sat, 14 Jan 2017 17:45:57 +0000 (00:45 +0700)]
Add support for FRR in addition to Quagga
Martin Winter [Tue, 20 Dec 2016 08:19:52 +0000 (15:19 +0700)]
change in checkRunning: Check all daemons on all nodes before aborting with an assert
Martin Winter [Thu, 1 Dec 2016 10:23:38 +0000 (02:23 -0800)]
ospf6-topo1: Add Markdown doc with testdescription
Martin Winter [Thu, 1 Dec 2016 03:58:30 +0000 (19:58 -0800)]
bgp_multiview_topo1: Rename test_description.md to README.md for automatic rendering in online git
Martin Winter [Thu, 1 Dec 2016 03:51:16 +0000 (19:51 -0800)]
bgp_multiview_topo1: Add Markdown doc for test
Martin Winter [Thu, 1 Dec 2016 03:50:29 +0000 (19:50 -0800)]
README: Add example configure statement for building test quagga code
Martin Winter [Sun, 27 Nov 2016 01:36:07 +0000 (17:36 -0800)]
bgp_multiview_topo1: Change from unified to context diff for better readability
Martin Winter [Sun, 27 Nov 2016 01:30:22 +0000 (17:30 -0800)]
ospf6-topo1: Add check for Linux Kernel Routing Table as well and change to better human readable context diff
Martin Winter [Sat, 26 Nov 2016 22:50:57 +0000 (14:50 -0800)]
ospf6-topo1: Enable coredumps for Quagga Daemons and add logic to skip remaining test in case of fatal error
Martin Winter [Sat, 26 Nov 2016 22:49:56 +0000 (14:49 -0800)]
bgp_multiview_topo1: Added Network Diagram as comment
Martin Winter [Sat, 26 Nov 2016 10:57:03 +0000 (02:57 -0800)]
bgp_multiview_topo1: Fix limit to create coredumps on quagga crashes
Martin Winter [Sat, 26 Nov 2016 10:56:28 +0000 (02:56 -0800)]
bgp_multiview_topo1: Rename received bgp route log with .log for easy clean between runs
Martin Winter [Sat, 26 Nov 2016 04:19:10 +0000 (20:19 -0800)]
example-test: Add simple example pytest for documentation (and exclude it from running in pytest.ini)
Martin Winter [Sat, 26 Nov 2016 04:11:02 +0000 (20:11 -0800)]
Update Documentation
Martin Winter [Sat, 26 Nov 2016 03:56:37 +0000 (19:56 -0800)]
bgp_multiview_topo1: Skip remaining on fatal error and try to get more crash info of daemon is not running
Martin Winter [Thu, 24 Nov 2016 11:58:47 +0000 (03:58 -0800)]
bgp_multiview_topo1: Add "bgp multiview" simple topology to test. Initial commit
Martin Winter [Thu, 24 Nov 2016 11:56:05 +0000 (03:56 -0800)]
ospf6-topo1: Code cleanup
Martin Winter [Mon, 21 Nov 2016 08:42:06 +0000 (00:42 -0800)]
ospf6-topo1: Less chatty timeout messages during convergence
Martin Winter [Mon, 21 Nov 2016 08:32:40 +0000 (00:32 -0800)]
ospf6-topo1: Cleanup log messages
Martin Winter [Sun, 20 Nov 2016 07:59:42 +0000 (23:59 -0800)]
Add .gitignore
Martin Winter [Sun, 20 Nov 2016 03:10:05 +0000 (19:10 -0800)]
test_ospf6_topo1: Restructure to run under pytest
Martin Winter [Sun, 20 Nov 2016 03:08:49 +0000 (19:08 -0800)]
Renamed Test Directory: ospf6-test1 -> ospf6_topo1
Martin Winter [Sun, 20 Nov 2016 03:06:01 +0000 (19:06 -0800)]
ospf6-test1: Renamed testscript to have test_ prefix for pytest discovery
Martin Winter [Sat, 19 Nov 2016 07:42:49 +0000 (23:42 -0800)]
ospf6-test1: Look for test config in directories relative to main script location
Martin Winter [Fri, 18 Nov 2016 00:10:38 +0000 (16:10 -0800)]
Cleanup README and a reference to License
Martin Winter [Thu, 17 Nov 2016 11:16:21 +0000 (03:16 -0800)]
Initial commit with first OSPFv6 Topology Test
Donald Sharp [Wed, 28 Nov 2018 01:20:59 +0000 (20:20 -0500)]
tests: Exclude topotests from consideration
When running make check, exclude the topotests directory from considertion.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Russ White [Mon, 26 Nov 2018 13:09:12 +0000 (08:09 -0500)]
Merge pull request #3351 from chiragshah6/ospfv3_dev
ospf6d: abr summary advertise best route
Russ White [Mon, 26 Nov 2018 13:07:28 +0000 (08:07 -0500)]
Merge pull request #3356 from opensourcerouting/router-id-loopbacks
zebra: improve identification of loopback interfaces in the router-id code
Russ White [Mon, 26 Nov 2018 13:04:03 +0000 (08:04 -0500)]
Merge pull request #3361 from opensourcerouting/yang-embed-models
yang: embed models into binaries
Russ White [Mon, 26 Nov 2018 13:01:09 +0000 (08:01 -0500)]
Merge pull request #3362 from pacovn/Coverity_1475469_null_check
bgpd: null check (Coverity
1475469 )
Russ White [Mon, 26 Nov 2018 13:00:25 +0000 (08:00 -0500)]
Merge pull request #3364 from opensourcerouting/bugfix/isis-ipv6-only
IS-IS: Bugfix ipv6 only
Russ White [Mon, 26 Nov 2018 12:56:31 +0000 (07:56 -0500)]
Merge pull request #3374 from opensourcerouting/bugfix/vty-shadow
lib/vty: Fix warning about shadowed variable
Russ White [Mon, 26 Nov 2018 12:55:49 +0000 (07:55 -0500)]
Merge pull request #3371 from donaldsharp/vtysh_ospf_instance
vtysh: Don't attempt to reconnect the non-instanced ospf process
Russ White [Mon, 26 Nov 2018 03:39:47 +0000 (22:39 -0500)]
Merge pull request #3325 from adeg/bugfix/bgpd-vtysh-fixes
bgp_vty: Fix vpn_leak_postchange_all() every time "router bgp ASNUM" context is entered
Russ White [Mon, 26 Nov 2018 03:17:33 +0000 (22:17 -0500)]
Merge pull request #3176 from chiragshah6/evpn_dev
zebra: duplicate address detection and dampening
Christian Franke [Fri, 23 Nov 2018 16:52:46 +0000 (17:52 +0100)]
lib/vty: Fix warning about shadowed variable
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Donald Sharp [Wed, 21 Nov 2018 21:13:25 +0000 (16:13 -0500)]
vtysh: Don't attempt to reconnect the non-instanced ospf process
When running ospf instances we should not attempt to reconnect
the default ospf instance on running a command.
This commit should be targeted enough because in the case
of normal operation we connect to everything we should
and only set the VTYSH_WAS_ACTIVE flag for those we
truly have lost connection too.
Before:
donna.cumulusnetworks.com# config t
donna.cumulusnetworks.com(config)# router ospf 100
Warning: connecting to ospfd...failed!
donna.cumulusnetworks.com(config-router)#
After:
donna.cumulusnetworks.com# conf t
donna.cumulusnetworks.com(config)# router ospf 100
donna.cumulusnetworks.com(config-router)# end
donna.cumulusnetworks.com#
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Russ White [Wed, 21 Nov 2018 18:51:02 +0000 (13:51 -0500)]
Merge pull request #3367 from karamalla0406/frr3333
bgpd: BGP daemon crashed when a L2VNI is unconfigured
Renato Westphal [Wed, 21 Nov 2018 16:19:09 +0000 (14:19 -0200)]
Merge pull request #3363 from pacovn/static_analysis__ISO_C_return_compliance
bgpd isisd lib: fix return on void functions
Renato Westphal [Wed, 21 Nov 2018 16:14:45 +0000 (14:14 -0200)]
Merge pull request #3368 from pacovn/static_analysis__ISO_C_empty_initializer
isisd lib ospfd pbrd python: fix empty init
F. Aragon [Wed, 21 Nov 2018 11:58:48 +0000 (12:58 +0100)]
isisd lib ospfd pbrd python: fix empty init
ISO C forbids empty initializer braces. Empty initializers have been
replaced with {0}
Signed-off-by: F. Aragon <paco@voltanet.io>
Kishore Aramalla [Wed, 21 Nov 2018 00:15:56 +0000 (16:15 -0800)]
bgpd: BGP daemon crashed when a L2VNI is unconfigured
When a VNI is unconfigured it deletes all of its import and export
route-targets. There is a export route-target link list and import
route-target linked list. There are redudant loops in the
route-target deletion code. In the first iteration it deleted the
route-target and freed the RT node, but not list node.
In the 2nd iteration it tries to free the RT node again, resulting in
the double free of RT node.
Signed-off-by: "Kishore Aramalla karamallavmware.com"
Russ White [Tue, 20 Nov 2018 20:07:19 +0000 (15:07 -0500)]
Merge pull request #3339 from opensourcerouting/bugfix/isis-flooding-issues
isis: Fix flooding issues
Christian Franke [Tue, 20 Nov 2018 18:45:31 +0000 (19:45 +0100)]
isisd: Fix bug in tlvs_protocols_supported_to_adj
We should set nlpids[0] if we only set on protocol,
not nlpids[1].
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Tue, 20 Nov 2018 18:18:42 +0000 (19:18 +0100)]
isisd: Consider non-mt links usable when either v4 or v6 works
When we run in non-mt mode, we should consider links which have either
working IPv4 or IPv6 active and look at the neighbors nlpids to judge
wether a link is usable.
Fixes: #3336
Mark Stapp [Tue, 20 Nov 2018 16:43:10 +0000 (11:43 -0500)]
Merge pull request #3359 from qlyoung/true-atomics
Restrict atomics to 32-bits only
F. Aragon [Tue, 20 Nov 2018 15:30:20 +0000 (16:30 +0100)]
bgpd isisd lib: fix return on void functions
ISO C forbids ‘return’ with expression, in function returning void.
Signed-off-by: F. Aragon <paco@voltanet.io>
Renato Westphal [Tue, 20 Nov 2018 14:26:52 +0000 (12:26 -0200)]
Merge pull request #2929 from kssoman/rtr_fix
bgpd, zebra: Creating Loopback Interface Flaps BGPd, it should update