Revision 6cb68f26 mininet/node.py

View differences:

mininet/node.py
906 906
           deleteIntfs: delete interfaces? (True)"""
907 907
        if deleteIntfs:
908 908
            self.deleteIntfs()
909
    
909

  
910 910
    def __repr__( self ):
911 911
        "More informative string representation"
912 912
        intfs = ( ','.join( [ '%s:%s' % ( i.name, i.IP() )
......
1517 1517
    if not controller:
1518 1518
        raise Exception( 'Could not find a default OpenFlow controller' )
1519 1519
    return controller( name, **kwargs )
1520

  
1521
def NullController( *_args, **_kwargs ):
1522
    "Nonexistent controller - simply returns None"
1523
    return None

Also available in: Unified diff