use print() - import print_function - should be fine for both py2 and py3
[nepi.git] / examples / openvswitch / ovs_ping_3_switches.py
index 335d877..c97b3a7 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
 
@@ -241,11 +241,9 @@ ec.wait_finished(apps.values())
 # collect results
 for key, app in apps.iteritems():
     stdout = ec.trace(app, "stdout")
-    print "***************************", key, "************************"
-    print stdout
-    print "\n"
+    print("***************************", key, "************************")
+    print(stdout)
+    print("\n")
 
 # Delete the overlay network
 ec.shutdown()
-
-