vtep: Limit the split elements to 2 (maxsplit + 1)
authorMark Maglana <mmaglana@gmail.com>
Mon, 2 Mar 2015 21:41:35 +0000 (13:41 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Tue, 3 Mar 2015 17:07:50 +0000 (09:07 -0800)
commit5aa5d00e989c31650501d96c38c835e256c47593
tree1ace2e2363e0456e969d5f71882e5a622f3ec7a0
parentc7794d20f5617432edb96b5b7ee57ecb113af940
vtep: Limit the split elements to 2 (maxsplit + 1)

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>
vtep/ovs-vtep