]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: Add the show database for ospfv3 before checking for ospf route 10851/head
authorMobashshera Rasool <mrasool@vmware.com>
Wed, 23 Mar 2022 11:08:14 +0000 (04:08 -0700)
committerMobashshera Rasool <mrasool@vmware.com>
Wed, 23 Mar 2022 11:08:14 +0000 (04:08 -0700)
Moved the database dump for ospfv3 before ospf route check.

Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
tests/topotests/ospfv3_basic_functionality/test_ospfv3_asbr_summary_topo1.py

index 3ec31f3fa853bdf17c6620bb68da4abcf2533ac8..36cde06c3e21cc56710bffe0cbf035bf74af7fd7 100644 (file)
@@ -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
     )