This change ensures that we always end up with two elements even
if the name of the physical port contains dashes. For example, a
binding of "0100-br0-eth1" will be split to ["0100", "br0-eth1"]
instead of ["0100", "br0", "eth1"].

Signed-off-by: Mark Maglana <mmagl...@gmail.com>
---
 vtep/ovs-vtep | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vtep/ovs-vtep b/vtep/ovs-vtep
index 7173644..60dbb95 100755
--- a/vtep/ovs-vtep
+++ b/vtep/ovs-vtep
@@ -513,7 +513,7 @@ def add_binding(binding, ls):
 def del_binding(binding, ls):
     vlog.info("removing binding %s" % binding)
 
-    vlan, pp_name = binding.split("-")
+    vlan, pp_name = binding.split("-", 1)
     pbinding = binding+"-p"
     lbinding = binding+"-l"
 
-- 
2.0.3

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to