Skip to content

Commit 83332c1

Browse files
committed
Handle interfaces (e.g. real interfaces) without remote Node.
1 parent d2ff558 commit 83332c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mininet/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def do_net( self, line ):
111111
for switch in self.mn.switches:
112112
output( switch.name, '<->' )
113113
for intf in switch.intfs.values():
114-
name = switch.connection[ intf ][ 1 ]
114+
node, name = switch.connection.get( intf, ( None, 'Unknown ' ) )
115115
output( ' %s' % name )
116116
output( '\n' )
117117

0 commit comments

Comments
 (0)