reinstate import of print_function in py3 so as to shorten the distance between both...
[nepi.git] / examples / openvswitch / ovs_ping_3_switches.py
index ee22e1c..1562d70 100644 (file)
@@ -32,7 +32,7 @@
 # $ PYTHONPATH=$PYTHONPATH:src/ python examples/openvswitch/ovs_ping_3_switches.py -n "192.168.3.0/24" -C "1.1.1.1" -s <slicename> -i /~/.ssh/id_rsa
 #
 
-
+from __future__ import print_function
 
 from nepi.execution.ec import ExperimentController
 
@@ -236,7 +236,9 @@ for r1, (n1, ip1) in r2ip.items():
 
 ec.deploy()
 
-ec.wait_finished(list(apps.values()))
+# py3: no need to transform into a list
+# as wait_finished (wait in fact) will do it anyway
+ec.wait_finished(apps.values())
 
 # collect results
 for key, app in apps.items():