summaryrefslogtreecommitdiffhomepage
path: root/test/lib
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-03-16 16:31:14 +0900
committerIWASE Yusuke <iwase.yusuke0@gmail.com>2017-03-16 16:31:14 +0900
commita7932d708921c5b2ed4f3fa7ce608a1449146048 (patch)
treeced446d1966c872154d5235dd1bd927e547f4613 /test/lib
parentecc9b5631eb68a5148affce56765fe661bf1f2f8 (diff)
test/lib/quagga: Avoid ambiguous command "en"
With the newer version of Quagga, "en" command will be regarded as an "Ambiguous command", because there are two commands "enable" and "end". This patch replaces "en" command with "enable" command, and fixes this problem. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/quagga.py2
1 files changed, 1 insertions, 1 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)