]> git.puffer.fish Git - matthieu/frr.git/commitdiff
Fix tests to handle new output
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 26 Apr 2017 16:15:39 +0000 (12:15 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 01:22:11 +0000 (20:22 -0500)
The show commands for bgp now have a bit more
data associated with labeled unicast routes.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
tests/topotests/all-protocol-startup/test_all_protocol_startup.py

index ca6cac4b61bc1335f92a8566212a6109bd82f2d6..4ec1bf2df7f3c79b1e6d758ee01ed2e6f895e060 100755 (executable)
@@ -542,6 +542,10 @@ def test_bgp_summary():
             # Remove Unknown Summary (all of it)
             actual = re.sub(r'Unknown Summary:', '', actual)
             actual = re.sub(r'No Unknown neighbor is configured', '', actual)
+
+            actual = re.sub(r'IPv4 labeled-unicast Summary:', '', actual)
+            actual = re.sub(r'No IPv4 labeled-unicast neighbor is configured', '', actual)
+
             # Strip empty lines
             actual = actual.lstrip()
             actual = actual.rstrip()
@@ -614,6 +618,11 @@ def test_bgp_ipv6_summary():
             # Remove Unknown Summary (all of it)
             actual = re.sub(r'Unknown Summary:', '', actual)
             actual = re.sub(r'No Unknown neighbor is configured', '', actual)
+
+            # Remove Labeled Unicast Summary (all of it)
+            actual = re.sub(r'IPv6 labeled-unicast Summary:', '', actual)
+            actual = re.sub(r'No IPv6 labeled-unicast neighbor is configured', '', actual)
+
             # Strip empty lines
             actual = actual.lstrip()
             actual = actual.rstrip()