]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
5 years agoisis-topo1: skip test on FRR 2.0
Rafael Zalamena [Wed, 20 Dec 2017 11:34:57 +0000 (09:34 -0200)]
isis-topo1: skip test on FRR 2.0

It was noticed that this topology doesn't converge when there are IPv6
configurations, so this commit makes the tests to be skipped when the
version is 2.X.Y.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org
5 years agoisis-topo1: add IPv6 ISIS topology test
Rafael Zalamena [Sat, 16 Dec 2017 00:05:35 +0000 (22:05 -0200)]
isis-topo1: add IPv6 ISIS topology test

Configure IPv6 addresses and ISIS distribution, then test the topology
for the newly configured addresses.

This commit also adds support for parsing IPv6 data from the ISIS
topology output while updating the routers topology JSON files.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agoisis-topo1: add support for stable versions
Rafael Zalamena [Thu, 14 Dec 2017 18:54:30 +0000 (16:54 -0200)]
isis-topo1: add support for stable versions

Allow isis-topo1 tests to run on stable versions (2.0.2 and 3.0.2).

There are two differences between the stable versions and master:
1. ISIS nexthops don't show interfaceName nor interfaceIndex
   (on 'show ip route json')
2. New FRR version install ISIS routes in Linux with a different proto
   type identification.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agoisis-topo1: check ISIS kernel route installation
Rafael Zalamena [Thu, 14 Dec 2017 16:16:10 +0000 (14:16 -0200)]
isis-topo1: check ISIS kernel route installation

Check if the ISIS learned routes are being installed in the underlying
OS.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agoisis-topo1: test ISIS route installation
Rafael Zalamena [Wed, 13 Dec 2017 21:56:30 +0000 (19:56 -0200)]
isis-topo1: test ISIS route installation

Check the 'show ip route json' output for installed ISIS routes.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agoisis-topo1: test ISIS topology convergence
Rafael Zalamena [Wed, 13 Dec 2017 19:55:28 +0000 (17:55 -0200)]
isis-topo1: test ISIS topology convergence

Add function to parse 'show isis topology' and expect the correct
convergence result.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agoisis-topo1: add topology graph
Rafael Zalamena [Wed, 13 Dec 2017 15:10:53 +0000 (13:10 -0200)]
isis-topo1: add topology graph

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agoisis-topo1: import topology
Rafael Zalamena [Wed, 6 Dec 2017 18:08:20 +0000 (16:08 -0200)]
isis-topo1: import topology

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agoldp-vpls-topo1: new format for ospf neighbor json
Martin Winter [Sat, 27 Jan 2018 14:06:22 +0000 (06:06 -0800)]
ldp-vpls-topo1: new format for ospf neighbor json

Accept new format in ospf neighbor json output in addition to
old version. New format was introduced with PR1659

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agolib: ltemplate - fix handling of CallOnFail (take 2)
Lou Berger [Tue, 23 Jan 2018 13:10:50 +0000 (08:10 -0500)]
lib: ltemplate - fix handling of CallOnFail (take 2)

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agolib: ltemplate - fix handling of CallOnFail
Lou Berger [Tue, 23 Jan 2018 02:09:02 +0000 (21:09 -0500)]
lib: ltemplate - fix handling of CallOnFail

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_direct: fix hook routines for ltemplate
Lou Berger [Sun, 21 Jan 2018 23:03:51 +0000 (18:03 -0500)]
bgp_l3vpn_to_bgp_direct: fix hook routines for ltemplate

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_direct: rename bgp_direct_to_bgp_vpn Rename BGP L3VPN test to have...
Lou Berger [Sun, 21 Jan 2018 13:01:32 +0000 (08:01 -0500)]
bgp_l3vpn_to_bgp_direct: rename bgp_direct_to_bgp_vpn Rename BGP L3VPN test to have L3VPN at start of test name Also remove unused/pre-ltemplate files

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_direct_to_bgp_vpn: enable mpls forwarding, add more details on adjacencies
Lou Berger [Tue, 9 Jan 2018 15:07:43 +0000 (10:07 -0500)]
bgp_direct_to_bgp_vpn: enable mpls forwarding, add more details on adjacencies

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_direct_to_bgp_vpn: convert to lib/ltemplate
Lou Berger [Wed, 20 Dec 2017 12:44:17 +0000 (07:44 -0500)]
bgp_direct_to_bgp_vpn: convert to lib/ltemplate

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agolib: add LabN testing template
Lou Berger [Wed, 20 Dec 2017 12:43:30 +0000 (07:43 -0500)]
lib: add LabN testing template

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agoospf-topo1: Allow IPv6 ECMP version to pass
Martin Winter [Thu, 18 Jan 2018 03:49:02 +0000 (19:49 -0800)]
ospf-topo1: Allow IPv6 ECMP version to pass

Check ospf IPv6 routes for ECMP version first and fallback
to previous version if needed.

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agoospf-topo1: Add IPv6 addresses to diagram
Martin Winter [Fri, 22 Dec 2017 10:48:46 +0000 (02:48 -0800)]
ospf-topo1: Add IPv6 addresses to diagram

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agolib: lutil - make it easier to spot command output and null output
Lou Berger [Wed, 20 Dec 2017 13:38:13 +0000 (08:38 -0500)]
lib: lutil - make it easier to spot command output and null output

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agolib: lutil - make requested error logging change
Lou Berger [Thu, 7 Dec 2017 21:18:54 +0000 (16:18 -0500)]
lib: lutil - make requested error logging change

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_direct_to_bgp_vpn: scripts - avoid race condition, and test for predicable results
Lou Berger [Thu, 7 Dec 2017 21:18:00 +0000 (16:18 -0500)]
bgp_direct_to_bgp_vpn: scripts - avoid race condition, and test for predicable results

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_direct_to_bgp_vpn: add some progress output
Lou Berger [Thu, 7 Dec 2017 21:17:19 +0000 (16:17 -0500)]
bgp_direct_to_bgp_vpn: add some progress output

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_direct_to_bgp_vpn: general cleanup use moved lutil.py improve error information...
Lou Berger [Tue, 5 Dec 2017 17:04:54 +0000 (12:04 -0500)]
bgp_direct_to_bgp_vpn: general cleanup use moved lutil.py improve error information adjust to new luCommand default timeout sdd support for CliOnFail, remove no_test_call_mininet_cli scripts - update to correct stable values use topo test's log dir

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agolib: lutil cleanup move utilities/lutil.py -> lib/lutil.py add: luShowFail, CallOnFai...
Lou Berger [Wed, 6 Dec 2017 02:11:28 +0000 (21:11 -0500)]
lib: lutil cleanup move utilities/lutil.py -> lib/lutil.py add: luShowFail, CallOnFail, luStart parameter to set log dir change default wait to 10sec

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_direct_to_bgp_vpn: convert to new template, skip tests on pre-3.1 versions
Lou Berger [Sun, 26 Nov 2017 22:47:31 +0000 (17:47 -0500)]
bgp_direct_to_bgp_vpn: convert to new template, skip tests on pre-3.1 versions

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_direct_to_bgp_vpn: initial version
Lou Berger [Fri, 3 Nov 2017 20:39:09 +0000 (16:39 -0400)]
bgp_direct_to_bgp_vpn: initial version

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agolutil: initial version
Lou Berger [Fri, 3 Nov 2017 20:35:51 +0000 (16:35 -0400)]
lutil: initial version

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agotopotest: remove pid files
Rafael Zalamena [Fri, 8 Dec 2017 14:41:35 +0000 (12:41 -0200)]
topotest: remove pid files

Remove PID files after a SIGKILL or confirmation that the pid file no
longer contains a running PID.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agotopotest: improve informational messages
Rafael Zalamena [Fri, 8 Dec 2017 14:19:58 +0000 (12:19 -0200)]
topotest: improve informational messages

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agotopotest: show the user that we are waiting
Rafael Zalamena [Wed, 6 Dec 2017 17:40:57 +0000 (15:40 -0200)]
topotest: show the user that we are waiting

Add a log message to tell the user that we are waiting for zebra.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agolib: speed up router shutdown stopRouter: report when a process is being killed only...
Lou Berger [Thu, 7 Dec 2017 18:47:22 +0000 (13:47 -0500)]
lib: speed up router shutdown stopRouter: report when a process is being killed only sleep if actually killed a process add option to not sleep or conduct -7 kill topogen stop: add wait parameter (defaults to old/wait) when stopping routers, first stop all without waiting then do a second pass where will wait if needed

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agotopotest: always show diff on json_cmp failure
Rafael Zalamena [Thu, 9 Nov 2017 20:10:54 +0000 (18:10 -0200)]
topotest: always show diff on json_cmp failure

Append diffs on all json_cmp failures so the reader can compare JSON
field differences.

5 years agotopotest: specify why we are waiting
Rafael Zalamena [Thu, 9 Nov 2017 19:37:24 +0000 (17:37 -0200)]
topotest: specify why we are waiting

This shows the user why the router teardown is taking 2 seconds long.

5 years agodoc: update README and add code snippets
Rafael Zalamena [Thu, 9 Nov 2017 19:35:01 +0000 (17:35 -0200)]
doc: update README and add code snippets

Add some pointers in the README documentation that might help users get
ready to use topotest.

5 years agotopotest/topogen: demote some messages level
Rafael Zalamena [Wed, 8 Nov 2017 18:23:14 +0000 (16:23 -0200)]
topotest/topogen: demote some messages level

The messages level of this commit were downgraded because some of them
happen on 'non-error' situations. This should help diminish the error
log verbosity on the CI-system run.

5 years agotopotest: fix a regression in version_cmp
Rafael Zalamena [Tue, 7 Nov 2017 23:17:15 +0000 (21:17 -0200)]
topotest: fix a regression in version_cmp

It was found a regression on an edge case when the second number in the
comparison was (at least) 2 numbers longer the comparison would fail
with a wrong return value. It succeeded for some cases because the
first comparison in the exception was correct, but not the second.

5 years agobgp-ecmp-topo1: Workaround for version check
Martin Winter [Tue, 7 Nov 2017 22:37:09 +0000 (14:37 -0800)]
bgp-ecmp-topo1: Workaround for version check

temp workaround for Issue #43

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agoldp-vpls-topo1: Allow ospf neighbor json command with list (new) and dict (old)
Martin Winter [Wed, 1 Nov 2017 09:18:56 +0000 (02:18 -0700)]
ldp-vpls-topo1: Allow ospf neighbor json command with list (new) and dict (old)

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agoldp-vpls-topo1: fix a json_cmp result assert
Rafael Zalamena [Tue, 31 Oct 2017 16:11:11 +0000 (14:11 -0200)]
ldp-vpls-topo1: fix a json_cmp result assert

Use the 'right' assert to show more detailed failure report and remove
a unused variable.

5 years agoFix output to allow it on generic Debian
Martin Winter [Thu, 26 Oct 2017 00:56:33 +0000 (17:56 -0700)]
Fix output to allow it on generic Debian

- Generic Debian only has a single space in front of “proto” in the linux shell routing outptu

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agoeigrp-topo1: solve output ordering problem
Rafael Zalamena [Tue, 17 Oct 2017 20:06:25 +0000 (18:06 -0200)]
eigrp-topo1: solve output ordering problem

Transform 'show ip eigrp topo' output into data structures and compare
using json_cmp() to avoid expecting output order.

5 years agoldp-topo1: Remove check for protocol in installed LSPs
Renato Westphal [Fri, 22 Sep 2017 12:51:58 +0000 (09:51 -0300)]
ldp-topo1: Remove check for protocol in installed LSPs

PR #1213 in FRR changed the protocol of installed LSPs. To avoid breaking
older outstanding Pull Requests, remove the protocol check.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
5 years agoeigrp-topo1: Remove check for EIGRP distance
Martin Winter [Thu, 21 Sep 2017 03:31:25 +0000 (20:31 -0700)]
eigrp-topo1: Remove check for EIGRP distance

- Distance used to be wrong (0), new commit fixes this (90). To avoid breaking older outstanding Pull Requests, remove the distance check

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agotopotest: improve json error messages
Rafael Zalamena [Tue, 19 Sep 2017 01:19:10 +0000 (22:19 -0300)]
topotest: improve json error messages

Show a diff of the JSON values instead of dumping the whole
data structures.

5 years agotopotest: json_cmp_result split error lines
Rafael Zalamena [Tue, 19 Sep 2017 20:05:07 +0000 (17:05 -0300)]
topotest: json_cmp_result split error lines

When the API user wanted to show newlines we have to break them manually
to get the propper format.

5 years agotopotest: allow passing options to difflib
Rafael Zalamena [Wed, 20 Sep 2017 15:04:23 +0000 (12:04 -0300)]
topotest: allow passing options to difflib

Extend the topotest diff functions to allow receiving difflib options.

5 years agotopotest: remove unused json_cmp unused parameter
Rafael Zalamena [Tue, 19 Sep 2017 01:14:27 +0000 (22:14 -0300)]
topotest: remove unused json_cmp unused parameter

5 years agoall-protocol-startup/isis: Fix check for "show isis interface" to allow different...
Martin Winter [Tue, 19 Sep 2017 01:26:59 +0000 (18:26 -0700)]
all-protocol-startup/isis: Fix check for "show isis interface" to allow different circuit ids than 1

5 years agotopogen: fix diagnostics failure
Rafael Zalamena [Wed, 13 Sep 2017 15:22:14 +0000 (12:22 -0300)]
topogen: fix diagnostics failure

Don't try to log to file if directory doesn't exist.

5 years agotopogen: save zebra version output
Rafael Zalamena [Wed, 13 Sep 2017 15:07:35 +0000 (12:07 -0300)]
topogen: save zebra version output

Keep the zebra version output for later problem diagnostics.

5 years agotopogen: log diagnostics to file
Rafael Zalamena [Wed, 13 Sep 2017 14:57:58 +0000 (11:57 -0300)]
topogen: log diagnostics to file

5 years agoeigrp-topo1: Cleanup leftover comments from previous commit
Martin Winter [Tue, 12 Sep 2017 23:51:54 +0000 (16:51 -0700)]
eigrp-topo1: Cleanup leftover comments from previous commit

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agoeigrp-topo1: Change Route verification to use json
Martin Winter [Tue, 12 Sep 2017 23:36:38 +0000 (16:36 -0700)]
eigrp-topo1: Change Route verification to use json

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agoall-protocol-starup: Fix triple-output of same vtysh stderr/stdout messages.
Martin Winter [Thu, 31 Aug 2017 00:21:29 +0000 (17:21 -0700)]
all-protocol-starup: Fix triple-output of same vtysh stderr/stdout messages.

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agolib: Use SIGTERM for killing daemons first and only SIGBUS (7) if the daemons fail...
Martin Winter [Thu, 31 Aug 2017 00:06:35 +0000 (17:06 -0700)]
lib: Use SIGTERM for killing daemons first and only SIGBUS (7) if the daemons fail to exit.

- This allows daemons to free up memory and avoid false memory leak reports

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agomultiple_topos: Don't report about StdErr Output if there is no output
Martin Winter [Thu, 31 Aug 2017 00:03:54 +0000 (17:03 -0700)]
multiple_topos: Don't report about StdErr Output if there is no output

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agoeigrp-topo1: Correct eigrp test results.
Donald Sharp [Sun, 27 Aug 2017 00:08:06 +0000 (20:08 -0400)]
eigrp-topo1: Correct eigrp test results.

The values saved for the route table and eigrp topo
were a bit off because they have been corrected
in the eigrp daemon

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoEnable eigrp-topo1
Martin Winter [Sun, 20 Aug 2017 07:12:30 +0000 (00:12 -0700)]
Enable eigrp-topo1

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agolib: check for eigrpd available and return warning if missing instead of failing
Martin Winter [Sun, 20 Aug 2017 06:37:17 +0000 (23:37 -0700)]
lib: check for eigrpd available and return warning if missing instead of failing

5 years agoeigrp-topo1: convert to topogen
Rafael Zalamena [Thu, 17 Aug 2017 18:19:46 +0000 (15:19 -0300)]
eigrp-topo1: convert to topogen

5 years agotopogen: add support for eigrpd and nhrp
Rafael Zalamena [Thu, 17 Aug 2017 18:18:18 +0000 (15:18 -0300)]
topogen: add support for eigrpd and nhrp

5 years agotopogen: router startup failure triggers errors
Rafael Zalamena [Tue, 22 Aug 2017 22:26:18 +0000 (19:26 -0300)]
topogen: router startup failure triggers errors

Makes `router_have_failure()` detect frr startup errors.

5 years agotopogen: treat some corner cases on vtysh failure
Rafael Zalamena [Tue, 22 Aug 2017 22:25:15 +0000 (19:25 -0300)]
topogen: treat some corner cases on vtysh failure

Don't throw unneeded tracebacks when 'show version' doesn't show us what
we expect, instead gracefully fail.

5 years agotopogen: show pretty output for skipped messages
Rafael Zalamena [Tue, 22 Aug 2017 22:24:16 +0000 (19:24 -0300)]
topogen: show pretty output for skipped messages

Format them properly instead of printing a dictionary.

5 years agoldp_vpls_topo1: set an error instead of exit
Rafael Zalamena [Tue, 22 Aug 2017 22:22:53 +0000 (19:22 -0300)]
ldp_vpls_topo1: set an error instead of exit

It will have the same effect and code will not have to be repeated since
all functions must call `routers_have_failure()`.

5 years agoldp_vpls_topo1: don't use pytest.mark.skipif
Renato Westphal [Tue, 15 Aug 2017 19:31:20 +0000 (16:31 -0300)]
ldp_vpls_topo1: don't use pytest.mark.skipif

This feature from pytest can not be used to detect runtime errors.

Also, remove test_router_running() since all tests should actually check
if all daemons are up and running.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
5 years agoldp_vpls_topo1: skip all tests on stable/2.0
Renato Westphal [Tue, 15 Aug 2017 19:30:30 +0000 (16:30 -0300)]
ldp_vpls_topo1: skip all tests on stable/2.0

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
5 years agoldp_vpls_topo1: add new topology for ldp pseudowires
Renato Westphal [Thu, 13 Jul 2017 05:25:06 +0000 (02:25 -0300)]
ldp_vpls_topo1: add new topology for ldp pseudowires

This is a very simple topology for testing LDP pseudowires.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
5 years agoBasic EIGRP topo test working
Donald Sharp [Fri, 18 Aug 2017 19:37:24 +0000 (15:37 -0400)]
Basic EIGRP topo test working

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoExclude eigrp test from running normally yet
Donald Sharp [Wed, 16 Aug 2017 23:22:22 +0000 (19:22 -0400)]
Exclude eigrp test from running normally yet

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoAdd a basic EIGRP topology.
Donald Sharp [Wed, 16 Aug 2017 23:10:52 +0000 (19:10 -0400)]
Add a basic EIGRP topology.

Nothing fancy here, just add 3 routers in a row
attempt to let eigrp come up and start a mininet
xterm to debug, since eigrp doesn't work yet.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoAllow topotests to work with eigrp and nhrp
Donald Sharp [Wed, 16 Aug 2017 22:57:59 +0000 (18:57 -0400)]
Allow topotests to work with eigrp and nhrp

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoldp-topo1: Use 'label implicit-null' for implicit labels
Martin Winter [Wed, 9 Aug 2017 19:23:54 +0000 (12:23 -0700)]
ldp-topo1: Use 'label implicit-null' for implicit labels

Signed-off-by: Martin Winter <mwinter@netdef.org>
5 years agotopotests: change from "context" to "unified" diff
David Lamparter [Wed, 9 Aug 2017 17:08:50 +0000 (19:08 +0200)]
topotests: change from "context" to "unified" diff

context diff:
*** before.py

5 years agotopotests: add topology name to assert output
Rafael Zalamena [Fri, 28 Jul 2017 00:44:51 +0000 (21:44 -0300)]
topotests: add topology name to assert output

Make it easy to identify which topology test we are running.

5 years agotopotests: make asserts show up in stderr
Rafael Zalamena [Thu, 27 Jul 2017 17:52:51 +0000 (14:52 -0300)]
topotests: make asserts show up in stderr

Code was based on the pytest default makereport code:
https://github.com/pytest-dev/pytest/blob/c92760dca8637251eb9e7b9ea4819b32bc0b8042/_pytest/runner.py#L264

5 years agolib: Change topology to output INFO and DEBUG to stdout and other levels to stderr
Martin Winter [Thu, 27 Jul 2017 11:09:45 +0000 (04:09 -0700)]
lib: Change topology to output INFO and DEBUG to stdout and other levels to stderr

Previously, all logs were sent to stderr

5 years agolib: add check for mpls kernel modules to diagnose_env()
Martin Winter [Thu, 27 Jul 2017 00:27:24 +0000 (17:27 -0700)]
lib: add check for mpls kernel modules to diagnose_env()

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agolib: Enhance daemon_available() function to check for mpls modules in case of LDPd
Martin Winter [Wed, 26 Jul 2017 23:22:14 +0000 (16:22 -0700)]
lib: Enhance daemon_available() function to check for mpls modules in case of LDPd

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agolib: Add check for MPLS kernel modules to exist before trying LDP tests
Martin Winter [Wed, 26 Jul 2017 20:37:39 +0000 (13:37 -0700)]
lib: Add check for MPLS kernel modules to exist before trying LDP tests

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agoospf-topo1: Remove check for spfLastDurationMsecs value
Martin Winter [Wed, 26 Jul 2017 19:22:25 +0000 (12:22 -0700)]
ospf-topo1: Remove check for spfLastDurationMsecs value

json check accidently checked for the spfLastDurationMsecs which
isn't always 0 for slower system in our tests. ARM7 sometimes has
a slightly higher value (1).

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agobgp-ecmp-topo1: Check number of routes received for convergence
Martin Winter [Wed, 26 Jul 2017 02:21:05 +0000 (19:21 -0700)]
bgp-ecmp-topo1: Check number of routes received for convergence

Add check for number of routes to convergence. InQ=0, OutQ=0
together with correct number of routes received shows that
BGP has converged

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agobgp-ecmp-topo: add support for FRR 2.0
Rafael Zalamena [Mon, 24 Jul 2017 17:01:00 +0000 (14:01 -0300)]
bgp-ecmp-topo: add support for FRR 2.0

The FRR 2.0 json output is different from newer version, so add the
appropriate treatment.

5 years agobgp-ecmp-topo: test BGP convergence
Rafael Zalamena [Mon, 24 Jul 2017 16:06:52 +0000 (13:06 -0300)]
bgp-ecmp-topo: test BGP convergence

Add a test that waits for BGP convergence.

5 years agobgp-ecmp-topo: use the new sleep function
Rafael Zalamena [Mon, 24 Jul 2017 14:55:42 +0000 (11:55 -0300)]
bgp-ecmp-topo: use the new sleep function

5 years agotopotest: log sleep function
Rafael Zalamena [Mon, 24 Jul 2017 14:53:19 +0000 (11:53 -0300)]
topotest: log sleep function

Added a wrapper for the sleep function that should be used to register
in the log files the amount of time spent sleeping.

5 years agobgp-ecmp-topo1: add convergence test
Rafael Zalamena [Thu, 13 Jul 2017 12:54:37 +0000 (09:54 -0300)]
bgp-ecmp-topo1: add convergence test

Assert that we got the routes from ExaBGP and they are multipath
enabled.

5 years agobgp-ecmp-topo1: convert to topogen
Rafael Zalamena [Wed, 12 Jul 2017 14:38:31 +0000 (11:38 -0300)]
bgp-ecmp-topo1: convert to topogen

5 years agobgp-ecmp-topo1: fix exabgp configuration file
Rafael Zalamena [Mon, 10 Jul 2017 15:58:24 +0000 (12:58 -0300)]
bgp-ecmp-topo1: fix exabgp configuration file

Using relative path to start the exabgp python scripts didn't work out
of the box in my enviroment, so be more specific since we already know
where the scripts are.

5 years agobgp-ecmp-topo1: Add BGP Topology for rcmp testing
Martin Winter [Fri, 7 Jul 2017 09:49:55 +0000 (02:49 -0700)]
bgp-ecmp-topo1: Add BGP Topology for rcmp testing

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agoospf-topo: Mask IPv6 local-addressess instead of removing them
Martin Winter [Sat, 22 Jul 2017 01:32:48 +0000 (18:32 -0700)]
ospf-topo: Mask IPv6 local-addressess instead of removing them

Just mask out the random part makes the diff output better readable

5 years agoospf-topo: show areas in the topology dot/jpg
Rafael Zalamena [Fri, 21 Jul 2017 14:08:06 +0000 (11:08 -0300)]
ospf-topo: show areas in the topology dot/jpg

5 years agoospf-topo: skip on tests on router failure
Rafael Zalamena [Fri, 21 Jul 2017 13:53:36 +0000 (10:53 -0300)]
ospf-topo: skip on tests on router failure

Update the test by adding the routers_have_failure() check. While here,
bump the amount of time to expect for convergence by 15 seconds.

5 years agoospf-topo: remove log file specification
Rafael Zalamena [Fri, 21 Jul 2017 13:33:50 +0000 (10:33 -0300)]
ospf-topo: remove log file specification

We don't need to set logging file per-daemon as topogen will already do
that for us. Also, remove hostname line as it seems to have no effect.

5 years agotopogen: allow daemon spec in vtysh_cmd
Rafael Zalamena [Fri, 21 Jul 2017 13:32:14 +0000 (10:32 -0300)]
topogen: allow daemon spec in vtysh_cmd

Allow commands to be run per-daemon basis. While here make daemon
logging file configuration per-daemon.

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.