Revision 08643fe6 mininet/util.py

View differences:

mininet/util.py
237 237
    nodes = net.controllers + net.switches + net.hosts
238 238
    dumpNodeConnections( nodes )
239 239

  
240
def dumpPorts( switches ):
241
    "dump interface to openflow port mappings for each switch"
242
    for switch in switches:
243
        output( '%s ' % switch.name )
244
        for intf in switch.intfList():
245
            port = switch.ports[ intf ]
246
            output( '%s:%d ' % ( intf, port ) )
247
        output( '\n' )
248

  
240 249
# IP and Mac address formatting and parsing
241 250

  
242 251
def _colonHex( val, bytecount ):

Also available in: Unified diff