]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
5 years agoldp-topo1: fix ip mpls route output format
Rafael Zalamena [Wed, 13 Jun 2018 22:37:40 +0000 (19:37 -0300)]
ldp-topo1: fix ip mpls route output format

Remove the different file as it is no longer needed.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agoospf6-topo1: make ip-route comparison more robust
Christian Franke [Sat, 24 Mar 2018 12:51:40 +0000 (13:51 +0100)]
ospf6-topo1: make ip-route comparison more robust

Signed-off-by: Christian Franke <nobody@nowhere.ws>
5 years agoldp-topo1: fix parsing for iproute from Ubuntu 18.04
Christian Franke [Sat, 24 Mar 2018 12:05:44 +0000 (13:05 +0100)]
ldp-topo1: fix parsing for iproute from Ubuntu 18.04

Signed-off-by: Christian Franke <nobody@nowhere.ws>
5 years agolib: bgprib - get human readable verson of json commands for log
Lou Berger [Sat, 2 Jun 2018 19:06:47 +0000 (15:06 -0400)]
lib: bgprib - get human readable verson of json commands for log

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agolib: allow all rw access to /tmp/topotests (for package support and debug)
Lou Berger [Tue, 22 May 2018 11:44:51 +0000 (07:44 -0400)]
lib: allow all rw access to /tmp/topotests (for package support and debug)

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agolib: use per node log directory when topotest is used without topogen
Lou Berger [Mon, 21 May 2018 13:47:18 +0000 (09:47 -0400)]
lib: use per node log directory when topotest is used without topogen

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agolib: log to start/local (per node) dir, log commands
Lou Berger [Fri, 11 May 2018 12:29:42 +0000 (08:29 -0400)]
lib: log to start/local (per node) dir, log commands

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agoGUIDELINES.md: update to reflect per node log dirs
Lou Berger [Thu, 10 May 2018 21:53:50 +0000 (17:53 -0400)]
GUIDELINES.md: update to reflect per node log dirs

Signed-off-by: Lou Berger <lberger@labn.net>
5 years ago*: convert startup logs to use per node directories also have startup and running...
Lou Berger [Thu, 10 May 2018 21:38:29 +0000 (17:38 -0400)]
*: convert startup logs to use per node directories also have startup and running log files match

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agolib: limit checkRouterCores output to once per router start
Lou Berger [Thu, 10 May 2018 11:54:38 +0000 (07:54 -0400)]
lib: limit checkRouterCores output to once per router start

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: Fixup topo test to write log files to same location at start...
Donald Sharp [Wed, 9 May 2018 23:58:31 +0000 (19:58 -0400)]
bgp_l3vpn_to_bgp_vrf: Fixup topo test to write log files to same location at start of run

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib: add check for core and memory issues after routerstop
Lou Berger [Wed, 9 May 2018 17:02:33 +0000 (13:02 -0400)]
lib: add check for core and memory issues after routerstop

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agolib: convert to directories per node
Lou Berger [Wed, 9 May 2018 15:11:47 +0000 (11:11 -0400)]
lib: convert to directories per node

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: more pings...
Lou Berger [Tue, 1 May 2018 19:39:01 +0000 (15:39 -0400)]
bgp_l3vpn_to_bgp_vrf: more pings...

5 years agobgp_l3vpn_to_bgp_vrf: fix wrong table entries
Lou Berger [Tue, 1 May 2018 19:35:52 +0000 (15:35 -0400)]
bgp_l3vpn_to_bgp_vrf: fix wrong table entries

5 years agolib: lutil - fix test numbering, add test number to command logging
Lou Berger [Fri, 27 Apr 2018 18:00:23 +0000 (14:00 -0400)]
lib: lutil - fix test numbering, add test number to command logging

5 years agobgp_l3vpn_to_bgp_vrf: remote static routes left over from old test versions
Lou Berger [Fri, 27 Apr 2018 17:40:02 +0000 (13:40 -0400)]
bgp_l3vpn_to_bgp_vrf: remote static routes left over from old test versions

5 years agobgp_multiview_topo1: more fixes for header changes of PR 2045
G. Paul Ziemba [Sat, 21 Apr 2018 17:23:54 +0000 (10:23 -0700)]
bgp_multiview_topo1: more fixes for header changes of PR 2045

For this test, vrf id in headers is unset

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agobgp: tolerate route-table-show header changes of PR 2045
G. Paul Ziemba [Sat, 21 Apr 2018 17:23:54 +0000 (10:23 -0700)]
bgp: tolerate route-table-show header changes of PR 2045

The table header has changed slightly for "bgp show" commands. Change
all-protocol-startup (test_bgp_ipv4() and test_bgp_ipv6()) and
bgp_multiview_topo1 (test_bgp_routingTable())  to run diffs against multiple
templates (representing the various valid outputs for different versions
of the FRR code) and mark the test "passed" if any one template matches.

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: use FRR PR #2053
G. Paul Ziemba [Mon, 16 Apr 2018 13:40:52 +0000 (06:40 -0700)]
bgp_l3vpn_to_bgp_vrf: use FRR PR #2053

Check CE routes from CE in another VRF attached to same PE router. Relies
on FRR bug fix to not require labeled nexthop for paths that go only
through PE router and not mpls core.

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: check_linux_mpls: delete obsolete code; formatting
G. Paul Ziemba [Tue, 17 Apr 2018 05:26:19 +0000 (22:26 -0700)]
bgp_l3vpn_to_bgp_vrf: check_linux_mpls: delete obsolete code; formatting

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agolib: fix path the led to group_nl_converted being referenced when not set
Lou Berger [Fri, 13 Apr 2018 15:47:02 +0000 (11:47 -0400)]
lib: fix path the led to group_nl_converted being referenced when not set

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agolib/bgprib.py: add copyright notice
G. Paul Ziemba [Thu, 12 Apr 2018 15:43:33 +0000 (08:43 -0700)]
lib/bgprib.py: add copyright notice

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agolib: lutil matching without changing newlines
G. Paul Ziemba [Thu, 12 Apr 2018 06:03:43 +0000 (23:03 -0700)]
lib: lutil matching without changing newlines

Prior behavior of luCommand was to convert newlines to spaces in DUT
output before pattern matching. New method operating in parallel uses
re.DOTALL to mimic same behavior and allow preserving original DUT output.
The original output is needed for some scripts that parse line-by-line.

There is also some test code to compare match results using the
old way and new way and log a message if they are different. After
some short time we can develop confidence that using this new method
will not break any existing tests.

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: require frr 4.1
G. Paul Ziemba [Wed, 11 Apr 2018 18:46:35 +0000 (11:46 -0700)]
bgp_l3vpn_to_bgp_vrf: require frr 4.1

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: update to current vpn-vrf leak syntax and behavior
G. Paul Ziemba [Wed, 11 Apr 2018 17:42:44 +0000 (10:42 -0700)]
bgp_l3vpn_to_bgp_vrf: update to current vpn-vrf leak syntax and behavior

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agolib/bgprib.py: handle empty json results gracefully
G. Paul Ziemba [Tue, 6 Mar 2018 21:11:13 +0000 (13:11 -0800)]
lib/bgprib.py: handle empty json results gracefully

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agolib/ltemplate.py: add KeepGoing parameter to ltemplateTest
G. Paul Ziemba [Sat, 3 Mar 2018 20:22:39 +0000 (12:22 -0800)]
lib/ltemplate.py: add KeepGoing parameter to ltemplateTest

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agotest_bgp_l3vpn_to_bgp_vrf: match new nexthop=0 code
G. Paul Ziemba [Thu, 1 Mar 2018 06:00:01 +0000 (22:00 -0800)]
test_bgp_l3vpn_to_bgp_vrf: match new nexthop=0 code

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agotest_bgp_l3vpn_to_bgp_vrf: small config comment cleanup
G. Paul Ziemba [Thu, 1 Mar 2018 05:58:12 +0000 (21:58 -0800)]
test_bgp_l3vpn_to_bgp_vrf: small config comment cleanup

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agoltemplate.py: start isisd when isisd.conf present
G. Paul Ziemba [Thu, 1 Mar 2018 05:44:49 +0000 (21:44 -0800)]
ltemplate.py: start isisd when isisd.conf present

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agoltemplate.py: remove dependency on hard-coded router name r2
G. Paul Ziemba [Mon, 26 Feb 2018 15:52:22 +0000 (07:52 -0800)]
ltemplate.py: remove dependency on hard-coded router name r2

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: assign different RDs to customers on r4
G. Paul Ziemba [Fri, 23 Feb 2018 01:46:34 +0000 (17:46 -0800)]
bgp_l3vpn_to_bgp_vrf: assign different RDs to customers on r4

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: comment out route-add commands no longer needed
G. Paul Ziemba [Thu, 22 Feb 2018 00:33:13 +0000 (16:33 -0800)]
bgp_l3vpn_to_bgp_vrf: comment out route-add commands no longer needed

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: check_routes test now uses bgprib for exact route checking
G. Paul Ziemba [Wed, 21 Feb 2018 05:33:02 +0000 (21:33 -0800)]
bgp_l3vpn_to_bgp_vrf: check_routes test now uses bgprib for exact route checking

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agolib/bgprib.py naming rib->bgprib is more accurate
G. Paul Ziemba [Wed, 21 Feb 2018 05:31:02 +0000 (21:31 -0800)]
lib/bgprib.py naming rib->bgprib is more accurate

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: updated config files to current vpn-policy syntax
G. Paul Ziemba [Wed, 21 Feb 2018 05:29:47 +0000 (21:29 -0800)]
bgp_l3vpn_to_bgp_vrf: updated config files to current vpn-policy syntax

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agolutil: expose result method
G. Paul Ziemba [Wed, 21 Feb 2018 05:25:51 +0000 (21:25 -0800)]
lutil: expose result method

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agolib: bgprib utility to compare rib against list of required routes
G. Paul Ziemba [Tue, 20 Feb 2018 08:42:16 +0000 (00:42 -0800)]
lib: bgprib utility to compare rib against list of required routes

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agobgp vpn-vrf leaking: partial changes toward using new functionality
G. Paul Ziemba [Mon, 19 Feb 2018 16:52:24 +0000 (08:52 -0800)]
bgp vpn-vrf leaking: partial changes toward using new functionality

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agobgp_vrf_netns: revert changes from topotest 77
Philippe Guibert [Tue, 13 Mar 2018 13:57:58 +0000 (14:57 +0100)]
bgp_vrf_netns: revert changes from topotest 77

revert
https://github.com/FRRouting/topotests/pull/77
bgp_vrf_netns: do not run test on 32 bit linux machines

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agobgp_vrf_netns: increase bgp convergence timer
Philippe Guibert [Tue, 13 Mar 2018 12:24:09 +0000 (13:24 +0100)]
bgp_vrf_netns: increase bgp convergence timer

BGP convergence timer is increased from 90 seconds to 120 seconds.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agobgp_vrf_netns: do not run test on 32 bit linux machines
Philippe Guibert [Tue, 13 Mar 2018 12:06:10 +0000 (13:06 +0100)]
bgp_vrf_netns: do not run test on 32 bit linux machines

It seems vrf netns is not working on 32 bit platforsm.
For that, the test should be cancelled.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agobgp_vrf_netns: attempt cleanup of previous test abnormal exit. skip test if setup...
Lou Berger [Mon, 12 Mar 2018 21:17:54 +0000 (17:17 -0400)]
bgp_vrf_netns: attempt cleanup of previous test abnormal exit. skip test if setup fails

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agolib: TopoExaBGP.start - report unexpected exabgp output
Lou Berger [Mon, 12 Mar 2018 15:35:07 +0000 (11:35 -0400)]
lib: TopoExaBGP.start - report unexpected exabgp output

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_vrf_netns: allow more time for adjacency to come up, report unexpected output
Lou Berger [Mon, 12 Mar 2018 15:28:47 +0000 (11:28 -0400)]
bgp_vrf_netns: allow more time for adjacency to come up, report unexpected output

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_vrf_netns: add basic test to support netns backend with netns
Philippe Guibert [Wed, 31 Jan 2018 10:04:02 +0000 (11:04 +0100)]
bgp_vrf_netns: add basic test to support netns backend with netns

The test consist in starting a BGP router on a NETNS, and interacting
with an exaBGP instance. The test automatically relies on VRF with netns
backend but can be easily configured so as to perform basic BGP VRF
testing with VRF with VRF-lite backend.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agolib: zebra support for vrfwnetns parameter
Philippe Guibert [Wed, 31 Jan 2018 10:48:11 +0000 (11:48 +0100)]
lib: zebra support for vrfwnetns parameter

topotest library is being added a new parameter when preparing the
configurationof each daemon. This parameter will be used to call the
daemon with some extra parameters. The -n parameter for zebra is taken
into account.
Also, when a extra parameter is given for calling zebra, a check is done to
see if it is possible to run zebra daemon with that option. This is the
case for vrfwnetns option. If not available, an error message is sent
back.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agobgp_l3vpn_to_bgp_vrf: fix route set on non-vrf interface (thanks ben!)
Lou Berger [Sun, 25 Feb 2018 17:21:12 +0000 (12:21 -0500)]
bgp_l3vpn_to_bgp_vrf: fix route set on non-vrf interface (thanks ben!)

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agolib: lutil - fix test counting, add returnJson flag
Lou Berger [Wed, 21 Feb 2018 13:42:56 +0000 (08:42 -0500)]
lib: lutil - fix test counting, add returnJson flag

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agoldp-vpls-topo1: support new OSPF JSON format
Rafael Zalamena [Thu, 22 Feb 2018 18:52:10 +0000 (15:52 -0300)]
ldp-vpls-topo1: support new OSPF JSON format

Support the new OSPF JSON output format for `show ip ospf neighbor
json` introduced in FRR's PR 1723.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agoRevert previous 2 commits (pushed by mistake)
Martin Winter [Fri, 16 Feb 2018 22:10:07 +0000 (14:10 -0800)]
Revert previous 2 commits (pushed by mistake)

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agoUpdate OSPF-SR tests to handle various version
Olivier Dugeon [Fri, 16 Feb 2018 18:27:25 +0000 (19:27 +0100)]
Update OSPF-SR tests to handle various version

In order to avoid failed test on unsupported version:
 - Test that version is greater than 4
 - Check that Segment Routing CLI are available

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
5 years agoAdd OSPF Segment Routing tests
Olivier Dugeon [Thu, 15 Feb 2018 15:06:01 +0000 (16:06 +0100)]
Add OSPF Segment Routing tests

 - Build a topology made of 4 routers: 3 PE connected to a P
 - Segment Routing is activated on all 4 routers with various setting
for the MSD, Global Block and Prefix (with or without NO-PHP flag)
 - 2 tests have been elaborated: the first one check the consistency of the
Segment Routing database on each router compared to a reference and the second
one check that the MPLS FIB has been correctly configured on each router,
again compared to a reference

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
5 years agoldp-topo1: Support implicit-null and old format on "show_mpls_table"
Martin Winter [Wed, 14 Feb 2018 02:09:41 +0000 (18:09 -0800)]
ldp-topo1: Support implicit-null and old format on "show_mpls_table"

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agobgp_l3vpn_to_bgp_direct: use new ltemplate common functions
Lou Berger [Tue, 13 Feb 2018 16:29:30 +0000 (11:29 -0500)]
bgp_l3vpn_to_bgp_direct: use new ltemplate common functions

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: use new ltemplate common functions
Lou Berger [Tue, 13 Feb 2018 15:38:02 +0000 (10:38 -0500)]
bgp_l3vpn_to_bgp_vrf: use new ltemplate common functions

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agolib: ltemplate add common ltemplateRtrCmd and ltemplateVersionCheck
Lou Berger [Tue, 13 Feb 2018 15:37:23 +0000 (10:37 -0500)]
lib: ltemplate add common ltemplateRtrCmd and ltemplateVersionCheck

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: centralize iproute2 check, add checks to appropriate tests
Lou Berger [Sun, 11 Feb 2018 18:06:39 +0000 (13:06 -0500)]
bgp_l3vpn_to_bgp_vrf: centralize iproute2 check, add checks to appropriate tests

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: required 4.11 kernel on arm processors
Lou Berger [Sun, 11 Feb 2018 17:05:51 +0000 (12:05 -0500)]
bgp_l3vpn_to_bgp_vrf: required 4.11 kernel on arm processors

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: add test to check linux vrf info
Lou Berger [Sun, 11 Feb 2018 15:55:00 +0000 (10:55 -0500)]
bgp_l3vpn_to_bgp_vrf: add test to check linux vrf info

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: prepend rtr name to vrf name, per Philippe
Lou Berger [Thu, 8 Feb 2018 15:16:51 +0000 (10:16 -0500)]
bgp_l3vpn_to_bgp_vrf: prepend rtr name to vrf name, per Philippe

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: skip mpls vrf ping tests when have old iproute2
Lou Berger [Tue, 6 Feb 2018 23:22:04 +0000 (18:22 -0500)]
bgp_l3vpn_to_bgp_vrf: skip mpls vrf ping tests when have old iproute2

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: add testing for manually setup MPLS path (until have dynamic)
Lou Berger [Wed, 31 Jan 2018 18:59:55 +0000 (13:59 -0500)]
bgp_l3vpn_to_bgp_vrf: add testing for manually setup MPLS path (until have dynamic)

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agoisis-topo1: allow up to 90 sec for convergence
Lou Berger [Wed, 7 Feb 2018 23:06:00 +0000 (18:06 -0500)]
isis-topo1: allow up to 90 sec for convergence

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_direct: use tgen.hasmpls flag
Lou Berger [Wed, 7 Feb 2018 21:13:48 +0000 (16:13 -0500)]
bgp_l3vpn_to_bgp_direct: use tgen.hasmpls flag

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: catch linux setup failures
Lou Berger [Wed, 7 Feb 2018 16:58:09 +0000 (11:58 -0500)]
bgp_l3vpn_to_bgp_vrf: catch linux setup failures

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: collect iproute2 package into
Lou Berger [Tue, 6 Feb 2018 13:40:51 +0000 (08:40 -0500)]
bgp_l3vpn_to_bgp_vrf: collect iproute2 package into

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: add kernel check (>=4.9)
Lou Berger [Mon, 5 Feb 2018 22:50:33 +0000 (17:50 -0500)]
bgp_l3vpn_to_bgp_vrf: add kernel check (>=4.9)

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agobgp_l3vpn_to_bgp_vrf: use tgen.hasmpls flag
Lou Berger [Tue, 6 Feb 2018 20:24:15 +0000 (15:24 -0500)]
bgp_l3vpn_to_bgp_vrf: use tgen.hasmpls flag

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agolib: add tgen level mpls init and hasmpls flag
Lou Berger [Tue, 6 Feb 2018 20:23:46 +0000 (15:23 -0500)]
lib: add tgen level mpls init and hasmpls flag

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

Signed-off-by: Lou Berger <lberger@labn.net>
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>