diff options
| author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2022-03-23 13:44:08 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-23 13:44:08 -0500 |
| commit | 627fa28a42a02ba5834341db64aa27d5bf033e5b (patch) | |
| tree | 1cb2e175b56c5de606ea0cdb605232201d871558 | |
| parent | c4cb7b1172259bccde4dc4f3c49ac34a11bb609f (diff) | |
| parent | 3649d8f86c14923e9799940bdf3324ec1ba021ea (diff) | |
Merge pull request #10851 from mobash-rasool/fixes2
tests: Add the show database for ospfv3 before checking for ospf route
| -rw-r--r-- | tests/topotests/ospfv3_basic_functionality/test_ospfv3_asbr_summary_topo1.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/topotests/ospfv3_basic_functionality/test_ospfv3_asbr_summary_topo1.py b/tests/topotests/ospfv3_basic_functionality/test_ospfv3_asbr_summary_topo1.py index 3ec31f3fa8..36cde06c3e 100644 --- a/tests/topotests/ospfv3_basic_functionality/test_ospfv3_asbr_summary_topo1.py +++ b/tests/topotests/ospfv3_basic_functionality/test_ospfv3_asbr_summary_topo1.py @@ -2102,6 +2102,14 @@ def test_ospfv3_type5_summary_tc46_p0(request): ), "Testcase {} : Failed" "Error: Summary missing in OSPF DB".format(tc_name) step("Verify that originally advertised routes are withdraw from there" " peer.") + output = tgen.gears["r0"].vtysh_cmd( + "show ipv6 ospf6 database as-external json", isjson=True + ) + + output = tgen.gears["r1"].vtysh_cmd( + "show ipv6 ospf6 database as-external json", isjson=True + ) + input_dict = { "r0": {"static_routes": [{"network": NETWORK["ipv6"], "next_hop": "blackhole"}]} } @@ -2113,14 +2121,6 @@ def test_ospfv3_type5_summary_tc46_p0(request): tc_name, result ) - output = tgen.gears["r0"].vtysh_cmd( - "show ipv6 ospf6 database as-external json", isjson=True - ) - - output = tgen.gears["r1"].vtysh_cmd( - "show ipv6 ospf6 database as-external json", isjson=True - ) - result = verify_rib( tgen, "ipv6", dut, input_dict, protocol=protocol, expected=False ) |
