Revision 708b1843

View differences:

mininet/net.py
174 174
           returns: True if all switches are connected"""
175 175
        info( '*** Waiting for switches to connect\n' )
176 176
        time = 0
177
        remaining = copy.copy( self.switches )
177
        remaining = list( self.switches )
178 178
        while True:
179
            for switch in remaining:
179
            for switch in tuple( remaining ):
180 180
                if switch.connected():
181 181
                    info( '%s ' % switch )
182 182
                    remaining.remove( switch )

Also available in: Unified diff