aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorVincenzo Maffione <v.maffione@gmail.com>2017-04-08 12:36:51 +0200
committerVincenzo Maffione <v.maffione@gmail.com>2017-04-08 12:36:51 +0200
commit6818af98498a890bcca9cbc8034aaa1a733e6230 (patch)
tree13c156be21d8567ff146b2b87a91fb0b9020815c /examples
parentd07592d34d1636a41be214e7df5c828c6d4aa3c2 (diff)
downloadrumba-6818af98498a890bcca9cbc8034aaa1a733e6230.tar.gz
rumba-6818af98498a890bcca9cbc8034aaa1a733e6230.zip
testbeds: qemu: modify constructor arguments
vm_img_folder --> bzimage, initramfs
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/example.py10
-rwxr-xr-xexamples/two-layers.py6
2 files changed, 9 insertions, 7 deletions
diff --git a/examples/example.py b/examples/example.py
index e173ef0..0d8fcd9 100755
--- a/examples/example.py
+++ b/examples/example.py
@@ -30,12 +30,12 @@ b = Node("b",
difs = [e1, n1],
dif_registrations = {n1 : [e1]})
-tb = jfed.Testbed(exp_name = "letest",
- username = "sander",
- cert_file = "cert.pem",
- jfed_jar = "jfed_cli/experimenter-cli.jar")
+tb = qemu.Testbed(exp_name = "example1",
+ username = "vmaffione",
+ bzimage = '/home/vmaffione/git/rlite/demo/buildroot/bzImage',
+ initramfs = '/home/vmaffione/git/rlite/demo/buildroot/rootfs.cpio')
-exp = irati.Experiment(tb, nodes = [a, b])
+exp = rl.Experiment(tb, nodes = [a, b])
print(exp)
diff --git a/examples/two-layers.py b/examples/two-layers.py
index 29faebe..687c99f 100755
--- a/examples/two-layers.py
+++ b/examples/two-layers.py
@@ -43,9 +43,11 @@ d = Node("d",
dif_registrations = {n3: [n2], n2 : [e3]})
tb = qemu.Testbed(exp_name = "twolayers",
- username = "vmaffio")
+ username = "vmaffione",
+ bzimage = '/home/vmaffione/git/rlite/demo/buildroot/bzImage',
+ initramfs = '/home/vmaffione/git/rlite/demo/buildroot/rootfs.cpio')
-exp = irati.Experiment(tb, nodes = [a, b, c, d])
+exp = rl.Experiment(tb, nodes = [a, b, c, d])
print(exp)