]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ldp-topo1: Adjust to accept new format in "show ip route" as introduced with PR 495...
authorMartin Winter <mwinter@opensourcerouting.org>
Wed, 10 May 2017 16:41:53 +0000 (09:41 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 01:22:11 +0000 (20:22 -0500)
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
tests/topotests/ldp-topo1/r1/show_ipv4_route.ref
tests/topotests/ldp-topo1/r1/show_ipv4_route.ref-1
tests/topotests/ldp-topo1/r3/show_ipv4_route.ref
tests/topotests/ldp-topo1/r3/show_ipv4_route.ref-1
tests/topotests/ldp-topo1/r4/show_ipv4_route.ref
tests/topotests/ldp-topo1/r4/show_ipv4_route.ref-1
tests/topotests/ldp-topo1/test_ldp_topo1.py

index e72a20bac03e3f32f5c29aa955c4647364831f4e..ff99ff9866ed18bd61bac286c06b2c08003621d2 100644 (file)
@@ -1,7 +1,7 @@
 O   1.1.1.1/32 [110/0] is directly connected, lo
 O>* 2.2.2.2/32 [110/10] via 10.0.1.2, r1-eth0
-O>* 3.3.3.3/32 [110/20] via 10.0.1.2, r1-eth0 label xxx
-O>* 4.4.4.4/32 [110/20] via 10.0.1.2, r1-eth0 label xxx
+O>* 3.3.3.3/32 [110/20] via 10.0.1.2, r1-eth0, label xxx
+O>* 4.4.4.4/32 [110/20] via 10.0.1.2, r1-eth0, label xxx
 O   10.0.1.0/24 [110/10] is directly connected, r1-eth0
 O>* 10.0.2.0/24 [110/20] via 10.0.1.2, r1-eth0
 O>* 10.0.3.0/24 [110/20] via 10.0.1.2, r1-eth0
index e72a20bac03e3f32f5c29aa955c4647364831f4e..ff99ff9866ed18bd61bac286c06b2c08003621d2 100644 (file)
@@ -1,7 +1,7 @@
 O   1.1.1.1/32 [110/0] is directly connected, lo
 O>* 2.2.2.2/32 [110/10] via 10.0.1.2, r1-eth0
-O>* 3.3.3.3/32 [110/20] via 10.0.1.2, r1-eth0 label xxx
-O>* 4.4.4.4/32 [110/20] via 10.0.1.2, r1-eth0 label xxx
+O>* 3.3.3.3/32 [110/20] via 10.0.1.2, r1-eth0, label xxx
+O>* 4.4.4.4/32 [110/20] via 10.0.1.2, r1-eth0, label xxx
 O   10.0.1.0/24 [110/10] is directly connected, r1-eth0
 O>* 10.0.2.0/24 [110/20] via 10.0.1.2, r1-eth0
 O>* 10.0.3.0/24 [110/20] via 10.0.1.2, r1-eth0
index f6e6199310b0154567c51437630380feab786cb8..c8a29400b230bc0eb30da82ef259badfa7ce8567 100644 (file)
@@ -1,4 +1,4 @@
-O>* 1.1.1.1/32 [110/20] via 10.0.2.2, r3-eth0 label xxx
+O>* 1.1.1.1/32 [110/20] via 10.0.2.2, r3-eth0, label xxx
 O>* 2.2.2.2/32 [110/10] via 10.0.2.2, r3-eth0
 O   3.3.3.3/32 [110/0] is directly connected, lo
 O>* 4.4.4.4/32 [110/10] via 10.0.2.4, r3-eth0
index f6e6199310b0154567c51437630380feab786cb8..c8a29400b230bc0eb30da82ef259badfa7ce8567 100644 (file)
@@ -1,4 +1,4 @@
-O>* 1.1.1.1/32 [110/20] via 10.0.2.2, r3-eth0 label xxx
+O>* 1.1.1.1/32 [110/20] via 10.0.2.2, r3-eth0, label xxx
 O>* 2.2.2.2/32 [110/10] via 10.0.2.2, r3-eth0
 O   3.3.3.3/32 [110/0] is directly connected, lo
 O>* 4.4.4.4/32 [110/10] via 10.0.2.4, r3-eth0
index bcef173a64e7b2c87a533607633acea63067f565..df2a2b585fc7212bb1124c0d147bfc8e80e34b5f 100644 (file)
@@ -1,4 +1,4 @@
-O>* 1.1.1.1/32 [110/20] via 10.0.2.2, r4-eth0 label xxx
+O>* 1.1.1.1/32 [110/20] via 10.0.2.2, r4-eth0, label xxx
 O>* 2.2.2.2/32 [110/10] via 10.0.2.2, r4-eth0
 O>* 3.3.3.3/32 [110/10] via 10.0.2.3, r4-eth0
 O   4.4.4.4/32 [110/0] is directly connected, lo
index bcef173a64e7b2c87a533607633acea63067f565..df2a2b585fc7212bb1124c0d147bfc8e80e34b5f 100644 (file)
@@ -1,4 +1,4 @@
-O>* 1.1.1.1/32 [110/20] via 10.0.2.2, r4-eth0 label xxx
+O>* 1.1.1.1/32 [110/20] via 10.0.2.2, r4-eth0, label xxx
 O>* 2.2.2.2/32 [110/10] via 10.0.2.2, r4-eth0
 O>* 3.3.3.3/32 [110/10] via 10.0.2.3, r4-eth0
 O   4.4.4.4/32 [110/0] is directly connected, lo
index 9d650e5ceeee07ab3b75b5c869993eb2f8147d63..77857ad9250da5a74287f801adf04ad98fef2780 100755 (executable)
@@ -529,6 +529,8 @@ def test_zebra_ipv4_routingTable():
             actual = re.sub(r", [0-2][0-9]:[0-5][0-9]:[0-5][0-9]", "", actual)
             # Mask out label
             actual = re.sub(r" label [0-9]+", " label xxx", actual)
+            # Add missing comma before label (for old version)
+            actual = re.sub(r"([0-9]) label xxx", r"\1, label xxx", actual)
 
             # Fix newlines (make them all the same)
             actual = ('\n'.join(actual.splitlines()) + '\n').splitlines(1)