mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-28 21:29:44 +00:00
tests: Adopt bgp_shutdown_message test to a proper encoding
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
cd9d1a366c
commit
c5aef655d8
@ -240,15 +240,10 @@ def test_bgp_shutdown_message():
|
|||||||
assertmsg = "BGP shutdown message not received on router R{}".format(rtrNum)
|
assertmsg = "BGP shutdown message not received on router R{}".format(rtrNum)
|
||||||
assert shut_message != "", assertmsg
|
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(
|
assertmsg = "Incorrect BGP shutdown message received on router R{}".format(
|
||||||
rtrNum
|
rtrNum
|
||||||
)
|
)
|
||||||
assert found == "8 bytes 41 42 43 44 61 62 63 64", assertmsg
|
assert "ABCDabcd" in shut_message, assertmsg
|
||||||
|
|
||||||
# tgen.mininet_cli()
|
# tgen.mininet_cli()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user