Revision 03dd914e

View differences:

mininet/node.py
369 369

  
370 370
    # Other methods
371 371

  
372
    def intfList( self ):
373
        "List of our interfaces sorted by port number"
374
        return [ self.intfs[ p ] for p in sorted( self.intfs.iterkeys() ) ]
375

  
372 376
    def intfNames( self ):
373
        "The names of our interfaces"
374
        return [ str( i ) for i in sorted( self.ports.values() ) ]
377
        "The names of our interfaces sorted by port number"
378
        return [ str( i ) for i in self.intfList() ]
375 379

  
376 380
    def __str__( self ):
377 381
        return '%s: IP=%s intfs=%s pid=%s' % (

Also available in: Unified diff