correct var names for mininet

Signed-off-by: Benjamin Hesmans <benjamin.hesmans@uclouvain.be>
This commit is contained in:
Benjamin Hesmans 2015-01-07 14:52:43 +01:00
parent 454ac02886
commit b08d952454
2 changed files with 3 additions and 4 deletions

View File

@ -10,9 +10,9 @@ class MpLinkCharacteristics:
def asDict(self): def asDict(self):
d = {} d = {}
d['delay'] = self.delay d['bw'] = int(self.bandwidth)
d['queueSize'] = self.queueSize d['delay'] = self.delay + "ms"
d['bandwidth'] = self.bandwidth d['max_queue_size'] = int(self.queueSize)
return d return d
def __str__(self): def __str__(self):

View File

@ -22,7 +22,6 @@ class MpTopo:
return self.topoBuilder.addSwitch(switch) return self.topoBuilder.addSwitch(switch)
def addLink(self, fromA, toB, **kwargs): def addLink(self, fromA, toB, **kwargs):
print(kwargs)
self.topoBuilder.addLink(fromA,toB,**kwargs) self.topoBuilder.addLink(fromA,toB,**kwargs)
def getCLI(self): def getCLI(self):