aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincenzo Maffione <v.maffione@gmail.com>2017-10-05 17:40:21 +0200
committerVincenzo Maffione <v.maffione@gmail.com>2017-10-05 17:40:21 +0200
commite782eea28157bb5959c11a09ac3648d27d075ab9 (patch)
tree203c63f627e997c2af3e938fd5970a70aba3d1c4
parent61e513ea96b91730dc68a5ccf9515708e247b6b8 (diff)
downloadrumba-e782eea28157bb5959c11a09ac3648d27d075ab9.tar.gz
rumba-e782eea28157bb5959c11a09ac3648d27d075ab9.zip
prototypes: rlite: align to the new rlite release
-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))