Use switches rather than switches.keys().
Minor cosmetic change, really.
This commit is contained in:
1 parent
e55cbef182
commit
6ef2973fe2
1 file changed
+2
-2
@@ -15,7 +15,7 @@ def treePing64():
|
|||||||
'reference user': UserSwitch,
|
'reference user': UserSwitch,
|
||||||
'Open vSwitch kernel': OVSKernelSwitch }
|
'Open vSwitch kernel': OVSKernelSwitch }
|
||||||
|
|
||||||
for name in switches.keys():
|
for name in switches:
|
||||||
print "*** Testing", name, "datapath"
|
print "*** Testing", name, "datapath"
|
||||||
switch = switches[ name ]
|
switch = switches[ name ]
|
||||||
network = TreeNet( depth=2, fanout=8, switch=switch )
|
network = TreeNet( depth=2, fanout=8, switch=switch )
|
||||||
@@ -24,7 +24,7 @@ def treePing64():
|
|||||||
|
|
||||||
print
|
print
|
||||||
print "*** Tree network ping results:"
|
print "*** Tree network ping results:"
|
||||||
for name in switches.keys():
|
for name in switches:
|
||||||
print "%s: %d%% packet loss" % ( name, results[ name ] )
|
print "%s: %d%% packet loss" % ( name, results[ name ] )
|
||||||
print
|
print
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user