summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2018-07-19 14:55:17 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-11-27 20:22:14 -0500
commit4b1f7a62dbf3f88b40bb6b836aeacf51e989623c (patch)
tree190d6fb485d36178808dc69157ad013a5ffe84ec
parent2c805e6cf6be89a94acc596c69c34dfe025d0503 (diff)
bgp_vrf_netns: swap the order of netns destruction
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
-rwxr-xr-xtests/topotests/bgp_vrf_netns/test_bgp_vrf_netns_topo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/topotests/bgp_vrf_netns/test_bgp_vrf_netns_topo.py b/tests/topotests/bgp_vrf_netns/test_bgp_vrf_netns_topo.py
index 780a62e2e9..5ee49503d9 100755
--- a/tests/topotests/bgp_vrf_netns/test_bgp_vrf_netns_topo.py
+++ b/tests/topotests/bgp_vrf_netns/test_bgp_vrf_netns_topo.py
@@ -142,8 +142,8 @@ def teardown_module(module):
tgen = get_topogen()
# move back r1-eth0 to default VRF
# delete VRF r1-cust1
- cmds = ['ip netns delete {0}-cust1',
- 'ip netns exec {0}-cust1 ip link set {0}-eth0 netns 1']
+ cmds = ['ip netns exec {0}-cust1 ip link set {0}-eth0 netns 1',
+ 'ip netns delete {0}-cust1']
for cmd in cmds:
tgen.net['r1'].cmd(cmd.format('r1'))