git://git.onelab.eu
/
nepi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use print() - import print_function - should be fine for both py2 and py3
[nepi.git]
/
examples
/
openvswitch
/
ovs_ping_3_switches.py
diff --git
a/examples/openvswitch/ovs_ping_3_switches.py
b/examples/openvswitch/ovs_ping_3_switches.py
index
335d877
..
c97b3a7
100644
(file)
--- a/
examples/openvswitch/ovs_ping_3_switches.py
+++ b/
examples/openvswitch/ovs_ping_3_switches.py
@@
-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
#
# $ 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
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")
# 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()
# Delete the overlay network
ec.shutdown()
-
-