mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-25 02:38:41 +00:00
topotests: bmp, test that loc-rib peer up message is sent
Add a test at startup to ensure that peer up message for loc-rib is correctly set. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
013b9d4c19
commit
f921a8d09a
@ -216,11 +216,16 @@ def bmp_check_for_peer_message(
|
|||||||
]
|
]
|
||||||
|
|
||||||
# get the list of pairs (prefix, policy, seq) for the given message type
|
# get the list of pairs (prefix, policy, seq) for the given message type
|
||||||
peers = [
|
peers = []
|
||||||
m["peer_ip"]
|
for m in messages:
|
||||||
for m in messages
|
if (
|
||||||
if "peer_ip" in m.keys() and m["bmp_log_type"] == bmp_log_type
|
"peer_ip" in m.keys()
|
||||||
]
|
and m["peer_ip"] != "0.0.0.0"
|
||||||
|
and m["bmp_log_type"] == bmp_log_type
|
||||||
|
):
|
||||||
|
peers.append(m["peer_ip"])
|
||||||
|
elif m["policy"] == "loc-rib" and m["bmp_log_type"] == bmp_log_type:
|
||||||
|
peers.append("0.0.0.0")
|
||||||
|
|
||||||
# check for prefixes
|
# check for prefixes
|
||||||
for ep in expected_peers:
|
for ep in expected_peers:
|
||||||
|
@ -192,7 +192,7 @@ def test_peer_up():
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
tgen = get_topogen()
|
tgen = get_topogen()
|
||||||
peers = ["192.168.0.2", "192:168::2"]
|
peers = ["192.168.0.2", "192:168::2", "0.0.0.0"]
|
||||||
|
|
||||||
logger.info("checking for BMP peers up messages")
|
logger.info("checking for BMP peers up messages")
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ def test_peer_up():
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
tgen = get_topogen()
|
tgen = get_topogen()
|
||||||
peers = ["192.168.0.2", "192:168::2"]
|
peers = ["192.168.0.2", "192:168::2", "0.0.0.0"]
|
||||||
|
|
||||||
logger.info("checking for BMP peers up messages")
|
logger.info("checking for BMP peers up messages")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user