This commit is contained in:
Quentin De Coninck 2017-06-12 09:37:25 +02:00
parent 3a81f446bf
commit 5272e3b903

View File

@ -13,7 +13,7 @@ class MpMultiInterfaceCongTopo(MpTopo):
for l in self.topoParam.linkCharacteristics: for l in self.topoParam.linkCharacteristics:
self.switch.append(self.addOneSwitchPerLink(l)) self.switch.append(self.addOneSwitchPerLink(l))
self.addLink(self.client,self.switch[-1]) self.addLink(self.client,self.switch[-1])
self.cong_clients.append(self.addHost("CongClient-" + str(len(self.cong_clients))) self.cong_clients.append(self.addHost("CongClient-" + str(len(self.cong_clients))))
self.addLink(self.cong_clients[-1], self.switch[-1]) self.addLink(self.cong_clients[-1], self.switch[-1])
self.addLink(self.switch[-1],self.router, **l.asDict()) self.addLink(self.switch[-1],self.router, **l.asDict())
self.addLink(self.router, self.server) self.addLink(self.router, self.server)