mpExperienceSiri: register xp
This commit is contained in:
parent
151497d1d7
commit
134f3897d2
@ -10,6 +10,7 @@ class MpExperience:
|
||||
EPLOAD = "epload"
|
||||
NETPERF = "netperf"
|
||||
AB = "ab"
|
||||
SIRI = "siri"
|
||||
SENDFILE = "sendfile"
|
||||
|
||||
def __init__(self, xpParam, mpTopo, mpConfig):
|
||||
|
@ -53,7 +53,7 @@ class MpExperienceSiri(MpExperience):
|
||||
MpExperienceSiri.SERVER_LOG)
|
||||
|
||||
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 + "&"
|
||||
print(s)
|
||||
return s
|
||||
|
@ -14,6 +14,7 @@ from mpExperienceSendFile import MpExperienceSendFile
|
||||
from mpExperienceEpload import MpExperienceEpload
|
||||
from mpExperienceNetperf import MpExperienceNetperf
|
||||
from mpExperienceAb import MpExperienceAb
|
||||
from mpExperienceSiri import MpExperienceSiri
|
||||
from mpExperienceNone import MpExperienceNone
|
||||
from mpExperience import MpExperience
|
||||
from mpECMPSingleInterfaceTopo import MpECMPSingleInterfaceTopo
|
||||
@ -96,6 +97,9 @@ class MpXpRunner:
|
||||
elif xp == MpExperience.AB:
|
||||
MpExperienceAb(self.xpParam, self.mpTopo,
|
||||
self.mpTopoConfig)
|
||||
elif xp == MpExperience.SIRI:
|
||||
MpExperienceSiri(self.xpParam, self.mpTopo,
|
||||
self.mpTopoConfig)
|
||||
elif xp == MpExperience.SENDFILE:
|
||||
MpExperienceSendFile(self.xpParam, self.mpTopo,
|
||||
self.mpTopoConfig)
|
||||
|
Loading…
Reference in New Issue
Block a user