Handle interfaces (e.g. real interfaces) without remote Node.

This commit is contained in:
Bob Lantz
2010-04-22 17:03:26 -07:00
parent d2ff558da7
commit 83332c1a42
+1 -1
View File
@@ -111,7 +111,7 @@ class CLI( Cmd ):
for switch in self.mn.switches:
output( switch.name, '<->' )
for intf in switch.intfs.values():
name = switch.connection[ intf ][ 1 ]
node, name = switch.connection.get( intf, ( None, 'Unknown ' ) )
output( ' %s' % name )
output( '\n' )