]> git.proxmox.com Git - mirror_frr.git/commitdiff
ldp-topo1: Use 'label implicit-null' for implicit labels
authorMartin Winter <mwinter@netdef.org>
Wed, 9 Aug 2017 19:23:54 +0000 (12:23 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 01:22:12 +0000 (20:22 -0500)
Signed-off-by: Martin Winter <mwinter@netdef.org>
tests/topotests/ldp-topo1/r1/show_ipv4_route.ref
tests/topotests/ldp-topo1/r2/show_ipv4_route.ref
tests/topotests/ldp-topo1/r3/show_ipv4_route.ref
tests/topotests/ldp-topo1/r4/show_ipv4_route.ref
tests/topotests/ldp-topo1/test_ldp_topo1.py

index 73c3fd9d209cfdeca462a90e2bd055801c99594c..7819d303d13b27affc5e398d8fe298a406425bb6 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, label y
+O>* 2.2.2.2/32 [110/10] via 10.0.1.2, r1-eth0, label implicit-null
 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, label y
-O>* 10.0.3.0/24 [110/20] via 10.0.1.2, r1-eth0, label y
+O>* 10.0.2.0/24 [110/20] via 10.0.1.2, r1-eth0, label implicit-null
+O>* 10.0.3.0/24 [110/20] via 10.0.1.2, r1-eth0, label implicit-null
index 9a624378265048f251212c10eeee95631c077a48..2a97757757f2c5fbcdb78341b0cdcbb791d131ee 100644 (file)
@@ -1,7 +1,7 @@
-O>* 1.1.1.1/32 [110/10] via 10.0.1.1, r2-eth0, label y
+O>* 1.1.1.1/32 [110/10] via 10.0.1.1, r2-eth0, label implicit-null
 O   2.2.2.2/32 [110/0] is directly connected, lo
-O>* 3.3.3.3/32 [110/10] via 10.0.2.3, r2-eth1, label y
-O>* 4.4.4.4/32 [110/10] via 10.0.2.4, r2-eth1, label y
+O>* 3.3.3.3/32 [110/10] via 10.0.2.3, r2-eth1, label implicit-null
+O>* 4.4.4.4/32 [110/10] via 10.0.2.4, r2-eth1, label implicit-null
 O   10.0.1.0/24 [110/10] is directly connected, r2-eth0
 O   10.0.2.0/24 [110/10] is directly connected, r2-eth1
 O   10.0.3.0/24 [110/10] is directly connected, r2-eth2
index 41709e581525fb9c34f756e113cac27e20f8c2db..645224a97b0a337cf634aa58036bb992fc0951fa 100644 (file)
@@ -1,7 +1,7 @@
 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, label y
+O>* 2.2.2.2/32 [110/10] via 10.0.2.2, r3-eth0, label implicit-null
 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, label y
-O>* 10.0.1.0/24 [110/20] via 10.0.2.2, r3-eth0, label y
+O>* 4.4.4.4/32 [110/10] via 10.0.2.4, r3-eth0, label implicit-null
+O>* 10.0.1.0/24 [110/20] via 10.0.2.2, r3-eth0, label implicit-null
 O   10.0.2.0/24 [110/10] is directly connected, r3-eth0
 O   10.0.3.0/24 [110/10] is directly connected, r3-eth1
index ab0db90a853bff219934b92f6732cd590d803db4..321828bfae6da68853a9172d22fc48ee1081c9c4 100644 (file)
@@ -1,7 +1,7 @@
 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, label y
-O>* 3.3.3.3/32 [110/10] via 10.0.2.3, r4-eth0, label y
+O>* 2.2.2.2/32 [110/10] via 10.0.2.2, r4-eth0, label implicit-null
+O>* 3.3.3.3/32 [110/10] via 10.0.2.3, r4-eth0, label implicit-null
 O   4.4.4.4/32 [110/0] is directly connected, lo
-O>* 10.0.1.0/24 [110/20] via 10.0.2.2, r4-eth0, label y
+O>* 10.0.1.0/24 [110/20] via 10.0.2.2, r4-eth0, label implicit-null
 O   10.0.2.0/24 [110/10] is directly connected, r4-eth0
-O>* 10.0.3.0/24 [110/20] via 10.0.2.2, r4-eth0, label y
+O>* 10.0.3.0/24 [110/20] via 10.0.2.2, r4-eth0, label implicit-null
index 187e6eb9f52ba7faeaf166865540d5c04ca9d92f..1cb9aa7377d6ffb98b234f7749a1ac6f9628fd23 100755 (executable)
@@ -553,11 +553,11 @@ def test_zebra_ipv4_routingTable():
             # Mask out label - all LDP labels should be >= 10 (2-digit)
             #   leaving the implicit labels unmasked
             actual = re.sub(r" label [0-9][0-9]+", " label xxx", actual)
-            #   and translating remaining implicit (single-digit) labels to label y
-            actual = re.sub(r" label [0-9]+", " label y", actual)
+            #   and translating remaining implicit (single-digit) labels to label implicit-null
+            actual = re.sub(r" label [0-9]+", " label implicit-null", actual)
             # Check if we have implicit labels - if not, then remove them from reference
-            if (not re.search(r" label y", actual)):
-               expected = re.sub(r", label y", "", expected)
+            if (not re.search(r" label implicit-null", actual)):
+                expected = re.sub(r", label implicit-null", "", expected)
 
             # now fix newlines of expected (make them all the same)
             expected = ('\n'.join(expected.splitlines()) + '\n').splitlines(1)