diff --git a/src/mpExperience.py b/src/mpExperience.py index bc4017d..f59186f 100644 --- a/src/mpExperience.py +++ b/src/mpExperience.py @@ -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) diff --git a/src/mpMultiInterfaceConfig.py b/src/mpMultiInterfaceConfig.py index b089a5f..63ded6d 100644 --- a/src/mpMultiInterfaceConfig.py +++ b/src/mpMultiInterfaceConfig.py @@ -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"