diff options
Diffstat (limited to 'tests/topotests/ospf_basic_functionality/test_ospf_ecmp.py')
| -rw-r--r-- | tests/topotests/ospf_basic_functionality/test_ospf_ecmp.py | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/tests/topotests/ospf_basic_functionality/test_ospf_ecmp.py b/tests/topotests/ospf_basic_functionality/test_ospf_ecmp.py index 51be52bd26..30f50a78c4 100644 --- a/tests/topotests/ospf_basic_functionality/test_ospf_ecmp.py +++ b/tests/topotests/ospf_basic_functionality/test_ospf_ecmp.py @@ -352,7 +352,16 @@ def test_ospf_ecmp_tc16_p0(request): ) protocol = "ospf" - result = verify_rib(tgen, "ipv4", dut, input_dict, protocol=protocol, next_hop=nh) + result = verify_rib( + tgen, + "ipv4", + dut, + input_dict, + protocol=protocol, + next_hop=nh, + attempts=5, + expected=False, + ) assert result is not True, "Testcase {} : Failed \n Error: {}".format( tc_name, result ) @@ -435,13 +444,24 @@ def test_ospf_ecmp_tc17_p0(request): step("Verify that route is withdrawn from R2.") dut = "r1" - result = verify_ospf_rib(tgen, dut, input_dict, next_hop=nh) + result = verify_ospf_rib( + tgen, dut, input_dict, next_hop=nh, attempts=5, expected=False + ) assert result is not True, "Testcase {} : Failed \n Error: {}".format( tc_name, result ) protocol = "ospf" - result = verify_rib(tgen, "ipv4", dut, input_dict, protocol=protocol, next_hop=nh) + result = verify_rib( + tgen, + "ipv4", + dut, + input_dict, + protocol=protocol, + next_hop=nh, + attempts=5, + expected=False, + ) assert result is not True, "Testcase {} : Failed \n Error: {}".format( tc_name, result ) |
