diff options
author | Marco Capitani <m.capitani@nextworks.it> | 2017-06-07 11:08:39 +0200 |
---|---|---|
committer | Marco Capitani <m.capitani@nextworks.it> | 2017-06-07 11:08:39 +0200 |
commit | d62b0595ab660d6c23ab24bd94cd79453f0129ff (patch) | |
tree | 06e6db10120307f9091db907cfc562384110bc9d /rumba/prototypes/irati.py | |
parent | 77dccda7380679447fd8ad3176d239901301ba16 (diff) | |
parent | db18f01116739a2854c4305a7ad72da8c56d446d (diff) | |
download | rumba-d62b0595ab660d6c23ab24bd94cd79453f0129ff.tar.gz rumba-d62b0595ab660d6c23ab24bd94cd79453f0129ff.zip |
Merge branch 'master' into jfed-irati-fixes
Diffstat (limited to 'rumba/prototypes/irati.py')
-rw-r--r-- | rumba/prototypes/irati.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/rumba/prototypes/irati.py b/rumba/prototypes/irati.py index c47d0d2..1e75efc 100644 --- a/rumba/prototypes/irati.py +++ b/rumba/prototypes/irati.py @@ -36,6 +36,9 @@ logger = log.get_logger(__name__) # An experiment over the IRATI implementation class Experiment(mod.Experiment): + def prototype_name(self): + return 'irati' + @staticmethod def real_sudo(s): return 'sudo ' + s @@ -82,7 +85,7 @@ class Experiment(mod.Experiment): + self.sudo("./install-from-scratch")] for node in self.nodes: - ssh.execute_commands(self.testbed, node.ssh_config, + ssh.execute_proxy_commands(self.testbed, node.ssh_config, cmds, time_out=None) def setup(self): @@ -230,16 +233,10 @@ class Experiment(mod.Experiment): next_vlan += 10 self.shim2vlan[dif.name] = vlan - # TODO: what format are the mappings registered in? Is this ok? - app_mappings = [] - for node in self.nodes: - app_mappings += [{'name': app, 'dif': self.dif_name(dif)} - for app in node.registrations - for dif in node.registrations[app]] - # If some app directives were specified, use those to build da.map. # Otherwise, assume the standard applications are to be mapped in # the DIF with the highest rank. + app_mappings = [] if len(app_mappings) == 0: if len(self.dif_ordering) > 0: for adm in \ |