diff --git a/src/mpExperience.py b/src/mpExperience.py index ace4de8..0fcf88c 100644 --- a/src/mpExperience.py +++ b/src/mpExperience.py @@ -26,14 +26,16 @@ 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) + upmca = self.xpParam.getParam(MpParamXp.USERPMCARGS) self.mpTopo.commandTo(self.mpConfig.client, upmc + \ - "&>upmc.log &") + upmca + " &>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) + upmsa = self.xpParam.getParam(MpParamXp.USERPMSARGS) self.mpTopo.commandTo(self.mpConfig.server, upms + \ - "&>upms.log &") + upmsa + " &>upms.log &") def cleanUserspacePM(self): if self.xpParam.getParam(MpParamXp.KERNELPMC) != "netlink": diff --git a/src/mpParamXp.py b/src/mpParamXp.py index 147a4aa..d7292e1 100644 --- a/src/mpParamXp.py +++ b/src/mpParamXp.py @@ -9,6 +9,8 @@ class MpParamXp(MpParam): KERNELPMS = "kpms" USERPMC = "upmc" USERPMS = "upms" #userspace path manager client / server + USERPMCARGS = "upmc_args" + USERPMSARGS = "upms_args" CLIENTPCAP = "clientPcap" SERVERPCAP = "serverPcap" XPTYPE = "xpType" @@ -42,6 +44,8 @@ class MpParamXp(MpParam): defaultValue[KERNELPMC] = "fullmesh" defaultValue[USERPMC] = "fullmesh" defaultValue[USERPMS] = "fullmesh" + defaultValue[USERPMCARGS] = "" + defaultValue[USERPMSARGS] = "" defaultValue[SCHED] = "default" defaultValue[CLIENTPCAP] = "no"