def treePing64():
 results = {}
 switches = {'reference user': UserSwitch, 'Open vSwitch kernel': OVSKernelSwitch}
 for name in switches:
  info('*** Testing', name, 'datapath\n')
  switch = switches[name]
  network = TreeNet(depth=2, fanout=8, switch=switch)
  result = network.run(network.pingAll)
  results[name] = result
 info('\n*** Tree network ping results:\n')
 for name in switches:
  info(('%s: %d%% packet loss\n' % (name, results[name])))
 info('\n')

def treePing64 ( ) : results = { } switches = { 'reference user' : UserSwitch , 'Open vSwitch kernel' : OVSKernelSwitch } for name in switches : info ( '*** Testing' , name , 'datapath\n' ) switch = switches [ name ] network = TreeNet ( depth = 2 , fanout = 8 , switch = switch ) result = network . run ( network . pingAll ) results [ name ] = result info ( '\n*** Tree network ping results:\n' ) for name in switches : info ( ( '%s: %d%% packet loss\n' % ( name , results [ name ] ) ) ) info ( '\n' )
run ping test on 64-node tree networks .