<s> "<STR_LIT>" <EOL> from mininet . log import setLogLevel <EOL> from mininet . node import UserSwitch , OVSKernelSwitch <EOL> from mininet . topolib import TreeNet <EOL> def treePing64 ( ) : <EOL> "<STR_LIT>" <EOL> results = { } <EOL> switches = { <EOL> '<STR_LIT>' : UserSwitch , <EOL> '<STR_LIT>' : OVSKernelSwitch } <EOL> for name in switches : <EOL> print "<STR_LIT>" , name , "<STR_LIT>" <EOL> switch = switches [ name ] <EOL> network = TreeNet ( depth = <NUM_LIT:2> , fanout = <NUM_LIT:8> , switch = switch ) <EOL> result = network . run ( network . pingAll ) <EOL> results [ name ] = result <EOL> print <EOL> print "<STR_LIT>" <EOL> for name in switches : <EOL> print "<STR_LIT>" % ( name , results [ name ] ) <EOL> print <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> setLogLevel ( '<STR_LIT:info>' ) <EOL> treePing64 ( ) </s>
