diff options
author | Sander Vrijders <sander.vrijders@ugent.be> | 2017-11-28 14:26:37 +0100 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2017-11-28 14:38:05 +0100 |
commit | 09ff20509de993d0761174df4c8812cc29980bab (patch) | |
tree | d44b791273cc4d832ba7bd21d4cd37666849c344 /rumba/testbeds | |
parent | d8cf9a855cbaf57758cc0741f54845f2b0cb3514 (diff) | |
download | rumba-09ff20509de993d0761174df4c8812cc29980bab.tar.gz rumba-09ff20509de993d0761174df4c8812cc29980bab.zip |
testbeds: Fix bad parsing in emulab plugin
The Emulab plugin was not functioning anymore after the changes to the
SSH support. This fixes the parsing of the topology map.
Diffstat (limited to 'rumba/testbeds')
-rw-r--r-- | rumba/testbeds/emulab.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rumba/testbeds/emulab.py b/rumba/testbeds/emulab.py index 3ba625d..075dcea 100644 --- a/rumba/testbeds/emulab.py +++ b/rumba/testbeds/emulab.py @@ -237,7 +237,7 @@ class Testbed(mod.Testbed): topomap = ssh.execute_command(self, experiment.nodes[0].ssh_config, cmd) # Almost as ugly as yo momma index = topomap.rfind("# lans") - topo_array = topomap[:index].split('\\n')[1:-1] + topo_array = topomap[:index].split('\n')[1:-1] # Array contains things like 'r2b1,link7:10.1.6.3 link6:10.1.5.3' for item in topo_array: item_array = re.split(',? ?', item) |