police and shape at different places

This commit is contained in:
Quentin De Coninck 2019-11-28 11:52:10 +01:00
parent 7cc7b08415
commit 66de7f1a64
2 changed files with 4 additions and 4 deletions

View File

@ -152,7 +152,7 @@ class MpExperience:
print("boxes " + str(lbox) + " " + str(rbox))
cmd = l.buildNetemCmd(lif)
print(cmd)
self.mpTopo.commandTo(rbox, cmd)
self.mpTopo.commandTo(lbox, cmd)
cmd = l.buildNetemCmd(rif)
print(cmd)
self.mpTopo.commandTo(rbox, cmd)
@ -160,7 +160,7 @@ class MpExperience:
irif = self.mpConfig.getMidR2LIncomingInterface(i)
cmd = l.buildPolicingCmd(ilif)
print(cmd)
self.mpTopo.commandTo(rbox, cmd)
self.mpTopo.commandTo(lbox, cmd)
cmd = l.buildPolicingCmd(irif)
print(cmd)
self.mpTopo.commandTo(rbox, cmd)

View File

@ -130,13 +130,13 @@ class MpMultiInterfaceConfig(MpConfig):
return self.getSwitchServerName(id)
def getMidL2RInterface(self, id):
return self.getMidRightName(id) + "-eth2"
return self.getMidLeftName(id) + "-eth2"
def getMidR2LInterface(self, id):
return self.getMidRightName(id) + "-eth1"
def getMidL2RIncomingInterface(self, id):
return self.getMidRightName(id) + "-eth1"
return self.getMidLeftName(id) + "-eth1"
def getMidR2LIncomingInterface(self, id):
return self.getMidRightName(id) + "-eth2"