mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 13:06:51 +00:00
tests: Remove sleep from test_bgp_maximum_prefix_invalid_update
Sleep is not needed here while we fail instantly if maximum is reached. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
c0438a0e02
commit
65f13b3292
@ -89,9 +89,8 @@ def test_bgp_maximum_prefix_invalid():
|
|||||||
def _bgp_converge(router):
|
def _bgp_converge(router):
|
||||||
while True:
|
while True:
|
||||||
output = json.loads(tgen.gears[router].vtysh_cmd("show ip bgp neighbor 192.168.255.1 json"))
|
output = json.loads(tgen.gears[router].vtysh_cmd("show ip bgp neighbor 192.168.255.1 json"))
|
||||||
if output['192.168.255.1']['connectionsEstablished'] > 3:
|
if output['192.168.255.1']['connectionsEstablished'] > 0:
|
||||||
return True
|
return True
|
||||||
time.sleep(1)
|
|
||||||
|
|
||||||
def _bgp_parsing_nlri(router):
|
def _bgp_parsing_nlri(router):
|
||||||
cmd_max_exceeded = 'grep "%MAXPFXEXCEED: No. of IPv4 Unicast prefix received" bgpd.log'
|
cmd_max_exceeded = 'grep "%MAXPFXEXCEED: No. of IPv4 Unicast prefix received" bgpd.log'
|
||||||
|
Loading…
Reference in New Issue
Block a user