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_2_switches.py
diff --git
a/examples/openvswitch/ovs_ping_2_switches.py
b/examples/openvswitch/ovs_ping_2_switches.py
index
84c28d0
..
a28bef2
100644
(file)
--- a/
examples/openvswitch/ovs_ping_2_switches.py
+++ b/
examples/openvswitch/ovs_ping_2_switches.py
@@
-33,6
+33,8
@@
# $ PYTHONPATH=$PYTHONPATH:src/ python examples/openvswitch/ovs_ping_2_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_2_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
import os
from nepi.execution.ec import ExperimentController
import os
@@
-202,5
+204,4
@@
stdout = ec.trace(app, "stdout")
# Delete the overlay network
ec.shutdown()
# Delete the overlay network
ec.shutdown()
-print stdout
-
+print(stdout)