mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 13:06:51 +00:00
tests: bgp_srv6l3vpn_to_bgp_vrf3 needs more time
The test starts with checking for rib insertion of routes that may take some time after system startup to come up. Under heavy load this may cause this test to just fail. Give it more time. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
b46d3a1a42
commit
414bc26bc0
@ -95,7 +95,7 @@ def open_json_file(filename):
|
|||||||
assert False, "Could not read file {}".format(filename)
|
assert False, "Could not read file {}".format(filename)
|
||||||
|
|
||||||
|
|
||||||
def check_rib(name, cmd, expected_file):
|
def check_rib(name, cmd, expected_file, count=30, wait=0.5):
|
||||||
def _check(name, dest_addr, match):
|
def _check(name, dest_addr, match):
|
||||||
logger.info("polling")
|
logger.info("polling")
|
||||||
tgen = get_topogen()
|
tgen = get_topogen()
|
||||||
@ -107,12 +107,12 @@ def check_rib(name, cmd, expected_file):
|
|||||||
logger.info('[+] check {} "{}" {}'.format(name, cmd, expected_file))
|
logger.info('[+] check {} "{}" {}'.format(name, cmd, expected_file))
|
||||||
tgen = get_topogen()
|
tgen = get_topogen()
|
||||||
func = functools.partial(_check, name, cmd, expected_file)
|
func = functools.partial(_check, name, cmd, expected_file)
|
||||||
_, result = topotest.run_and_expect(func, None, count=10, wait=0.5)
|
_, result = topotest.run_and_expect(func, None, count, wait)
|
||||||
assert result is None, "Failed"
|
assert result is None, "Failed"
|
||||||
|
|
||||||
|
|
||||||
def test_rib():
|
def test_rib():
|
||||||
check_rib("r1", "show bgp ipv4 vpn json", "r1/vpnv4_rib.json")
|
check_rib("r1", "show bgp ipv4 vpn json", "r1/vpnv4_rib.json", 120, 1)
|
||||||
check_rib("r2", "show bgp ipv4 vpn json", "r2/vpnv4_rib.json")
|
check_rib("r2", "show bgp ipv4 vpn json", "r2/vpnv4_rib.json")
|
||||||
check_rib("r1", "show ip route vrf vrf10 json", "r1/vrf10v4_rib.json")
|
check_rib("r1", "show ip route vrf vrf10 json", "r1/vrf10v4_rib.json")
|
||||||
check_rib("r1", "show ip route vrf vrf20 json", "r1/vrf20v4_rib.json")
|
check_rib("r1", "show ip route vrf vrf20 json", "r1/vrf20v4_rib.json")
|
||||||
|
Loading…
Reference in New Issue
Block a user