add args for userspace pm
Signed-off-by: Benjamin Hesmans <benjamin.hesmans@uclouvain.be>
This commit is contained in:
parent
b9ac0bf3de
commit
2f516754e1
@ -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":
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user