summaryrefslogtreecommitdiffstats
path: root/tests/topotests/ospf_netns_vrf/test_ospf_netns_vrf.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/topotests/ospf_netns_vrf/test_ospf_netns_vrf.py')
-rw-r--r--tests/topotests/ospf_netns_vrf/test_ospf_netns_vrf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/topotests/ospf_netns_vrf/test_ospf_netns_vrf.py b/tests/topotests/ospf_netns_vrf/test_ospf_netns_vrf.py
index 4fc93b58..718445f0 100644
--- a/tests/topotests/ospf_netns_vrf/test_ospf_netns_vrf.py
+++ b/tests/topotests/ospf_netns_vrf/test_ospf_netns_vrf.py
@@ -104,13 +104,13 @@ def setup_module(mod):
tgen.set_error("unsupported version")
-def teardown_module(mod):
+def teardown_module():
"Teardown the pytest environment"
tgen = get_topogen()
# Move interfaces out of vrf namespace and delete the namespace
router_list = tgen.routers()
- for rname, router in router_list.items():
+ for rname, _ in router_list.items():
tgen.net[rname].reset_intf_netns(rname + "-eth0")
tgen.net[rname].reset_intf_netns(rname + "-eth1")
tgen.net[rname].delete_netns(rname + "-ospf-cust1")