aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMarco Capitani <m.capitani@nextworks.it>2018-02-21 11:47:43 +0100
committerMarco Capitani <m.capitani@nextworks.it>2018-02-27 16:51:26 +0100
commite6af5e64b850be64d5e1d1012e890ca9571b0df0 (patch)
tree60ef94a76aea5bd4fec5843a573cc040aa2211d1 /examples
parent0158b68b1736ca8a5fb68de5a56cae234030774c (diff)
downloadrumba-e6af5e64b850be64d5e1d1012e890ca9571b0df0.tar.gz
rumba-e6af5e64b850be64d5e1d1012e890ca9571b0df0.zip
utils & storyboard: add syslog retrieval functionality
Implements #39. Also updated examples.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/converged-operator-network.py4
-rwxr-xr-xexamples/scalingtime.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/converged-operator-network.py b/examples/converged-operator-network.py
index 6242e31..3b80746 100755
--- a/examples/converged-operator-network.py
+++ b/examples/converged-operator-network.py
@@ -5,7 +5,7 @@
from rumba.model import *
from rumba.storyboard import *
-from rumba.utils import ExperimentManager
+from rumba.utils import *
# import testbed plugins
import rumba.testbeds.emulab as emulab
@@ -186,7 +186,7 @@ exp = rl.Experiment(tb, nodes = [f1n1, f1n2, f1n3, f1n4,
print(exp)
-with ExperimentManager(exp, do_swap_out=ExperimentManager.PROMPT):
+with ExperimentManager(exp, swap_out_strategy=PAUSE_SWAPOUT):
exp.swap_in()
exp.install_prototype()
exp.bootstrap_prototype()
diff --git a/examples/scalingtime.py b/examples/scalingtime.py
index 4a35d67..f0c9285 100755
--- a/examples/scalingtime.py
+++ b/examples/scalingtime.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
from rumba.model import *
-from rumba.utils import ExperimentManager
+from rumba.utils import *
# import testbed plugins
import rumba.testbeds.emulab as emulab
@@ -127,7 +127,7 @@ tb = jfed.Testbed(exp_name = "metro2",
exp = our.Experiment(tb, nodes = nodes)
-with ExperimentManager(exp, do_swap_out = ExperimentManager.PROMPT):
+with ExperimentManager(exp, swap_out_strategy=PAUSE_SWAPOUT):
exp.swap_in()
exp.install_prototype()
exp.bootstrap_prototype()