From a39034893449360868041cd7e061143f6c77275d Mon Sep 17 00:00:00 2001 From: Vincenzo Maffione Date: Thu, 13 Apr 2017 22:55:39 +0200 Subject: prototype: rlite: configure shim-eth IPCPs --- rumba/prototypes/rlite.py | 7 +++++++ 1 file changed, 7 insertions(+) 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) -- cgit v1.2.3