From 877e7efb5f085611e41b530e91ac53bb3c09bb74 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Tue, 25 Jun 2013 19:39:53 -0700 Subject: [PATCH] Minor comment change and text change. --- mininet/node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mininet/node.py b/mininet/node.py index 3308121..0beb5bb 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -975,14 +975,14 @@ class OVSSwitch( Switch ): 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()