mininet-sample/src/mpExperience.py
Benjamin Hesmans e1e26d3817 wip
Signed-off-by: Benjamin Hesmans <benjamin.hesmans@uclouvain.be>
2015-01-08 19:52:45 +01:00

31 lines
597 B
Python

from mpParamXp import MpParamXp
class MpExperience:
PING = "ping"
def __init__(self, xpParam, mpTopo, mpConfig):
self.xpParam = xpParam
self.mpTopo = mpTopo
self.mpConfig = mpConfig
print(self.xpParam)
def classicRun(self):
self.prepare()
self.run()
self.clean()
def prepare(self):
self.runTcpDump()
pass
def run(self):
pass
def clean(self):
pass
def runTcpDump(self):
if self.xpParam.getParam(MpParamXp.CLIENTPCAP) == "yes":
print("todo : run client dump")
if self.xpParam.getParam(MpParamXp.SERVERPCAP) == "yes":
print("todo : run server dump")