Skip to content
Snippets Groups Projects
Commit 877e7efb authored by Bob Lantz's avatar Bob Lantz
Browse files

Minor comment change and text change.

parent bdd43bea
No related branches found
No related tags found
No related merge requests found
......@@ -975,14 +975,14 @@ def start( self, controllers ):
if self.listenPort:
clist += ' ptcp:%s' % self.listenPort
self.cmd( 'ovs-vsctl set-controller', self, clist )
# Set controllers to reconnect quickly
# Reconnect quickly to controllers (1s vs. 15s max_backoff)
controllers = self.cmd( 'ovs-vsctl -- get Bridge', self,
'Controller' ).strip()
if controllers.startswith( '[' ) and controllers.endswith( ']' ):
controllers = controllers[ 1 : -1 ]
uuids = [ c.strip() for c in controllers.split( ',' ) ]
for uuid in uuids:
if uuid.count('-') != 4:
if uuid.count( '-' ) != 4:
# Doesn't look like a UUID
continue
uuid = uuid.strip()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment