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
small bug fix in src/nepi/util/netgraph.py
[nepi.git]
/
examples
/
linux
/
ping.py
diff --git
a/examples/linux/ping.py
b/examples/linux/ping.py
index
eaee0de
..
6b5a249
100644
(file)
--- a/
examples/linux/ping.py
+++ b/
examples/linux/ping.py
@@
-22,8
+22,11
@@
from nepi.execution.ec import ExperimentController
ec = ExperimentController(exp_id = "ping-exp")
ec = ExperimentController(exp_id = "ping-exp")
+hostname = ## Add a string with the target hostname
+username = ## Add a string with the username to SSH hostname
+
node = ec.register_resource("LinuxNode")
node = ec.register_resource("LinuxNode")
-ec.set(node, "hostname", host)
+ec.set(node, "hostname", host
name
)
ec.set(node, "username", username)
ec.set(node, "cleanHome", True)
ec.set(node, "cleanProcesses", True)
ec.set(node, "username", username)
ec.set(node, "cleanHome", True)
ec.set(node, "cleanProcesses", True)
@@
-38,5
+41,4
@@
ec.wait_finished(app)
print ec.trace(app, "stdout")
print ec.trace(app, "stdout")
-
ec.shutdown()
ec.shutdown()