Revision 877e7efb mininet/node.py

View differences:

mininet/node.py
975 975
        if self.listenPort:
976 976
            clist += ' ptcp:%s' % self.listenPort
977 977
        self.cmd( 'ovs-vsctl set-controller', self, clist )
978
        # Set controllers to reconnect quickly
978
        # Reconnect quickly to controllers (1s vs. 15s max_backoff)
979 979
        controllers = self.cmd( 'ovs-vsctl -- get Bridge', self,
980 980
                               'Controller' ).strip()
981 981
        if controllers.startswith( '[' ) and controllers.endswith( ']' ):
982 982
            controllers = controllers[ 1 : -1 ]
983 983
            uuids = [ c.strip() for c in controllers.split( ',' ) ]
984 984
            for uuid in uuids:
985
                if uuid.count('-') != 4:
985
                if uuid.count( '-' ) != 4:
986 986
                    # Doesn't look like a UUID
987 987
                    continue
988 988
                uuid = uuid.strip()

Also available in: Unified diff