summaryrefslogtreecommitdiff
path: root/tests/topotests/ldp-sync-ospf-topo1/test_ldp_sync_ospf_topo1.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/topotests/ldp-sync-ospf-topo1/test_ldp_sync_ospf_topo1.py')
-rw-r--r--tests/topotests/ldp-sync-ospf-topo1/test_ldp_sync_ospf_topo1.py30
1 files changed, 24 insertions, 6 deletions
diff --git a/tests/topotests/ldp-sync-ospf-topo1/test_ldp_sync_ospf_topo1.py b/tests/topotests/ldp-sync-ospf-topo1/test_ldp_sync_ospf_topo1.py
index 9694fa982f..20d7f46d4c 100644
--- a/tests/topotests/ldp-sync-ospf-topo1/test_ldp_sync_ospf_topo1.py
+++ b/tests/topotests/ldp-sync-ospf-topo1/test_ldp_sync_ospf_topo1.py
@@ -264,6 +264,7 @@ def test_ldp_pseudowires():
rname, "show l2vpn atom vc json", "show_l2vpn_vc.ref"
)
+
def test_ldp_igp_sync():
logger.info("Test: verify LDP igp-sync")
tgen = get_topogen()
@@ -277,6 +278,7 @@ def test_ldp_igp_sync():
rname, "show mpls ldp igp-sync json", "show_ldp_igp_sync.ref"
)
+
def test_ospf_ldp_sync():
logger.info("Test: verify OSPF igp-sync")
tgen = get_topogen()
@@ -317,19 +319,26 @@ def test_r1_eth1_shutdown():
for rname in ["r1", "r2", "r3"]:
router_compare_json_output(
- rname, "show mpls ldp igp-sync json", "show_ldp_igp_sync_r1_eth1_shutdown.ref"
+ rname,
+ "show mpls ldp igp-sync json",
+ "show_ldp_igp_sync_r1_eth1_shutdown.ref",
)
for rname in ["r1", "r2", "r3"]:
router_compare_json_output(
- rname, "show ip ospf mpls ldp-sync json", "show_ospf_ldp_sync_r1_eth1_shutdown.ref"
+ rname,
+ "show ip ospf mpls ldp-sync json",
+ "show_ospf_ldp_sync_r1_eth1_shutdown.ref",
)
for rname in ["r1", "r2", "r3"]:
router_compare_json_output(
- rname, "show ip ospf interface json", "show_ip_ospf_interface_r1_eth1_shutdown.ref"
+ rname,
+ "show ip ospf interface json",
+ "show_ip_ospf_interface_r1_eth1_shutdown.ref",
)
+
def test_r1_eth1_no_shutdown():
logger.info("Test: verify behaviour after r1-eth1 is no shutdown")
tgen = get_topogen()
@@ -358,6 +367,7 @@ def test_r1_eth1_no_shutdown():
rname, "show ip ospf interface json", "show_ip_ospf_interface.ref"
)
+
def test_r2_eth1_shutdown():
logger.info("Test: verify behaviour after r2-eth1 is shutdown")
tgen = get_topogen()
@@ -373,19 +383,26 @@ def test_r2_eth1_shutdown():
for rname in ["r1", "r2", "r3"]:
router_compare_json_output(
- rname, "show mpls ldp igp-sync json", "show_ldp_igp_sync_r1_eth1_shutdown.ref"
+ rname,
+ "show mpls ldp igp-sync json",
+ "show_ldp_igp_sync_r1_eth1_shutdown.ref",
)
for rname in ["r1", "r2", "r3"]:
router_compare_json_output(
- rname, "show ip ospf mpls ldp-sync json", "show_ospf_ldp_sync_r2_eth1_shutdown.ref"
+ rname,
+ "show ip ospf mpls ldp-sync json",
+ "show_ospf_ldp_sync_r2_eth1_shutdown.ref",
)
for rname in ["r1", "r2", "r3"]:
router_compare_json_output(
- rname, "show ip ospf interface json", "show_ip_ospf_interface_r2_eth1_shutdown.ref"
+ rname,
+ "show ip ospf interface json",
+ "show_ip_ospf_interface_r2_eth1_shutdown.ref",
)
+
def test_r2_eth1_no_shutdown():
logger.info("Test: verify behaviour after r2-eth1 is no shutdown")
tgen = get_topogen()
@@ -414,6 +431,7 @@ def test_r2_eth1_no_shutdown():
rname, "show ip ospf interface json", "show_ip_ospf_interface.ref"
)
+
# Memory leak test template
def test_memory_leak():
"Run the memory leak test and report results."