]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
5 years agobgp_l3vpn_to_bgp_vrf: skip tests when mpls not available
Lou Berger [Thu, 1 Feb 2018 01:20:26 +0000 (20:20 -0500)]
bgp_l3vpn_to_bgp_vrf: skip tests when mpls not available

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agolib: add script name to summary output
Lou Berger [Wed, 31 Jan 2018 19:43:13 +0000 (14:43 -0500)]
lib: add script name to summary output

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agolib: add luLast to get last found luCommand regex match
Lou Berger [Wed, 31 Jan 2018 18:02:42 +0000 (13:02 -0500)]
lib: add luLast to get last found luCommand regex match

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_direct: allow for some ping loss
Lou Berger [Tue, 30 Jan 2018 21:31:24 +0000 (16:31 -0500)]
bgp_l3vpn_to_bgp_direct: allow for some ping loss

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: allow for some ping loss
Lou Berger [Tue, 30 Jan 2018 21:30:24 +0000 (16:30 -0500)]
bgp_l3vpn_to_bgp_vrf: allow for some ping loss

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: add basic data path checks prior to adjacency check
Lou Berger [Tue, 30 Jan 2018 14:27:04 +0000 (09:27 -0500)]
bgp_l3vpn_to_bgp_vrf: add basic data path checks prior to adjacency check

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_direct: add basic data path checks prior to adjacency check
Lou Berger [Tue, 30 Jan 2018 14:18:06 +0000 (09:18 -0500)]
bgp_l3vpn_to_bgp_direct: add basic data path checks prior to adjacency check

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_xxx: match ltemplate start/stop changes
Lou Berger [Sat, 27 Jan 2018 22:01:19 +0000 (17:01 -0500)]
bgp_l3vpn_to_bgp_xxx: match ltemplate start/stop changes

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agolib: ltemplate simplify start/stop
Lou Berger [Sat, 27 Jan 2018 22:00:58 +0000 (17:00 -0500)]
lib: ltemplate simplify start/stop

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_xxx: avoid collision of customize.py match lutil and ltemplate changes
Lou Berger [Fri, 26 Jan 2018 14:05:48 +0000 (09:05 -0500)]
bgp_l3vpn_to_bgp_xxx: avoid collision of customize.py match lutil and ltemplate changes

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agolib: scope life of Lutil and _lt to a single test run reorg to support regression...
Lou Berger [Fri, 26 Jan 2018 13:51:00 +0000 (08:51 -0500)]
lib: scope life of Lutil and _lt to a single test run reorg to support regression environment

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: just test adjacencies now - for dev/integration
Lou Berger [Fri, 26 Jan 2018 04:07:11 +0000 (23:07 -0500)]
bgp_l3vpn_to_bgp_vrf: just test adjacencies now - for dev/integration

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: don't set vrf-policy, wait for new format
Lou Berger [Fri, 26 Jan 2018 04:06:12 +0000 (23:06 -0500)]
bgp_l3vpn_to_bgp_vrf: don't set vrf-policy, wait for new format

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: add ce4 off of r4 for inter-vrf route leaking
Lou Berger [Thu, 25 Jan 2018 22:50:20 +0000 (17:50 -0500)]
bgp_l3vpn_to_bgp_vrf: add ce4 off of r4 for inter-vrf route leaking

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: in progress version Adjacenies up, MPLS configured on interface...
Lou Berger [Sun, 21 Jan 2018 13:55:40 +0000 (08:55 -0500)]
bgp_l3vpn_to_bgp_vrf: in progress version Adjacenies up, MPLS configured on interfaces -- right now provides testbed for code changes

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: clone bgp_l3vpn_to_bgp_direct as starting point
Lou Berger [Sun, 21 Jan 2018 13:47:16 +0000 (08:47 -0500)]
bgp_l3vpn_to_bgp_vrf: clone bgp_l3vpn_to_bgp_direct as starting point

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_direct: 2nd try at skipping tests when MPLS not available
Lou Berger [Thu, 1 Feb 2018 14:17:33 +0000 (09:17 -0500)]
bgp_l3vpn_to_bgp_direct: 2nd try at skipping tests when MPLS not available

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_direct: skip tests when mpls not available
Lou Berger [Thu, 1 Feb 2018 01:13:09 +0000 (20:13 -0500)]
bgp_l3vpn_to_bgp_direct: skip tests when mpls not available

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agolib: add router.has_mpls check
Lou Berger [Thu, 1 Feb 2018 01:07:27 +0000 (20:07 -0500)]
lib: add router.has_mpls check

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agotopogen: fix assertion on `routers_have_failure`
Rafael Zalamena [Fri, 22 Dec 2017 14:19:09 +0000 (12:19 -0200)]
topogen: fix assertion on `routers_have_failure`

`errors != ''` is never going to be false so the assert was never being
triggered.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agotopogen: import pytest assert function
Rafael Zalamena [Fri, 22 Dec 2017 12:47:20 +0000 (10:47 -0200)]
topogen: import pytest assert function

Use the pytest assert function to be able to report to pytest failures
that happened inside the API.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agoisis-topo1: check IPv6 linux route install
Rafael Zalamena [Wed, 20 Dec 2017 12:16:39 +0000 (10:16 -0200)]
isis-topo1: check IPv6 linux route install

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agoisis-topo1: simplify dictionary key removal code
Rafael Zalamena [Wed, 20 Dec 2017 12:07:31 +0000 (10:07 -0200)]
isis-topo1: simplify dictionary key removal code

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agoisis-topo1: check ipv6 zebra route installation
Rafael Zalamena [Wed, 20 Dec 2017 12:05:04 +0000 (10:05 -0200)]
isis-topo1: check ipv6 zebra route installation

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
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