Minor comment change and text change.
This commit is contained in:
+2
-2
@@ -975,14 +975,14 @@ class OVSSwitch( Switch ):
|
|||||||
if self.listenPort:
|
if self.listenPort:
|
||||||
clist += ' ptcp:%s' % self.listenPort
|
clist += ' ptcp:%s' % self.listenPort
|
||||||
self.cmd( 'ovs-vsctl set-controller', self, clist )
|
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,
|
controllers = self.cmd( 'ovs-vsctl -- get Bridge', self,
|
||||||
'Controller' ).strip()
|
'Controller' ).strip()
|
||||||
if controllers.startswith( '[' ) and controllers.endswith( ']' ):
|
if controllers.startswith( '[' ) and controllers.endswith( ']' ):
|
||||||
controllers = controllers[ 1 : -1 ]
|
controllers = controllers[ 1 : -1 ]
|
||||||
uuids = [ c.strip() for c in controllers.split( ',' ) ]
|
uuids = [ c.strip() for c in controllers.split( ',' ) ]
|
||||||
for uuid in uuids:
|
for uuid in uuids:
|
||||||
if uuid.count('-') != 4:
|
if uuid.count( '-' ) != 4:
|
||||||
# Doesn't look like a UUID
|
# Doesn't look like a UUID
|
||||||
continue
|
continue
|
||||||
uuid = uuid.strip()
|
uuid = uuid.strip()
|
||||||
|
|||||||
Reference in New Issue
Block a user