summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2018-02-05 09:46:44 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-02-10 18:45:58 +0900
commitbd384997ac216da371a642ec96e20fd348a757c5 (patch)
tree716d60783dd77ddb800468f5fdb057f07e621b65
parentfb224e23b9b79bbebc1c500b4f51cb83bb5bd453 (diff)
lib/ovs: Fix a typo of "--may-exist" option
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/lib/ovs/vsctl.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/ryu/lib/ovs/vsctl.py b/ryu/lib/ovs/vsctl.py
index 2391c903..b18b5ef1 100644
--- a/ryu/lib/ovs/vsctl.py
+++ b/ryu/lib/ovs/vsctl.py
@@ -1563,7 +1563,9 @@ class VSCtl(object):
self._pre_add_port(ctx, columns)
def _cmd_add_port(self, ctx, command):
- may_exist = command.has_option('--may_exist')
+ # '--may_exist' is a typo but for backword compatibility
+ may_exist = (command.has_option('--may_exist')
+ or command.has_option('--may-exist'))
br_name = command.args[0]
port_name = command.args[1]
@@ -1577,7 +1579,9 @@ class VSCtl(object):
False, iface_names, settings)
def _cmd_add_bond(self, ctx, command):
- may_exist = command.has_option('--may_exist')
+ # '--may_exist' is a typo but for backword compatibility
+ may_exist = (command.has_option('--may_exist')
+ or command.has_option('--may-exist'))
fake_iface = command.has_option('--fake-iface')
br_name = command.args[0]