]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: Wait for bgp convergence *after* we re-add the interfaces 7842/head
authorDonald Sharp <sharpd@nvidia.com>
Fri, 8 Jan 2021 21:52:41 +0000 (16:52 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Sat, 9 Jan 2021 01:58:04 +0000 (20:58 -0500)
In test_bgp_mutli_vrf_topo2.py it's clear that we remove then
re-add the vrf interfaces.  Then the test was immediately
checking to ensure that the routes were available.

BGP needs time to reconverge.  Let's ensure that first.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
tests/topotests/bgp_multi_vrf_topo2/test_bgp_multi_vrf_topo2.py

index d34446e2ee3194f09aabaa55450eabd47c6e324e..19a9140c138f80bf0bb28fc66e8d4efffa1bb502 100644 (file)
@@ -2687,6 +2687,9 @@ def test_delete_and_re_add_vrf_p1(request):
             }
         }
 
+        result = verify_bgp_convergence(tgen, topo)
+        assert result is True, "Testcase {}: Failed\n Error {}".format(tc_name, result)
+
         result = verify_bgp_rib(tgen, addr_type, dut, input_dict_2)
         assert result is True, "Testcase {} :Failed \n Error {}".format(tc_name, result)