wip
correct var names for mininet Signed-off-by: Benjamin Hesmans <benjamin.hesmans@uclouvain.be>
This commit is contained in:
parent
454ac02886
commit
b08d952454
@ -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):
|
||||||
|
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user