diff options
author | Vincenzo Maffione <v.maffione@gmail.com> | 2017-04-13 22:55:39 +0200 |
---|---|---|
committer | Vincenzo Maffione <v.maffione@gmail.com> | 2017-04-13 22:55:39 +0200 |
commit | a39034893449360868041cd7e061143f6c77275d (patch) | |
tree | e468388afc19f677cb6d0c58e72910d33b10e709 | |
parent | 1f70912a80177b79905242dc7bd8c013625d85a5 (diff) | |
download | rumba-a39034893449360868041cd7e061143f6c77275d.tar.gz rumba-a39034893449360868041cd7e061143f6c77275d.zip |
prototype: rlite: configure shim-eth IPCPs
-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) |