aboutsummaryrefslogtreecommitdiff
path: root/rumba/model.py
diff options
context:
space:
mode:
authorVincenzo Maffione <v.maffione@gmail.com>2017-06-07 10:04:07 +0200
committerVincenzo Maffione <v.maffione@gmail.com>2017-06-07 10:11:01 +0200
commit1e179fc8058f7bbcea7b6a681726796b4ffe9748 (patch)
tree6752a9cb2c7e08328f82097c941b071359206457 /rumba/model.py
parentacd8339aeaff05d678c3663b0a36af9e73fda618 (diff)
downloadrumba-1e179fc8058f7bbcea7b6a681726796b4ffe9748.tar.gz
rumba-1e179fc8058f7bbcea7b6a681726796b4ffe9748.zip
rumba: add initial version of rumba-access
Diffstat (limited to 'rumba/model.py')
-rw-r--r--rumba/model.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/rumba/model.py b/rumba/model.py
index eee8fac..941cba8 100644
--- a/rumba/model.py
+++ b/rumba/model.py
@@ -520,6 +520,13 @@ class Experiment:
if not ipcp.dif_bootstrapper:
break
+ def dump_ssh_info(self):
+ f = open('ssh_info', 'w')
+ for node in self.nodes:
+ f.write("%s %s %s %s\n" % (node.name, self.testbed.username,
+ node.ssh_config.hostname, node.ssh_config.port))
+ f.close()
+
# Examine the nodes and DIFs, compute the registration and enrollment
# order, the list of IPCPs to create, registrations, ...
def generate(self):
@@ -545,6 +552,7 @@ class Experiment:
def swap_in(self):
# Realize the experiment testbed (testbed-specific)
self.testbed.swap_in(self)
+ self.dump_ssh_info()
def swap_out(self):
# Undo the testbed (testbed-specific)