Revision 9ca63226 mininet/node.py

View differences:

mininet/node.py
1273 1273
class OVSBatch( OVSSwitch ):
1274 1274
    "Experiment: batch startup of OVS switches"
1275 1275

  
1276
    reconnectms = 1000  # shared for all switches
1277
    
1278 1276
    # This should be ~ int( quietRun( 'getconf ARG_MAX' ) ),
1279 1277
    # but the real limit seems to be much lower
1280 1278
    argmax = 128000
......
1282 1280
    def __init__( self, *args, **kwargs ):
1283 1281
        self.commands = []
1284 1282
        self.started = False
1285
        # Use global rather than local reconnectms
1286
        reconnectms = kwargs.pop( 'reconnectms', 1000 )
1287
        self.__class__.reconnectms = max( reconnectms,
1288
                                          self.__class__.reconnectms )
1289
        kwargs.update( reconnectms=None )
1290 1283
        super( OVSBatch, self ).__init__( *args, **kwargs )
1291 1284

  
1292 1285
    @classmethod
......
1316 1309
        cmd = ' '.join( str( arg ).strip() for arg in args )
1317 1310
        self.commands.append( cmd )
1318 1311

  
1312
    def start( self, *args, **kwargs ):
1313
        super( OVSBatch, self ).start( *args, **kwargs )
1314
        self.started = True
1315
 
1316
    def stop( self, *args, **kwargs ):
1317
        super( OVSBatch, self ).stop( *args, **kwargs )
1318
        self.started = False
1319
         
1319 1320
    def cleanup( self):
1320 1321
        "Don't bother to clean up"
1321 1322
        return

Also available in: Unified diff