diff options
| author | Marco Capitani <m.capitani@nextworks.it> | 2017-04-12 15:21:21 +0200 |
|---|---|---|
| committer | Marco Capitani <m.capitani@nextworks.it> | 2017-04-12 15:21:21 +0200 |
| commit | 22db738a842f8e21bb49f6431bd671d37073f832 (patch) | |
| tree | b7603c93d1f5b5b4e2487d89463f5a5d526be2e2 /examples/seven.py | |
| parent | 2b155aa25a2f61ad9bb84c273781a0597c6cef76 (diff) | |
| download | rumba-22db738a842f8e21bb49f6431bd671d37073f832.tar.gz rumba-22db738a842f8e21bb49f6431bd671d37073f832.zip | |
Rumba tester v2: all-in-one testing tool
Deep reworking of the testing tool, it can be provided with a (demo-like)
.conf file, a testbed and a prototype, and it auto-runs the experiment.
Removed generated testing scripts.
Diffstat (limited to 'examples/seven.py')
| -rw-r--r-- | examples/seven.py | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/examples/seven.py b/examples/seven.py deleted file mode 100644 index 42402a6..0000000 --- a/examples/seven.py +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/env/python - -from rumba.model 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.qemu as qemu - -# import prototype plugins -import rumba.prototypes.ouroboros as our -import rumba.prototypes.rlite as rl -import rumba.prototypes.irati as irati - -shim500 = ShimEthDIF("shim500", link_speed=0)) -shim600 = ShimEthDIF("shim600", link_speed=0)) -shim700 = ShimEthDIF("shim700", link_speed=0)) -shim400 = ShimEthDIF("shim400", link_speed=0)) -shim300 = ShimEthDIF("shim300", link_speed=0)) -shim800 = ShimEthDIF("shim800", link_speed=0)) - -n1 = NormalDIF("n1") - -b = Node("b", - difs=[300, 400, n1], - dif_registrations={n1: [300, 400]}) - -g = Node("g", - difs=[800, n1], - dif_registrations={n1: [800]}) - -c = Node("c", - difs=[400, 500, 600, n1], - dif_registrations={n1: [400, 500, 600]}) - -f = Node("f", - difs=[500, n1], - dif_registrations={n1: [500]}) - -a = Node("a", - difs=[300, n1], - dif_registrations={n1: [300]}) - -d = Node("d", - difs=[600, 700, n1], - dif_registrations={n1: [600, 700]}) - -e = Node("e", - difs=[700, 800, n1], - dif_registrations={n1: [700, 800]}) - -tb = qemu.Testbed(exp_name = "seven", - bzimage = "/home/mcapitani/RINA/checkouts/rlite/demo/buildroot/bzImage", - initramfs = "/home/mcapitani/RINA/checkouts/rlite/demo/buildroot/rootfs.cpio") - -exp = rl.Experiment(tb, nodes = [a, b, c, d]) - -print(exp) - -exp.run() |
