still making both branches closer
[nepi.git] / examples / openvswitch / ovs_ping_3_switches.py
index c97b3a7..25e9b7f 100644 (file)
@@ -225,8 +225,8 @@ r2ip = dict({
     })
 
 # Ping from all resources to all other resources
-for r1, (n1, ip1) in r2ip.iteritems():
-    for r2, (n2, ip2) in r2ip.iteritems():
+for r1, (n1, ip1) in r2ip.items():
+    for r2, (n2, ip2) in r2ip.items():
         if r1 == r2:
             continue
 
@@ -239,7 +239,7 @@ ec.deploy()
 ec.wait_finished(apps.values())
 
 # collect results
-for key, app in apps.iteritems():
+for key, app in apps.items():
     stdout = ec.trace(app, "stdout")
     print("***************************", key, "************************")
     print(stdout)