Skip to content
Snippets Groups Projects
Commit 03dd914e authored by Bob Lantz's avatar Bob Lantz
Browse files

Tease out intfList() from intfNames().

parent a6bcad8f
No related branches found
No related tags found
No related merge requests found
......@@ -369,9 +369,13 @@ def linkTo( self, node, link=Link ):
# Other methods
def intfList( self ):
"List of our interfaces sorted by port number"
return [ self.intfs[ p ] for p in sorted( self.intfs.iterkeys() ) ]
def intfNames( self ):
"The names of our interfaces"
return [ str( i ) for i in sorted( self.ports.values() ) ]
"The names of our interfaces sorted by port number"
return [ str( i ) for i in self.intfList() ]
def __str__( self ):
return '%s: IP=%s intfs=%s pid=%s' % (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment