Minor comment change and text change.

This commit is contained in:
Bob Lantz
2013-06-25 19:39:53 -07:00
parent bdd43beaf3
commit 877e7efb5f
+2 -2
View File
@@ -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()