diff options
-rw-r--r-- | rumba/prototypes/rlite.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rumba/prototypes/rlite.py b/rumba/prototypes/rlite.py index 387c502..4ab4f1f 100644 --- a/rumba/prototypes/rlite.py +++ b/rumba/prototypes/rlite.py @@ -58,6 +58,7 @@ class Experiment(mod.Experiment): cmds = [] for ipcp in node.ipcps: + # Generate the command to create the IPCP if type(ipcp.dif) is mod.NormalDIF: ipcp_type = 'normal' elif type(ipcp.dif) is mod.ShimEthDIF: @@ -72,6 +73,12 @@ class Experiment(mod.Experiment): cmds.append("rlite-ctl ipcp-create %s %s %s" % \ (ipcp.name, ipcp_type, ipcp.dif.name)) + # Generate the command to configure the interface + # name for the shim-eth + if type(ipcp.dif) is mod.ShimEthDIF: + cmds.append("rlite-ctl ipcp-config %s netdev %s" \ + % (ipcp.name, ipcp.ifname)) + ssh.execute_commands(self.testbed, node.ssh_config, cmds, time_out = None) |