From 6ef2973fe269ec17d607f63b565ac3a82ff86c0a Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Thu, 22 Apr 2010 17:16:53 -0700 Subject: [PATCH] Use switches rather than switches.keys(). Minor cosmetic change, really. --- examples/treeping64.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/treeping64.py b/examples/treeping64.py index 3e810d7..6449bef 100755 --- a/examples/treeping64.py +++ b/examples/treeping64.py @@ -15,7 +15,7 @@ def treePing64(): 'reference user': UserSwitch, 'Open vSwitch kernel': OVSKernelSwitch } - for name in switches.keys(): + for name in switches: print "*** Testing", name, "datapath" switch = switches[ name ] network = TreeNet( depth=2, fanout=8, switch=switch ) @@ -24,7 +24,7 @@ def treePing64(): print print "*** Tree network ping results:" - for name in switches.keys(): + for name in switches: print "%s: %d%% packet loss" % ( name, results[ name ] ) print