aboutsummaryrefslogtreecommitdiff
path: root/rumba/prototypes/rlite.py
diff options
context:
space:
mode:
authorVincenzo Maffione <v.maffione@gmail.com>2017-04-21 23:12:42 +0200
committerVincenzo Maffione <v.maffione@gmail.com>2017-04-21 23:45:06 +0200
commite4662a39489067f0d352d270e25df3da6ff478d8 (patch)
tree972cca8525819b26b633470b711e7a7e1ab280c9 /rumba/prototypes/rlite.py
parentbec81866d4da33405c35c8eb4dc15d4fc5bfbfb7 (diff)
downloadrumba-e4662a39489067f0d352d270e25df3da6ff478d8.tar.gz
rumba-e4662a39489067f0d352d270e25df3da6ff478d8.zip
model, prototypes: enrollment lists contain IPCP objects rather than Node ones
This fixes a conceptual bug, that was leading to unnecessary workarounds in the prototype plugins. All the plugins have been modified to use the correct format of enrollment lists.
Diffstat (limited to 'rumba/prototypes/rlite.py')
-rw-r--r--rumba/prototypes/rlite.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/rumba/prototypes/rlite.py b/rumba/prototypes/rlite.py
index 8da4616..8a06b44 100644
--- a/rumba/prototypes/rlite.py
+++ b/rumba/prototypes/rlite.py
@@ -22,6 +22,8 @@ import rumba.ssh_support as ssh
import rumba.model as mod
import rumba.log as log
+import time
+
logger = log.get_logger(__name__)
@@ -75,7 +77,6 @@ class Experiment(mod.Experiment):
# Generate the command to configure the interface
# name for the shim-eth
if type(ipcp.dif) is mod.ShimEthDIF:
- ipcp.ifname = 'eth1'
cmds.append("rlite-ctl ipcp-config %s netdev %s"
% (ipcp.name, ipcp.ifname))
@@ -102,7 +103,8 @@ class Experiment(mod.Experiment):
}
cmd = "rlite-ctl ipcp-enroll %(enrollee)s %(dif)s "\
"%(lower_dif)s %(enroller)s" % d
- self.execute_commands(e['enrollee'], [cmd])
+ self.execute_commands(e['enrollee'].node, [cmd])
+ time.sleep(1)
def install_prototype(self):
logger.info("installing rlite on all nodes")