Signed-off-by: IWASE Yusuke <iwase.yusu...@gmail.com>
---
 ryu/lib/ovs/vsctl.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/ryu/lib/ovs/vsctl.py b/ryu/lib/ovs/vsctl.py
index 2391c90..b18b5ef 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]
-- 
2.7.4


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to