summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--test/lib/quagga.py2
-rw-r--r--test/scenario_test/zapi_v3_test.py8
2 files changed, 5 insertions, 5 deletions
diff --git a/test/lib/quagga.py b/test/lib/quagga.py
index f0034459..897648ae 100644
--- a/test/lib/quagga.py
+++ b/test/lib/quagga.py
@@ -246,7 +246,7 @@ class QuaggaBGPContainer(BGPContainer):
cmd = [cmd]
cmd = ' '.join("-c '{0}'".format(c) for c in cmd)
if config:
- return self.local("vtysh -d bgpd -c 'en' -c 'conf t' -c 'router bgp {0}' {1}".format(self.asn, cmd), capture=True)
+ return self.local("vtysh -d bgpd -c 'enable' -c 'conf t' -c 'router bgp {0}' {1}".format(self.asn, cmd), capture=True)
else:
return self.local("vtysh -d bgpd {0}".format(cmd), capture=True)
diff --git a/test/scenario_test/zapi_v3_test.py b/test/scenario_test/zapi_v3_test.py
index 3c35903c..09c73329 100644
--- a/test/scenario_test/zapi_v3_test.py
+++ b/test/scenario_test/zapi_v3_test.py
@@ -70,10 +70,10 @@ class GoBGPTestBase(unittest.TestCase):
self.g2.local('ip netns exec ns01 ip li set up dev lo')
self.g2.local('ip netns exec ns02 ip li set up dev lo')
- self.g1.local("vtysh -c 'en' -c 'conf t' -c 'vrf 1 netns ns01'")
- self.g1.local("vtysh -c 'en' -c 'conf t' -c 'vrf 2 netns ns02'")
- self.g2.local("vtysh -c 'en' -c 'conf t' -c 'vrf 1 netns ns01'")
- self.g2.local("vtysh -c 'en' -c 'conf t' -c 'vrf 2 netns ns02'")
+ self.g1.local("vtysh -c 'enable' -c 'conf t' -c 'vrf 1 netns ns01'")
+ self.g1.local("vtysh -c 'enable' -c 'conf t' -c 'vrf 2 netns ns02'")
+ self.g2.local("vtysh -c 'enable' -c 'conf t' -c 'vrf 1 netns ns01'")
+ self.g2.local("vtysh -c 'enable' -c 'conf t' -c 'vrf 2 netns ns02'")
self.g1.local("gobgp vrf add vrf01 id 1 rd 1:1 rt both 1:1")
self.g1.local("gobgp vrf add vrf02 id 2 rd 2:2 rt both 2:2")