From 09ff20509de993d0761174df4c8812cc29980bab Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Tue, 28 Nov 2017 14:26:37 +0100 Subject: 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. --- rumba/testbeds/emulab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3