summaryrefslogtreecommitdiff
path: root/tests/topotests/bgp_features/test_bgp_features.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/topotests/bgp_features/test_bgp_features.py')
-rw-r--r--tests/topotests/bgp_features/test_bgp_features.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/topotests/bgp_features/test_bgp_features.py b/tests/topotests/bgp_features/test_bgp_features.py
index 00f5d1fcb1..ab44ba3c83 100644
--- a/tests/topotests/bgp_features/test_bgp_features.py
+++ b/tests/topotests/bgp_features/test_bgp_features.py
@@ -235,20 +235,15 @@ def test_bgp_shutdown_message():
logger.info("Checking BGP shutdown received on router r{}".format(rtrNum))
shut_message = tgen.net["r{}".format(rtrNum)].cmd(
- 'tail bgpd.log | grep "NOTIFICATION.*Cease/Administratively Shutdown"'
+ 'tail bgpd.log | grep "NOTIFICATION.*Cease/Administrative Shutdown"'
)
assertmsg = "BGP shutdown message not received on router R{}".format(rtrNum)
assert shut_message != "", assertmsg
- m = re.search(".*([0-9]+ bytes[ 0-9a-fA-F]+)", shut_message)
- if m:
- found = m.group(1)
- else:
- found = ""
assertmsg = "Incorrect BGP shutdown message received on router R{}".format(
rtrNum
)
- assert found == "8 bytes 41 42 43 44 61 62 63 64", assertmsg
+ assert "ABCDabcd" in shut_message, assertmsg
# tgen.mininet_cli()