summaryrefslogtreecommitdiff
path: root/tests/topotests/all_protocol_startup
diff options
context:
space:
mode:
authorMartin Winter <mwinter@opensourcerouting.org>2021-09-08 22:18:52 +0200
committerMartin Winter <mwinter@opensourcerouting.org>2021-09-09 02:31:13 +0200
commit87980f1311398612f44a7a0c696ec00ff31ddaa5 (patch)
tree5dce91dceeae2ef09501422e4e176a275cb22f93 /tests/topotests/all_protocol_startup
parent930d7c492187458e7e46a1fc6074f04e9154b8fd (diff)
tests: Fix BGP check in all_protocol_startup
Fix issue of topotest failures with BGP status Connect or Idle instead of the expected Active Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Diffstat (limited to 'tests/topotests/all_protocol_startup')
-rw-r--r--tests/topotests/all_protocol_startup/test_all_protocol_startup.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/topotests/all_protocol_startup/test_all_protocol_startup.py b/tests/topotests/all_protocol_startup/test_all_protocol_startup.py
index b1203570a1..1b99fcea1f 100644
--- a/tests/topotests/all_protocol_startup/test_all_protocol_startup.py
+++ b/tests/topotests/all_protocol_startup/test_all_protocol_startup.py
@@ -932,6 +932,9 @@ def test_bgp_summary():
# Remove Unknown Summary (all of it)
actual = re.sub(r"Unknown Summary \(VRF default\):", "", actual)
actual = re.sub(r"No Unknown neighbor is configured", "", actual)
+ # Make Connect/Active/Idle the same (change them all to Active)
+ actual = re.sub(r" Connect ", " Active ", actual)
+ actual = re.sub(r" Idle ", " Active ", actual)
actual = re.sub(
r"IPv4 labeled-unicast Summary \(VRF default\):", "", actual
@@ -1089,6 +1092,9 @@ def test_bgp_ipv6_summary():
# Remove Unknown Summary (all of it)
actual = re.sub(r"Unknown Summary \(VRF default\):", "", actual)
actual = re.sub(r"No Unknown neighbor is configured", "", actual)
+ # Make Connect/Active/Idle the same (change them all to Active)
+ actual = re.sub(r" Connect ", " Active ", actual)
+ actual = re.sub(r" Idle ", " Active ", actual)
# Remove Labeled Unicast Summary (all of it)
actual = re.sub(