aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-11-28 14:26:37 +0100
committerSander Vrijders <sander.vrijders@ugent.be>2017-11-28 14:38:05 +0100
commit09ff20509de993d0761174df4c8812cc29980bab (patch)
treed44b791273cc4d832ba7bd21d4cd37666849c344
parentd8cf9a855cbaf57758cc0741f54845f2b0cb3514 (diff)
downloadrumba-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.
-rw-r--r--rumba/testbeds/emulab.py2
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)