]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
5 years agoospf: test route kernel installation
Rafael Zalamena [Mon, 3 Jul 2017 19:04:47 +0000 (16:04 -0300)]
ospf: test route kernel installation

Added tests to validate that OSPF routes are being installed/uninstalled
in the Linux kernel.

5 years agotopotest: implement 'ip route' functions
Rafael Zalamena [Mon, 3 Jul 2017 18:57:20 +0000 (15:57 -0300)]
topotest: implement 'ip route' functions

Implement an abstraction to the commands 'ip route' to get the node
current routing table state.

5 years agoospf: add IPv6 OSPF convergence test
Rafael Zalamena [Fri, 30 Jun 2017 19:23:25 +0000 (16:23 -0300)]
ospf: add IPv6 OSPF convergence test

Add more tests to the ospf-topo1 to include IPv6 testing. Since both IP
versions are running together, there is no need to wait OSPF convergence
per IP version.

5 years agoospf: add some log calls to show activity
Rafael Zalamena [Thu, 29 Jun 2017 21:00:38 +0000 (18:00 -0300)]
ospf: add some log calls to show activity

Brings the OSPF test closer to other topotest tests.

5 years agoospf: add 'show ip ospf json' test
Rafael Zalamena [Wed, 28 Jun 2017 18:30:59 +0000 (15:30 -0300)]
ospf: add 'show ip ospf json' test

Test the default values of 'show ip ospf json' output in the current
topology.

5 years agoospf: add memory leak test
Rafael Zalamena [Thu, 22 Jun 2017 19:07:13 +0000 (16:07 -0300)]
ospf: add memory leak test

Standard memory leak test/report.

5 years agoospf: added a convergence test for link failure
Rafael Zalamena [Wed, 21 Jun 2017 21:08:00 +0000 (18:08 -0300)]
ospf: added a convergence test for link failure

This new test simulates a link failure in router 3 and expects the OSPF
routing table to converge accordingly in all nodes.

5 years agoospf: added convergence test for IPv4
Rafael Zalamena [Mon, 19 Jun 2017 19:18:25 +0000 (16:18 -0300)]
ospf: added convergence test for IPv4

Added a convergence test for OSPF (IPv4) using the new topology
builder Topogen.

5 years agotopotests: make 'quagga' check optional
Rafael Zalamena [Thu, 20 Jul 2017 13:54:38 +0000 (10:54 -0300)]
topotests: make 'quagga' check optional

Only check for quagga directories and binaries when we don't find FRR.
Also fix a copy-paste error in warning message.

5 years agotopotest: simplify ldp kernel check
Rafael Zalamena [Tue, 18 Jul 2017 19:44:58 +0000 (16:44 -0300)]
topotest: simplify ldp kernel check

Use version_cmp() instead of hand rolling its own parser.

5 years agotopotest: implement environment diagnostics
Rafael Zalamena [Tue, 18 Jul 2017 19:44:27 +0000 (16:44 -0300)]
topotest: implement environment diagnostics

Run environment diagnostics on topotest start, report all detected
problems and abort if an error condition is met.

5 years agobgp_multiview_topo1: fix exabgp configuration
Rafael Zalamena [Tue, 18 Jul 2017 19:28:52 +0000 (16:28 -0300)]
bgp_multiview_topo1: fix exabgp configuration

Allow exabgp to run on my Ubuntu 16.04 by specifying the complete path
instead of relative.

5 years agoldp-topo1: Make the implicit label optional to pass old frr code as well
Martin Winter [Tue, 18 Jul 2017 04:14:28 +0000 (21:14 -0700)]
ldp-topo1: Make the implicit label optional to pass old frr code as well

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agoDoc: Update README to specify ExaBGP version as 4.0 is not yet supported
Martin Winter [Sun, 16 Jul 2017 09:51:00 +0000 (02:51 -0700)]
Doc: Update README to specify ExaBGP version as 4.0 is not yet supported

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agotopogen: add equipment version handling
Rafael Zalamena [Fri, 14 Jul 2017 17:02:12 +0000 (14:02 -0300)]
topogen: add equipment version handling

Added helper functions to TopoRouter to test equipment version and type.

5 years agotopotest: add version comparison function
Rafael Zalamena [Fri, 14 Jul 2017 17:00:52 +0000 (14:00 -0300)]
topotest: add version comparison function

Implemented a version comparison function that tells if a version
contained in a string is greater/less/equal to another.

5 years agotopotest: add text normalization function
Rafael Zalamena [Fri, 30 Jun 2017 19:09:07 +0000 (16:09 -0300)]
topotest: add text normalization function

Standardized function that removes format spaces (or tab) and carriage
returns characters. This function is useful to allow output text
processing without breaking diff capabilities.

Output example:
*N IA 2001:db8:2::/64                ::                        r2-eth0    00:03:39

Becomes:
*N IA 2001:db8:2::/64 :: r2-eth0 00:03:39

If you remove 'IA' you won't have space formatting problem anymore.

5 years agotemplate: add router check test
Rafael Zalamena [Thu, 13 Jul 2017 12:49:37 +0000 (09:49 -0300)]
template: add router check test

Show test developers that they can check if routers are running by
calling tgen.routers_have_failure().

5 years agotopogen: handle JSON decode failures
Rafael Zalamena [Thu, 13 Jul 2017 11:43:32 +0000 (08:43 -0300)]
topogen: handle JSON decode failures

Instead of raise()ing, return a empty dictionary.

5 years agotopogen: implement router check method
Rafael Zalamena [Wed, 12 Jul 2017 14:38:31 +0000 (11:38 -0300)]
topogen: implement router check method

Use a standard function to do 'router running checks' instead of having
to duplicate the code in every test.

5 years agotopogen: fix topogen memleak activation
Rafael Zalamena [Wed, 12 Jul 2017 16:03:04 +0000 (13:03 -0300)]
topogen: fix topogen memleak activation

When memleak_path is present in the configuration file it means that it is
activated.

5 years agotopotest: add JSON list comparation support
Rafael Zalamena [Wed, 5 Jul 2017 16:46:28 +0000 (13:46 -0300)]
topotest: add JSON list comparation support

Add missing list support for json_cmp(). The missing support was
noticed while writing the BGP ECMP topology test.

5 years agotopogen: add support for ExaBGP peers
Rafael Zalamena [Mon, 10 Jul 2017 15:52:04 +0000 (12:52 -0300)]
topogen: add support for ExaBGP peers

Implemented basic support for ExaBGP peers.

5 years agotopogen: add error functions
Rafael Zalamena [Tue, 11 Jul 2017 14:10:59 +0000 (11:10 -0300)]
topogen: add error functions

Store errors and error code in topogen so other tests can look up for
failures and skip tests.

5 years agotopogen: implement start/stop methods for TopoGear
Rafael Zalamena [Mon, 10 Jul 2017 20:01:23 +0000 (17:01 -0300)]
topogen: implement start/stop methods for TopoGear

Having a generic start/stop methods for TopoGear allows TopoGen to call
start/stop for all equipments. This allows us to reduce the teardown
code by removing the necessity of having to always remember to call
each equipment clean up function.

5 years agotopogen: configure daemon logging files
Rafael Zalamena [Fri, 7 Jul 2017 19:01:30 +0000 (16:01 -0300)]
topogen: configure daemon logging files

Auto configure daemon logging files to the appropriated place. This
removes the responsibility from the test developer to set this in the
daemon configuration.

5 years agotemplate: update test template
Rafael Zalamena [Fri, 7 Jul 2017 13:30:28 +0000 (10:30 -0300)]
template: update test template

Use the new logger and implement a default memory leak test/report.

5 years agotopogen: add per router logging
Rafael Zalamena [Fri, 7 Jul 2017 13:18:25 +0000 (10:18 -0300)]
topogen: add per router logging

TopoRouters now create a logger (which logs to /tmp/{router_name}.log)
on start to record all commands and events that it goes through. All log
messages contain timestamps that may be used in the future to:
(1) correlate commands call with events
(2) benchmark/time command speed

5 years agotopotest: use topolog instead of print
Rafael Zalamena [Fri, 7 Jul 2017 12:57:07 +0000 (09:57 -0300)]
topotest: use topolog instead of print

Fix some whitespace issues while at it.

5 years agotopolog: support adding loggers during runtime
Rafael Zalamena [Fri, 7 Jul 2017 12:29:41 +0000 (09:29 -0300)]
topolog: support adding loggers during runtime

Allow topotest subsystems to create their own loggers. This will help
increase log organization and allow different settings to fit the
subsystems needs.

5 years agotopolog: implement a logging abstraction
Rafael Zalamena [Thu, 29 Jun 2017 20:55:33 +0000 (17:55 -0300)]
topolog: implement a logging abstraction

The default logger (root) is already being used by Mininet, so to allow
customizing logging output and configuring log files Topolog was
created. Topolog is no more than a thin layer abstraction to call
logging functions without using the 'root' logger.

5 years agoall_protocol_startup: More tolerant on interface MTU output
Martin Winter [Fri, 7 Jul 2017 01:12:05 +0000 (18:12 -0700)]
all_protocol_startup: More tolerant on interface MTU output

- Allow 'MTU mismatch detection: enabled' and 'MTU mismatch detection:enabled'

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agotopogen: add memory leak report configuration
Rafael Zalamena [Tue, 27 Jun 2017 22:40:54 +0000 (19:40 -0300)]
topogen: add memory leak report configuration

Allow memory leak to be configured from the configuration file.

5 years agotopogen: support configuration file
Rafael Zalamena [Tue, 27 Jun 2017 21:11:02 +0000 (18:11 -0300)]
topogen: support configuration file

Use a configuration file for casual settings like:

* Verbosity level (helps when debugging mininet issues)
* Custom daemon directory (in order to support running different daemon
  binaries without touching tests)
* Daemon type switch: allow running quagga without touching any test
  files

Also fix the add_router() documentation to include all options.

5 years agotopotest: add writing tests tips
Rafael Zalamena [Thu, 29 Jun 2017 21:23:34 +0000 (18:23 -0300)]
topotest: add writing tests tips

Add two tips to help improve test code quality:
1) Store function returns for later inspection
2) Identify what failed using the assert message

5 years agotopotest: improve json_cmp assert output
Rafael Zalamena [Thu, 29 Jun 2017 15:18:46 +0000 (12:18 -0300)]
topotest: improve json_cmp assert output

Create a specialized assert and json_cmp() result to improve the
comparison output. With this we also got a way to display all comparison
failures instead of just the first one.

5 years agotopogen: don't backtrace when topogen is not used
Rafael Zalamena [Thu, 29 Jun 2017 13:49:11 +0000 (10:49 -0300)]
topogen: don't backtrace when topogen is not used

This allows old tests to be run with '--topology-only' without
generating tons of error messages, instead it will just stop the test
without trying anything else.

5 years agotemplate: allow test to be run without pytest
Rafael Zalamena [Thu, 29 Jun 2017 13:46:19 +0000 (10:46 -0300)]
template: allow test to be run without pytest

Update the PYTHONPATH for standalone runs and pass all command line
arguments to pytest main. Also set the executable bit to the python
scripts file.

5 years agotopogen: added JSON output support for vtysh_cmd
Rafael Zalamena [Wed, 28 Jun 2017 18:30:44 +0000 (15:30 -0300)]
topogen: added JSON output support for vtysh_cmd

Allow vtysh_cmd() to convert JSON output to Python data structures.
This feature will be used to get vtysh JSON outputs for tests
comparsions.

Usage example:

```py
router = get_topogen().gears['r1']
json_output = router.vtysh_cmd('show ip ospf json', isjson=True)
json_cmp(json_output, {'important_key': 'important_value'})
```

5 years agotopotest: implement json_cmp function
Rafael Zalamena [Wed, 28 Jun 2017 18:04:00 +0000 (15:04 -0300)]
topotest: implement json_cmp function

Implemented a JSON compare function that tells you when a specific
subset of items exist or not inside a JSON dataset.

More details can be found in the function docstring or in the test file
lib/test_json.py.

5 years agotemplate: change the default dot file
Rafael Zalamena [Tue, 27 Jun 2017 23:01:16 +0000 (20:01 -0300)]
template: change the default dot file

Make it look like the RIP(ng) dot files with authentic shapes and colors
for routers and switches.

5 years agotopotest: added two new sections to guidelines
Rafael Zalamena [Mon, 26 Jun 2017 18:38:21 +0000 (15:38 -0300)]
topotest: added two new sections to guidelines

And fixed some smaller details in the previous sections.

5 years agotopotest: small guidelines fixes
Rafael Zalamena [Mon, 26 Jun 2017 16:01:29 +0000 (13:01 -0300)]
topotest: small guidelines fixes

5 years agotopotest: rename guidelines equipment names
Rafael Zalamena [Mon, 26 Jun 2017 14:55:47 +0000 (11:55 -0300)]
topotest: rename guidelines equipment names

Use short names for equipment names as the rest of the code in the
repository.

5 years agotopogen: use shorter names for equipments
Rafael Zalamena [Mon, 26 Jun 2017 13:57:57 +0000 (10:57 -0300)]
topogen: use shorter names for equipments

After some feedback from mwinter@, the names of equipments are now
shorter to make it easier to type them and to keep consistency with
mininet documentation. While here, update the template and make it use
optional name parameters for clarity.

5 years agotopotest: add guidelines
Rafael Zalamena [Fri, 23 Jun 2017 15:22:40 +0000 (12:22 -0300)]
topotest: add guidelines

This is the beginning of the guidelines file. It will contain all
necessary instructions to help people write topology tests.

5 years agotopogen: implement __str__ for TopoGear objects
Rafael Zalamena [Thu, 22 Jun 2017 20:51:32 +0000 (17:51 -0300)]
topogen: implement __str__ for TopoGear objects

Print TopoGear name, links and type (currently TopoRouter and Switch
don't have any other useful attributes).

5 years agoexample: add missing __init__.py
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.

5 years agotopogen: implement memory leak test call
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.

5 years agotopogen: add support for setting link state
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.

5 years agoTopogen: document new options
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.

5 years agotopotest: parameterize daemon's path
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.

5 years agotopogen: first code import
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.

5 years agolib: assert sysctl values
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

5 years agoldp-topo1: sync with PR#710 in FRR
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>
5 years agoldp-topo1: add some debug commands to facilitate troubleshooting
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>
5 years agolib: Fix stopRouter not to fail for case if daemon was never started
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>
5 years agoospf6_topo1: Remove ff00:/8 routes from Linux Table compare
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>
5 years agolib: cleanup diff text output formatting issue and move to library
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>
5 years agolib: Move AddressSanitizer check to separate procedure and add check for errors in...
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>
5 years agolib: Send Output error from AddressSanitizer to StdErr
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>
5 years agorip-topo1: Add check to make sure daemons are still running between essential tests
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>
5 years ago(all tests): Add extra check to make sure daemons are still running after each essent...
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>
5 years agolib: Add different failure comment on processes killed by AddressSanitizer
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>
5 years agolib: Move updated topotest.py lib with AddressSanitizer to correct directory (fix...
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>
5 years agoDoc: Update manual sample build instruction with symlink for vtysh and reference...
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>
5 years agoAdd support for collecting AddressSanitizer output. See README.md for details
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>
5 years agoldp-topo1: Adjust to accept new format in "show ip route" as introduced with PR 495...
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>
5 years agoFix memory leak detection and reporting which accidentally was dropped a month ago
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>
5 years agolib: Fix another typo on kernel compare
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>
5 years agolib: Fix version check in previous kernel compare
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>
5 years agoActually fix version comparison
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>
5 years agoSpell Verifying correctly
Donald Sharp [Wed, 26 Apr 2017 16:18:58 +0000 (12:18 -0400)]
Spell Verifying correctly

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoFix tests to handle new output
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>
5 years agolib: Fix kernel version parsing
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>
5 years agoospf6-topo1: Update to ignore the proto type in linux kernel table
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>
5 years agoall-protocol-startup: Fix bad assert in case of failed vtysh output test
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>
5 years agoall-protocol-startup: Fix pref commit - bamboo prefix is lower case
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>
5 years agoall-protocol-startup: Add option to skip currently broken checks and relax BGP check
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>
5 years agoripng-topo1: Fix duplicate IP (Thanks Renato!) and documentation typos
Martin Winter [Sat, 8 Apr 2017 21:52:41 +0000 (14:52 -0700)]
ripng-topo1: Fix duplicate IP (Thanks Renato!) and documentation typos

5 years agoall-protocol-startup: Add test suite which runs all protocols at once and verifies...
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>
5 years agolib: Add function to check for daemon available (i.e. LDPd) and function to return...
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>
5 years agoUpdate FreeRangeRouting -> FRRouting name
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>
5 years agorip_topo1: Adding new test for RIPv2 Topology
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>
5 years agoripng_topo1: Adding new test for RIPng Topology
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>
5 years agotopotest library: Fix creation of /etc/XXX/vtysh.conf
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>
5 years agobgp_multiview_topo1: Fix case of tests hanging if convergence is not successful.
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>
5 years agoLDP-Topo1: Update test to accept new format of LDP output
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>
5 years agoFix README incorrect reference to Quagga
Martin Winter [Thu, 2 Mar 2017 07:36:30 +0000 (14:36 +0700)]
Fix README incorrect reference to Quagga

5 years agoldp-topo1: Fix ordering of reference output to check against
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>
5 years agoldp-topo1: Delete accidentally include tar file
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>
5 years agoUpdate Readme to have correct ordering for frr user
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>
5 years agoUpdate Readme to reflect FreeRangeRouting name
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>
5 years agobgp_multiview_topo1: Mask out BGP Table version in comparison
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>
5 years agoAdded optional output for memleaks at the end of test. Enable them by setting the...
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>
5 years agoMove common function and class to topotest library
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>
5 years agoldp-topo1: Add new LDP Topology Test
Martin Winter [Mon, 16 Jan 2017 17:36:13 +0000 (09:36 -0800)]
ldp-topo1: Add new LDP Topology Test

5 years agobgp_multiview_topo1: Fix bad check for running daemons
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

5 years agoAdd support for FRR in addition to Quagga
Martin Winter [Sat, 14 Jan 2017 17:45:57 +0000 (00:45 +0700)]
Add support for FRR in addition to Quagga

5 years agochange in checkRunning: Check all daemons on all nodes before aborting with an assert
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