Revision ccd3276d mininet/node.py

View differences:

mininet/node.py
1436 1436

  
1437 1437
def DefaultController( name, controllers=DefaultControllers, **kwargs ):
1438 1438
    "Find a controller that is available and instantiate it"
1439
    return findController( controllers )( name, **kwargs )
1439
    controller = findController( controllers )
1440
    if not controller:
1441
        raise Exception( 'Could not find a default OpenFlow controller' )
1442
    return controller( name, **kwargs )
1443

  

Also available in: Unified diff