summaryrefslogtreecommitdiff
path: root/vtep
diff options
context:
space:
mode:
authornickcooper-zhangtonghao <nickcooper-zhangtonghao@opencloud.tech>2016-05-05 23:07:57 -0400
committerBen Pfaff <blp@ovn.org>2016-05-18 10:21:50 -0700
commitbea56d8ffe2f30c245f665ffc6e52103ad250166 (patch)
treefd56a310dcb76ba6adcde6979e5ab39e704dbc2c /vtep
parent7251075c245675cbff20800291435818e60318ae (diff)
downloadopenvswitch-bea56d8ffe2f30c245f665ffc6e52103ad250166.tar.gz
ovs-vtep: Support running multiple ovs-vtep processes
Include ovs-vtep physical switch name as part of logical switch name to support running multiple ovs-vtep processes sharing the same ovsdb and vswitchd. Signed-off-by: nickcooper-zhangtonghao <nickcooper-zhangtonghao@opencloud.tech> Tested-by: Darrell Ball <dlu998@gmail.com> Acked-by: Justin Pettit <jpettit@ovn.org> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'vtep')
-rwxr-xr-xvtep/ovs-vtep6
1 files changed, 3 insertions, 3 deletions
diff --git a/vtep/ovs-vtep b/vtep/ovs-vtep
index a8ffb668a..61079491b 100755
--- a/vtep/ovs-vtep
+++ b/vtep/ovs-vtep
@@ -81,11 +81,11 @@ def unixctl_exit(conn, unused_argv, unused_aux):
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 = {}
@@ -610,7 +610,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]