diff options
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 = "") |