Signed-off-by: Benjamin Hesmans <benjamin.hesmans@uclouvain.be>
This commit is contained in:
Benjamin Hesmans 2015-02-23 12:30:32 +01:00
parent b448fd6ce4
commit b9ac0bf3de

View File

@ -26,13 +26,13 @@ class MpExperience:
print("Client : Error, I can't change the userspace pm if the kernel pm is not netlink !")
else:
upmc = self.xpParam.getParam(MpParamXp.USERPMC)
self.mpConfig.commandTo(self.mpConfig.client, upmc + \
self.mpTopo.commandTo(self.mpConfig.client, upmc + \
"&>upmc.log &")
if self.xpParam.getParam(MpParamXp.KERNELPMS) != "netlink":
print("Server : Error, I can't change the userspace pm if the kernel pm is not netlink !")
else:
upms = self.xpParam.getParam(MpParamXp.USERPMS)
self.mpConfig.commandTo(self.mpConfig.server, upms + \
self.mpTopo.commandTo(self.mpConfig.server, upms + \
"&>upms.log &")
def cleanUserspacePM(self):
@ -40,12 +40,12 @@ class MpExperience:
print("Client : Error, I can't change the userspace pm if the kernel pm is not netlink !")
else:
upmc = self.xpParam.getParam(MpParamXp.USERPMC)
self.mpConfig.commandTo(self.mpConfig.client, "killall " + upmc)
self.mpTopo.commandTo(self.mpConfig.client, "killall " + upmc)
if self.xpParam.getParam(MpParamXp.KERNELPMS) != "netlink":
print("Server : Error, I can't change the userspace pm if the kernel pm is not netlink !")
else:
upms = self.xpParam.getParam(MpParamXp.USERPMS)
self.mpConfig.commandTo(self.mpConfig.server, "killall " + upms)
self.mpTopo.commandTo(self.mpConfig.server, "killall " + upms)
def runNetemAt(self):
if not self.mpTopo.changeNetem == "yes":