aboutsummaryrefslogtreecommitdiff
path: root/rumba/prototypes/rlite.py
diff options
context:
space:
mode:
authorVincenzo Maffione <v.maffione@gmail.com>2017-04-21 11:43:05 +0200
committerVincenzo Maffione <v.maffione@gmail.com>2017-04-21 11:43:05 +0200
commit92e114b4bd567593b43d6a065be52ca265bd13a4 (patch)
treef39d94c8a18d59212b42210d87c2fbf09f8bfc89 /rumba/prototypes/rlite.py
parent778bd3a1c3f625767c00688faa37af388a054f94 (diff)
downloadrumba-92e114b4bd567593b43d6a065be52ca265bd13a4.tar.gz
rumba-92e114b4bd567593b43d6a065be52ca265bd13a4.zip
prototypes: rlite: minor naming change
Diffstat (limited to 'rumba/prototypes/rlite.py')
-rw-r--r--rumba/prototypes/rlite.py31
1 files changed, 14 insertions, 17 deletions
diff --git a/rumba/prototypes/rlite.py b/rumba/prototypes/rlite.py
index 4221f2a..faf2186 100644
--- a/rumba/prototypes/rlite.py
+++ b/rumba/prototypes/rlite.py
@@ -32,7 +32,7 @@ class Experiment(mod.Experiment):
ssh.execute_commands(self.testbed, node.ssh_config,
cmds, time_out=None)
- def init(self):
+ def init_nodes(self):
cmds = []
# Load kernel modules
@@ -48,20 +48,6 @@ class Experiment(mod.Experiment):
for node in self.nodes:
self.execute_commands(node, cmds)
- def install(self):
- cmds = []
-
- cmds.append("apt-get update")
- cmds.append("apt-get install g++ gcc cmake "
- "linux-headers-$(uname -r) "
- "protobuf-compiler libprotobuf-dev git --yes")
- cmds.append("rm -rf ~/rlite")
- cmds.append("cd ~; git clone https://github.com/vmaffione/rlite")
- cmds.append("cd ~/rlite && ./configure && make && sudo make install")
-
- for node in self.nodes:
- self.execute_commands(node, cmds)
-
def create_ipcps(self):
for node in self.nodes:
cmds = []
@@ -116,12 +102,23 @@ class Experiment(mod.Experiment):
def install_prototype(self):
print("rlite: installing")
- self.install()
+ cmds = []
+
+ cmds.append("apt-get update")
+ cmds.append("apt-get install g++ gcc cmake "
+ "linux-headers-$(uname -r) "
+ "protobuf-compiler libprotobuf-dev git --yes")
+ cmds.append("rm -rf ~/rlite")
+ cmds.append("cd ~; git clone https://github.com/vmaffione/rlite")
+ cmds.append("cd ~/rlite && ./configure && make && sudo make install")
+
+ for node in self.nodes:
+ self.execute_commands(node, cmds)
print("rlite: installed")
def bootstrap_prototype(self):
print("rlite: setting up")
- self.init()
+ self.init_nodes()
print("rlite: software initialized on all nodes")
self.create_ipcps()
print("rlite: IPCPs created on all nodes")