Revision edf60032 mininet/cli.py

View differences:

mininet/cli.py
192 192
        "List interfaces."
193 193
        for node in self.nodelist:
194 194
            output( '%s: %s\n' %
195
                ( node.name, ','.join( node.intfNames() ) ) )
195
                    ( node.name, ','.join( node.intfNames() ) ) )
196 196

  
197 197
    def do_dump( self, _line ):
198 198
        "Dump node info."
......
303 303
            node = self.nodemap[ first ]
304 304
            # Substitute IP addresses for node names in command
305 305
            rest = [ self.nodemap[ arg ].IP()
306
                    if arg in self.nodemap else arg
307
                    for arg in rest ]
306
                     if arg in self.nodemap else arg
307
                     for arg in rest ]
308 308
            rest = ' '.join( rest )
309 309
            # Run cmd on node:
310 310
            builtin = isShellBuiltin( first )

Also available in: Unified diff