def interfaces(verbose=False):
 if (not verbose):
  print '\n'.join([('%i. %s' % x) for x in enumerate(PCap.get_device_names())])
 else:
  import pprint
  print pprint.pprint(PCap.get_devices())
 from pox.core import core
 core.quit()

def interfaces ( verbose = False ) : if ( not verbose ) : print '\n' . join ( [ ( '%i. %s' % x ) for x in enumerate ( PCap . get_device_names ( ) ) ] ) else : import pprint print pprint . pprint ( PCap . get_devices ( ) ) from pox . core import core core . quit ( )
interfaces -> dict arguments: all : whether to include interfaces with not associated address .