mpExperienceSiri: register xp

This commit is contained in:
Quentin De Coninck 2016-04-14 16:01:39 +02:00
parent 151497d1d7
commit 134f3897d2
3 changed files with 7 additions and 2 deletions

View File

@ -10,6 +10,7 @@ class MpExperience:
EPLOAD = "epload" EPLOAD = "epload"
NETPERF = "netperf" NETPERF = "netperf"
AB = "ab" AB = "ab"
SIRI = "siri"
SENDFILE = "sendfile" SENDFILE = "sendfile"
def __init__(self, xpParam, mpTopo, mpConfig): def __init__(self, xpParam, mpTopo, mpConfig):

View File

@ -53,7 +53,7 @@ class MpExperienceSiri(MpExperience):
MpExperienceSiri.SERVER_LOG) MpExperienceSiri.SERVER_LOG)
def getSiriServerCmd(self): def getSiriServerCmd(self):
s = "python " + os.path.dirname(os.path.abspath(__file__)) + \ s = "python3 " + os.path.dirname(os.path.abspath(__file__)) + \
"/siri_server.py &>" + MpExperienceSiri.SERVER_LOG + "&" "/siri_server.py &>" + MpExperienceSiri.SERVER_LOG + "&"
print(s) print(s)
return s return s

View File

@ -14,6 +14,7 @@ from mpExperienceSendFile import MpExperienceSendFile
from mpExperienceEpload import MpExperienceEpload from mpExperienceEpload import MpExperienceEpload
from mpExperienceNetperf import MpExperienceNetperf from mpExperienceNetperf import MpExperienceNetperf
from mpExperienceAb import MpExperienceAb from mpExperienceAb import MpExperienceAb
from mpExperienceSiri import MpExperienceSiri
from mpExperienceNone import MpExperienceNone from mpExperienceNone import MpExperienceNone
from mpExperience import MpExperience from mpExperience import MpExperience
from mpECMPSingleInterfaceTopo import MpECMPSingleInterfaceTopo from mpECMPSingleInterfaceTopo import MpECMPSingleInterfaceTopo
@ -96,6 +97,9 @@ class MpXpRunner:
elif xp == MpExperience.AB: elif xp == MpExperience.AB:
MpExperienceAb(self.xpParam, self.mpTopo, MpExperienceAb(self.xpParam, self.mpTopo,
self.mpTopoConfig) self.mpTopoConfig)
elif xp == MpExperience.SIRI:
MpExperienceSiri(self.xpParam, self.mpTopo,
self.mpTopoConfig)
elif xp == MpExperience.SENDFILE: elif xp == MpExperience.SENDFILE:
MpExperienceSendFile(self.xpParam, self.mpTopo, MpExperienceSendFile(self.xpParam, self.mpTopo,
self.mpTopoConfig) self.mpTopoConfig)