]> git.proxmox.com Git - mirror_frr.git/blobdiff - tests/topotests/bgp_maximum_prefix_invalid_update/test_bgp_maximum_prefix_invalid_update.py
tests: Remove sleep from test_bgp_maximum_prefix_invalid_update
[mirror_frr.git] / tests / topotests / bgp_maximum_prefix_invalid_update / test_bgp_maximum_prefix_invalid_update.py
index 69b8c7ca5ed55b83d5d8a6d9780504b8ad5fd5b6..e7f4f40f061e353cf75b957ccb8e25adbbc12390 100644 (file)
@@ -89,9 +89,8 @@ def test_bgp_maximum_prefix_invalid():
     def _bgp_converge(router):
         while True:
             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
-            time.sleep(1)
 
     def _bgp_parsing_nlri(router):
         cmd_max_exceeded = 'grep "%MAXPFXEXCEED: No. of IPv4 Unicast prefix received" bgpd.log'