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 <mmaglana@gmail.com>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
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"