Revision bdd43bea

View differences:

mininet/node.py
976 976
            clist += ' ptcp:%s' % self.listenPort
977 977
        self.cmd( 'ovs-vsctl set-controller', self, clist )
978 978
        # Set controllers to reconnect quickly
979
        controllers = self.cmd( 'ovs-vsctl --columns=controller find Bridge '
980
                                'name=' + str(self) ).split(':',2)[-1].strip()
981

  
982
        if controllers.startswith('[') and controllers.endswith(']'):
983
            controllers = [c.strip() for c in controllers[1:-1].split(',')]
984
            for uuid in controllers:
979
        controllers = self.cmd( 'ovs-vsctl -- get Bridge', self,
980
                               'Controller' ).strip()
981
        if controllers.startswith( '[' ) and controllers.endswith( ']' ):
982
            controllers = controllers[ 1 : -1 ]
983
            uuids = [ c.strip() for c in controllers.split( ',' ) ]
984
            for uuid in uuids:
985 985
                if uuid.count('-') != 4:
986 986
                    # Doesn't look like a UUID
987 987
                    continue

Also available in: Unified diff