signed-off-by: [email protected]
<mailto:[email protected]>
The computer can run multiple ovs-vtep processes, but ovs-vtep processes share
the “vtep_lsX” bridge when binding the physical-switch and logical-switch. The
bridge created by logical-switch should be named according to logical-switch.
--- vtep/ovs-vtep 2016-05-01 09:42:08.903583112 -0400
+++ vtep/ovs-vtep.new 2016-05-01 08:15:19.352586815 -0400
@@ -81,11 +81,11 @@ def unixctl_exit(conn, unused_argv, unus
class Logical_Switch(object):
- def __init__(self, ls_name):
+ def __init__(self, ls_name, ps_name):
global ls_count
self.name = ls_name
ls_count += 1
- self.short_name = "vtep_ls" + str(ls_count)
+ self.short_name = ps_name + "_vtep_ls" + str(ls_count)
vlog.info("creating lswitch %s (%s)" % (self.name, self.short_name))
self.ports = {}
self.tunnels = {}
@@ -583,7 +583,7 @@ def handle_physical():
for b in binding_set:
vlan, ls_name = b.split()
if ls_name not in Lswitches:
- Lswitches[ls_name] = Logical_Switch(ls_name)
+ Lswitches[ls_name] = Logical_Switch(ls_name, ps_name)
binding = "%s-%s" % (vlan, pp_name)
ls = Lswitches[ls_name]
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev