Mark Stapp
11761ab0f4
tests: python3 compat fixes for topotests: tabs and misc
...
Use only spaces in python files; no tabs; also a couple of small
api fixes.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-09-26 15:40:00 -04:00
Donald Sharp
622c4996ef
tests: Our tests are for FRR
...
These tests at this point only work for FRR. Let's cut to the chase
and admit it.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>`
2020-09-22 10:11:58 -04:00
Donald Sharp
221bbedb11
tests: Speedup ldp-topo1 tests
...
These ospf timer changes, speed up convergence from ~85 seconds to
~40 seconds.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-09-03 10:54:16 -04:00
Mark Stapp
fa6e939421
tests: remove unused ref files from ldp topotest
...
Remove a couple of a couple of mis-named reference output files
from the ldp-topo1 suite.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-05-06 09:31:21 -04:00
Sri Mohana Singamsetty
70ecc066e7
Merge pull request #6105 from vivek-cumulus/bgp_link_bandwidth_unequal_cost_multipath
...
Unequal cost multipath (a.ka. weighted ECMP) with BGP link-bandwidth
2020-04-05 11:41:42 -07:00
reformat
787e762445
tests: Run python formatter (black) for topotests
...
Mostly ' => ", whitespace changes.
Using https://github.com/psf/black
Signed-off-by: reformat <reformat@nobody.nobody>
2020-04-03 19:41:28 +03:00
Donald Sharp
ca8e13e2f3
tests: topotests fixup for weight display
...
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-03-30 20:17:48 -07:00
lynne
a73e9e05b6
tests: Fixing test for LDP
...
LDP now advertises routes it learns over an interface not configured
with LDP. If the route, which is learned over a non-LDP configured
interface, has no other NHs learned over an interface running LDP,
the router will act as a LDP egress router.
Modifying ldp-topo1/r1/ip_mpls_route.ref to include an extra newline.
Without this newline, the ldp-topo1 was failing.
Signed-off-by: Lynne Morrison <lynne@voltanet.io>
Signed-off-by: Karen Schoener <karen@voltanet.io>
2020-03-20 17:11:33 -04:00
Karen Schoener
b290da1d44
tests: Fix LDP topotest to validate MPLS LDP CLI output
...
Fixing existing ldp-topol test to validate MPLS LDP CLI output.
Signed-off-by: Karen Schoener <karen@voltanet.io>
2020-02-10 08:39:06 -05:00
Renato Westphal
e29f8d0db3
tests: remove topotest compatibility with older ldpd versions
...
Now that topotest was integrated into the FRR repository, we
don't need to worry anymore about creating tests that work across
different FRR versions. The topotests present on any branch need
to be compatible only with the FRR daemons from that same branch.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2019-09-06 20:58:09 -03:00
Renato Westphal
a971aeb68e
zebra: improve the output of "show mpls table"
...
Use the table generator to adjust the columns width according to
the table's content.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2019-09-06 20:54:59 -03:00
Rafael Zalamena
edc7a5036c
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>
2018-11-27 20:22:14 -05:00
Christian Franke
3a103f9a46
ldp-topo1: fix parsing for iproute from Ubuntu 18.04
...
Signed-off-by: Christian Franke <nobody@nowhere.ws>
2018-11-27 20:22:14 -05:00
Lou Berger
2b0e32967c
*: convert startup logs to use per node directories also have startup and running log files match
...
Signed-off-by: Lou Berger <lberger@labn.net>
2018-11-27 20:22:14 -05:00
Martin Winter
d01e89f168
ldp-topo1: Support implicit-null and old format on "show_mpls_table"
...
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:13 -05:00
Martin Winter
dd3ddc0663
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>
2018-11-27 20:22:12 -05:00
Renato Westphal
13e8bc063f
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>
2018-11-27 20:22:12 -05:00
Martin Winter
8e957dbb04
multiple_topos: Don't report about StdErr Output if there is no output
...
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:12 -05:00
Martin Winter
be7286cc82
ldp-topo1: Use 'label implicit-null' for implicit labels
...
Signed-off-by: Martin Winter <mwinter@netdef.org>
2018-11-27 20:22:12 -05:00
Martin Winter
6c97c0cbf2
ldp-topo1: Make the implicit label optional to pass old frr code as well
...
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:12 -05:00
Renato Westphal
fa05076643
ldp-topo1: sync with PR#710 in FRR
...
Now zebra is adding the ldpd implicit-null labels to the RIB as well. We
don't want to hide them in the "show ip route" commands because knowing
that a route is associated with an implicit-null label is an useful
piece of information, specially when troubleshooting L2/L3 VPNs.
Note: preserve the original output for cli version 1 (stable/2.0).
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Renato Westphal
0e5ae9cc1d
ldp-topo1: add some debug commands to facilitate troubleshooting
...
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Martin Winter
17070436a3
lib: cleanup diff text output formatting issue and move to library
...
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Martin Winter
7e7fc73b49
(all tests): Add extra check to make sure daemons are still running after each essential stage.
...
If daemon crashed at a later stage (not startup), then the test scripts didn't properly detect it and report unpredictable errors. This will properly log the daemon crashes
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Martin Winter
faf94e5a3a
ldp-topo1: Adjust to accept new format in "show ip route" as introduced with PR 495 (extra comma)
...
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Martin Winter
50c40bdebb
Fix memory leak detection and reporting which accidentally was dropped a month ago
...
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Donald Sharp
b2764f904e
Spell Verifying correctly
...
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-11-27 20:22:11 -05:00
Martin Winter
3eaafbd95d
LDP-Topo1: Update test to accept new format of LDP output
...
* Added test to check for version
* Adopted all tests to verify against the correct version of output
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Martin Winter
ff0d89dcfd
ldp-topo1: Fix ordering of reference output to check against
...
Ordering of output is now done by LDP and should be consistent
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Martin Winter
37c4800c44
ldp-topo1: Delete accidentally include tar file
...
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Martin Winter
99561211e1
Added optional output for memleaks at the end of test. Enable them by setting the environment variable TOPOTESTS_CHECK_STDERR to some value
...
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Martin Winter
594b1259f9
Move common function and class to topotest library
...
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-11-27 20:22:11 -05:00
Martin Winter
f03e38f397
ldp-topo1: Add new LDP Topology Test
2018-11-27 20:22:11 -05:00