diff options
| author | Nick Aerts <nick.aerts@ugent.be> | 2018-02-24 12:27:36 +0100 | 
|---|---|---|
| committer | Nick Aerts <nick.aerts@ugent.be> | 2018-03-20 11:30:07 +0100 | 
| commit | a7cd88d752b72ea85ccefa5e1f3dceba13fb1fc2 (patch) | |
| tree | 9c29f08693d577c81959c3194aec04e9bc1ba195 /examples/two-layers.py | |
| parent | 24bed306b5a67fc682b04cae017b0d0f3ac55a00 (diff) | |
| download | rumba-a7cd88d752b72ea85ccefa5e1f3dceba13fb1fc2.tar.gz rumba-a7cd88d752b72ea85ccefa5e1f3dceba13fb1fc2.zip | |
testbeds: Add docker testbed
This adds support for a testbed based on Docker containers running on
the local host. Bridging the containers can be done using built-in
Linux bridging or using OpenVSwitch bridges.
A new resource 'executor' has been added to abstract away command
execution on nodes on the testbed. Executors have been created for
local command execution, docker exec based command execution and
SSH-based command execution. This has also been changed in the
prototypes to execute using the correct executor.
Diffstat (limited to 'examples/two-layers.py')
| -rwxr-xr-x | examples/two-layers.py | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/examples/two-layers.py b/examples/two-layers.py index c375088..3f50037 100755 --- a/examples/two-layers.py +++ b/examples/two-layers.py @@ -8,7 +8,7 @@ from rumba.storyboard import *  # import testbed plugins  import rumba.testbeds.emulab as emulab  import rumba.testbeds.jfed as jfed -import rumba.testbeds.faketestbed as fake +import rumba.testbeds.local as local  import rumba.testbeds.qemu as qemu  # import prototype plugins @@ -59,6 +59,6 @@ with ExperimentManager(exp):      exp.swap_in()      exp.bootstrap_prototype()      sb = StoryBoard(experiment=exp, duration=15, servers=[]) -    sb.run_command(7.5, a, 'echo "7.5 secs in. We are at $(hostname)"') -    sb.run_command(12, b, 'echo "12 secs in. We are at $(hostname)"') +    sb.schedule_command(7.5, a, 'echo "7.5 secs in. We are at $(hostname)"') +    sb.schedule_command(12, b, 'echo "12 secs in. We are at $(hostname)"')      sb.start() | 
