diff options
author | Vincenzo Maffione <[email protected]> | 2017-03-19 17:07:49 +0100 |
---|---|---|
committer | Vincenzo Maffione <[email protected]> | 2017-03-19 17:07:49 +0100 |
commit | 1ab559ab4458fb4d0cc3be323d0f0fe5a622dc52 (patch) | |
tree | 1ef0cab7072e367b666aba8f260b537fee03a2fc /examples/two-layers.py | |
parent | 8ed85669f0e189b8023acc7cc67866431c0c80f0 (diff) | |
download | rumba-1ab559ab4458fb4d0cc3be323d0f0fe5a622dc52.tar.gz rumba-1ab559ab4458fb4d0cc3be323d0f0fe5a622dc52.zip |
testbeds: placeholder for QEMU testbed
Diffstat (limited to 'examples/two-layers.py')
-rwxr-xr-x | examples/two-layers.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/two-layers.py b/examples/two-layers.py index 3fba54e..7b5c868 100755 --- a/examples/two-layers.py +++ b/examples/two-layers.py @@ -8,6 +8,7 @@ from rumba.model import * 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 @@ -17,14 +18,15 @@ import rumba.prototypes.irati as irati n1 = NormalDIF("n1") n2 = NormalDIF("n2") n3 = NormalDIF("n3") +n4 = NormalDIF("n4") e1 = ShimEthDIF("e1") e2 = ShimEthDIF("e2") e3 = ShimEthDIF("e3") a = Node("a", - difs = [n3, n1, e1], - dif_registrations = {n3: [n1], n1 : [e1]}, + difs = [n3, n4, n1, e1], + dif_registrations = {n4: [n1], n3: [n1], n1 : [e1]}, registrations = {"rinaperf.server" : [n3]}, bindings = {"rinaperf.server" : "/usr/bin/rinaperf"}) @@ -33,14 +35,14 @@ b = Node("b", dif_registrations = {n1 : [e1, e2]}) c = Node("c", - difs = [n3, n1, n2, e2, e3], - dif_registrations = {n3: [n1, n2], n1 : [e2], n2: [e3]}) + difs = [n3, n4, n1, n2, e2, e3], + dif_registrations = {n4: [n1], n3: [n1, n2], n1 : [e2], n2: [e3]}) d = Node("d", difs = [n3, n2, e3], dif_registrations = {n3: [n2], n2 : [e3]}) -tb = fake.Testbed(exp_name = "twolayers", +tb = qemu.Testbed(exp_name = "twolayers", username = "vmaffio", proj_name = "cert.pem", password = "") |