From 1252d24aa212e9ab6235b3ce9d8743b09efac9fe Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Mon, 12 Jun 2017 10:01:57 +0200 Subject: [PATCH] Fixing some Mininet internals... --- src/mpMultiInterfaceCongConfig.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/mpMultiInterfaceCongConfig.py b/src/mpMultiInterfaceCongConfig.py index 160b39b..ec59632 100644 --- a/src/mpMultiInterfaceCongConfig.py +++ b/src/mpMultiInterfaceCongConfig.py @@ -57,8 +57,16 @@ class MpMultiInterfaceCongConfig(MpConfig): self.client = self.topo.getHost(MpTopo.clientName) self.server = self.topo.getHost(MpTopo.serverName) self.router = self.topo.getHost(MpTopo.routerName) - self.cong_clients = self.topo.getCongClients() - self.cong_servers = self.topo.getCongServers() + cong_client_names = self.topo.getCongClients() + self.cong_clients = [] + for cn in cong_client_names: + self.cong_clients.append(self.topo.getHost(cn)) + + cong_server_names = self.topo.getCongServers() + self.cong_servers = [] + for sn in cong_server_names: + self.cong_servers.append(self.topo.getHost(sn)) + i = 0 netmask = "255.255.255.0" links = self.topo.getLinkCharacteristics()