]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf-topo1-vrf: replace link_enable api with zebra topotest api
authorPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 24 Jul 2018 16:21:14 +0000 (18:21 +0200)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 01:22:14 +0000 (20:22 -0500)
Because on some platforms like i386, 'ip netns ' commands are unstable,
then I use an other API to operate the shutdown/no shutdown operation by
using vtysh.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
tests/topotests/ospf-topo1-vrf/test_ospf_topo1_vrf.py

index 0a111504e4fae72d3983d103f9f7f0b4a6e727a4..a2220505557829e7cef4059374084b7ae1a8609a 100755 (executable)
@@ -273,7 +273,7 @@ def test_ospf_link_down():
 
     # Simulate a network down event on router3 switch3 interface.
     router3 = tgen.gears['r3']
-    router3.peer_link_enable('r3-eth0', False)
+    topotest.interface_set_status(router3, 'r3-eth0', ifaceaction=False, vrf_name='r3-cust1')
 
     # Expect convergence on all routers
     for rnum in range(1, 4):