]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgp_vrf_netns: swap the order of netns destruction
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 19 Jul 2018 12:55:17 +0000 (14:55 +0200)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 01:22:14 +0000 (20:22 -0500)
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
tests/topotests/bgp_vrf_netns/test_bgp_vrf_netns_topo.py

index 780a62e2e93f36ad875887c8f6a7580cfa7af6c4..5ee49503d96c61c3694466d68cc4337503ae2b10 100755 (executable)
@@ -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'))