Handle interfaces (e.g. real interfaces) without remote Node.
This commit is contained in:
1 parent
d2ff558da7
commit
83332c1a42
1 file changed
+1
-1
+1
-1
@@ -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' )
|
||||
|
||||
|
||||
Reference in new issue
Block a user