]>
git.puffer.fish Git - matthieu/frr.git/log
Lou Berger [Tue, 28 Aug 2018 18:10:05 +0000 (18:10 +0000)]
bgp_rfapi_basic_sanity: added close check
Signed-off-by: Lou Berger <lberger@labn.net>
Lou Berger [Tue, 28 Aug 2018 16:18:13 +0000 (16:18 +0000)]
bgp_rfapi_basic_sanity: address PR comments (copyright, switch)
Signed-off-by: Lou Berger <lberger@labn.net>
Lou Berger [Mon, 27 Aug 2018 19:28:36 +0000 (19:28 +0000)]
bgp_rfapi_basic_sanity: added basic rfapi sanity topotest
Signed-off-by: Lou Berger <lberger@labn.net>
Rafael Zalamena [Mon, 27 Aug 2018 16:48:45 +0000 (13:48 -0300)]
lib: fix `ip4_route_zebra` header removal code
The `strip` function is actually a method of the String object.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Christian Franke [Sat, 25 Aug 2018 16:46:46 +0000 (18:46 +0200)]
lib/ospf-topo1-vrf: don't compare headers of show ip route
Signed-off-by: Christian Franke <nobody@nowhere.ws>
Donald Sharp [Wed, 22 Aug 2018 19:03:18 +0000 (15:03 -0400)]
lib: Always attempt to set mpls platform_labels
The code was not attempting to set the max platform_labels
on a per router basis, leaving us w/ situations where
mpls install would fail because platform_labels was 0.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Rafael Zalamena [Tue, 21 Aug 2018 22:28:40 +0000 (19:28 -0300)]
ospf-topo1-vrf: show errors and reduce code
Use standardized code and fix assert messages to include errors.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Quentin Young [Wed, 15 Aug 2018 16:55:20 +0000 (16:55 +0000)]
update ref file for cidr mask display
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Lou Berger [Sun, 12 Aug 2018 22:59:07 +0000 (22:59 +0000)]
bgp_l3vpn_to_bgp_vrf: allow for long adjancies, seen with l3mdev_accept=1
Signed-off-by: Lou Berger <lberger@labn.net>
Lou Berger [Thu, 9 Aug 2018 15:21:23 +0000 (11:21 -0400)]
bgp_l3vpn_to_bgp_vrf: ignore output of sysctl, reenables test!
Signed-off-by: Lou Berger <lberger@labn.net>
Lou Berger [Thu, 9 Aug 2018 14:52:48 +0000 (10:52 -0400)]
lib: speedup test exit when startup fails
Signed-off-by: Lou Berger <lberger@labn.net>
Rafael Zalamena [Sat, 4 Aug 2018 14:48:00 +0000 (11:48 -0300)]
ldp-vpls-topo1: remove duplicated code and sleep
Use the new standardized code for router output compare and remove a
code sleep.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Philippe Guibert [Tue, 24 Jul 2018 16:21:14 +0000 (18:21 +0200)]
ospf-topo1-vrf: replace link_enable api with zebra topotest api
Because on some platforms like i386, 'ip netns ' commands are unstable,
then I use an other API to operate the shutdown/no shutdown operation by
using vtysh.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Philippe Guibert [Tue, 24 Jul 2018 16:20:08 +0000 (18:20 +0200)]
lib: add zebra api to shutdown an interface
this function operates on vtysh, and performs a shutdown on an
interface.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Philippe Guibert [Fri, 20 Jul 2018 14:23:51 +0000 (16:23 +0200)]
ospf-topo1-vrf: replace ip_route method with ip_route_zebra
To analyse which route has been entered in the kernel, the
zebra show ip route vrf command is used.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Philippe Guibert [Fri, 20 Jul 2018 14:22:38 +0000 (16:22 +0200)]
lib: add ip_route_zebra function
This command permits dumping zebra routes from a vrf
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Philippe Guibert [Fri, 16 Feb 2018 18:42:44 +0000 (19:42 +0100)]
ospf-topo1-vrf: setup with OSPF VRF
OSPF test with VRF backend NETNS
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Philippe Guibert [Tue, 27 Feb 2018 09:58:42 +0000 (10:58 +0100)]
lib: topogen support for link_enable on other netns
In the case where vrf backend is based on NETNS, the link enable command
switches from context so as to perform the command.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Rafael Zalamena [Sat, 4 Aug 2018 13:29:40 +0000 (10:29 -0300)]
bgp_vrf_netns: reduce code duplication
Use new standardized functions to reduce code duplication.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Sat, 4 Aug 2018 13:14:37 +0000 (10:14 -0300)]
bgp-ecmp-topo1: remove sleep and reduce code
Use new standardized code to test router output and remove the
convergence sleep.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Sat, 4 Aug 2018 12:32:25 +0000 (09:32 -0300)]
ospf-topo1: use new output compare functions
Remove duplicated code and use the new output compare code from
lib.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Fri, 3 Aug 2018 16:28:36 +0000 (13:28 -0300)]
isis-topo1: use `run_and_expect`
Use `run_and_expect` instead of manually implementing this code in the
test.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Fri, 3 Aug 2018 16:23:52 +0000 (13:23 -0300)]
lib: implement standardized compare functions
In a effort to migrate more tests to use `run_and_expect` instead of
`sleep`s, this commit imports some common functions used to compare
router output. Retrying output comparison for N times, instead of
relying on arbitrary code `sleep`s, should help CI system tests fail
less and possibly run for less time.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Fri, 3 Aug 2018 15:21:52 +0000 (12:21 -0300)]
lib: improve normalize_text with another case
When normalizing a text also remove trailing whitespace since external
tools might add them. This commit fixes a test failure in ospf_topo1 on
Ubuntu 18.04.1.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Wed, 1 Aug 2018 23:02:59 +0000 (20:02 -0300)]
lib: show run_and_expect spent time
Standardize run_and_expect to show start and end time along with maximum
estimated wait time.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Lou Berger [Wed, 25 Jul 2018 11:32:58 +0000 (07:32 -0400)]
bgp_l3vpn_to_bgp_direct: imports and more debug Allow for different timings on, and number of, import processing Collect more info for debugging
Signed-off-by: Lou Berger <lberger@labn.net>
Lou Berger [Fri, 27 Jul 2018 16:24:22 +0000 (12:24 -0400)]
bgp_l3vpn_to_bgp_vrf: use l3mdev_accept workaround for known kernel bug
Signed-off-by: Lou Berger <lberger@labn.net>
Rafael Zalamena [Fri, 27 Jul 2018 01:13:44 +0000 (22:13 -0300)]
isis-topo1: fix IPv6 changes and remove metric
IPv6 metric for FRR version <3.X is different than for newer versions,
so to avoid extra code logic lets just ignore these checks.
The IPv6 changes weren't detected earlier because of the json_cmp list
fix.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Thu, 26 Jul 2018 22:07:44 +0000 (19:07 -0300)]
isis-topo1: remove pseudo_TE-IS entries from check
The pseudo_TE-IS entries vary and depend on the way the topology
converges, so lets not rely on that.
The IS-IS routers in the middle TE-IS entries vary the parent
interface, so we also removed that entry to avoid json_cmp comparison
failures.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Thu, 26 Jul 2018 22:11:30 +0000 (19:11 -0300)]
isis-topo1: improve topology parser
Don't match header otherwise it will create an even bigger JSON output
than we need.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Thu, 26 Jul 2018 19:34:15 +0000 (16:34 -0300)]
topotests: fix json_cmp wrong list handling
Don't quit on the first match. While here add some more `json_cmp` tests
to make sure this doesn't happen again.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Wed, 23 May 2018 19:39:05 +0000 (16:39 -0300)]
lib: improve json_cmp
Allow json_cmp to compare JSON values which begin with a list instead of
a dictionary.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Mon, 28 May 2018 16:45:31 +0000 (13:45 -0300)]
*: ignore .pytest_cache directories
These folders are being generated by recent py.test versions and should
be ignored.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Christian Franke [Fri, 23 Mar 2018 19:36:56 +0000 (20:36 +0100)]
lib: check presence of mpls modules, not exitcode of modprobe
Signed-off-by: Christian Franke <nobody@nowhere.ws>
Mark Stapp [Tue, 24 Jul 2018 20:49:46 +0000 (16:49 -0400)]
isis-topo1: make isis topology match .dot file
The v6 isis topology didn't really match the illustration. Fix
the configs and the test expectations so that all the parts
agree.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Philippe Guibert [Thu, 19 Jul 2018 12:55:17 +0000 (14:55 +0200)]
bgp_vrf_netns: swap the order of netns destruction
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Martin Winter [Thu, 19 Jul 2018 12:04:38 +0000 (05:04 -0700)]
lib: Fix staticd extension
Do not provide a staticd.conf to force staticd to read it's config
from zebra.conf
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Martin Winter [Thu, 19 Jul 2018 00:41:24 +0000 (17:41 -0700)]
lib: Add support for staticd
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Lou Berger [Wed, 11 Jul 2018 15:31:00 +0000 (11:31 -0400)]
bgp_l3vpn_to_bgp_vrf: allow some time for updates to propogate
Signed-off-by: Lou Berger <lberger@labn.net>
Lou Berger [Wed, 11 Jul 2018 15:17:48 +0000 (11:17 -0400)]
lib: more logging to aid in failure debugging
Signed-off-by: Lou Berger <lberger@labn.net>
Lou Berger [Wed, 11 Jul 2018 13:49:42 +0000 (09:49 -0400)]
lib: don't report cores on exit as asserts in 5.0
Signed-off-by: Lou Berger <lberger@labn.net>
Lou Berger [Sat, 30 Jun 2018 19:35:54 +0000 (15:35 -0400)]
lib: don't assert on shutdown errors in rel < 5.0
Signed-off-by: Lou Berger <lberger@labn.net>
Lou Berger [Sat, 30 Jun 2018 19:18:33 +0000 (15:18 -0400)]
lib: add and use Router.checkRouterVersion (based on bdpd version)
Signed-off-by: Lou Berger <lberger@labn.net>
Lou Berger [Sat, 30 Jun 2018 16:37:21 +0000 (12:37 -0400)]
lib: collect and report shutdown errors across whole topology
Signed-off-by: Lou Berger <lberger@labn.net>
Lou Berger [Sat, 30 Jun 2018 16:36:01 +0000 (12:36 -0400)]
lib: collect shutdown errors, add assert on single router shutdown
Signed-off-by: Lou Berger <lberger@labn.net>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Lou Berger [Tue, 1 May 2018 19:39:01 +0000 (15:39 -0400)]
bgp_l3vpn_to_bgp_vrf: more pings...
Lou Berger [Tue, 1 May 2018 19:35:52 +0000 (15:35 -0400)]
bgp_l3vpn_to_bgp_vrf: fix wrong table entries
Lou Berger [Fri, 27 Apr 2018 18:00:23 +0000 (14:00 -0400)]
lib: lutil - fix test numbering, add test number to command logging
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>