From 66de7f1a64321da9afa082de4e68b29eee100070 Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Thu, 28 Nov 2019 11:52:10 +0100 Subject: [PATCH] police and shape at different places --- src/mpExperience.py | 4 ++-- src/mpMultiInterfaceConfig.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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"