We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2ff558 commit 83332c1Copy full SHA for 83332c1
1 file changed
mininet/cli.py
@@ -111,7 +111,7 @@ def do_net( self, line ):
111
for switch in self.mn.switches:
112
output( switch.name, '<->' )
113
for intf in switch.intfs.values():
114
- name = switch.connection[ intf ][ 1 ]
+ node, name = switch.connection.get( intf, ( None, 'Unknown ' ) )
115
output( ' %s' % name )
116
output( '\n' )
117
0 commit comments