aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexamples/two-layers.py2
-rw-r--r--rumba/prototypes/rlite.py7
-rw-r--r--rumba/testbeds/qemu.py4
3 files changed, 9 insertions, 4 deletions
diff --git a/examples/two-layers.py b/examples/two-layers.py
index b3622fd..6d22673 100755
--- a/examples/two-layers.py
+++ b/examples/two-layers.py
@@ -50,7 +50,7 @@ tb = qemu.Testbed(exp_name = "twolayers",
username = "root",
password = "root")
-exp = irati.Experiment(tb, nodes = [a, b, c, d])
+exp = rl.Experiment(tb, nodes = [a, b, c, d])
print(exp)
diff --git a/rumba/prototypes/rlite.py b/rumba/prototypes/rlite.py
index c4c34e6..3700640 100644
--- a/rumba/prototypes/rlite.py
+++ b/rumba/prototypes/rlite.py
@@ -63,7 +63,7 @@ class Experiment(mod.Experiment):
"modprobe rlite-shim-eth",
"modprobe rlite-shim-udp4",
"modprobe rlite-shim-loopback",
- "rlite-uipcps -v DBG -k 0 &> uipcp.log &"]
+ "rlite-uipcps -v DBG &> uipcp.log &"]
self.may_sudo(cmds)
for node in self.nodes:
@@ -96,6 +96,11 @@ class Experiment(mod.Experiment):
cmds.append("rlite-ctl ipcp-config %s netdev %s"
% (ipcp.name, ipcp.ifname))
+ if isinstance(ipcp.dif, mod.NormalDIF) \
+ and ipcp.dif_bootstrapper:
+ cmds.append("rlite-ctl ipcp-enroller-enable %s"
+ % (ipcp.name))
+
self.may_sudo(cmds)
self.execute_commands(node, cmds)
diff --git a/rumba/testbeds/qemu.py b/rumba/testbeds/qemu.py
index 5c8c7b3..e4a35ab 100644
--- a/rumba/testbeds/qemu.py
+++ b/rumba/testbeds/qemu.py
@@ -143,7 +143,7 @@ class Testbed(mod.Testbed):
# local images
url_prefix = "https://bitbucket.org/vmaffione/rina-images/downloads/"
if not self.bzimage_path:
- bzimage = '%s.bzImage' % (experiment.prototype_name())
+ bzimage = '%s.prod.bzImage' % (experiment.prototype_name())
self.bzimage_path = os.path.join(mod.cache_dir, bzimage)
if not os.path.exists(self.bzimage_path):
logger.info("Downloading %s" % (url_prefix + bzimage))
@@ -151,7 +151,7 @@ class Testbed(mod.Testbed):
filename=self.bzimage_path)
print("\n")
if not self.initramfs_path:
- initramfs = '%s.rootfs.cpio' % (experiment.prototype_name())
+ initramfs = '%s.prod.rootfs.cpio' % (experiment.prototype_name())
self.initramfs_path = os.path.join(mod.cache_dir, initramfs)
if not os.path.exists(self.initramfs_path):
logger.info("Downloading %s" % (url_prefix + initramfs))