mpExperience: added openBup xp param
Allows to specify if backup subflows should be opened or not directly
This commit is contained in:
parent
bf6802b57b
commit
c3d1f41615
@ -33,6 +33,7 @@ class MpExperience:
|
||||
self.runUserspacePM()
|
||||
self.mpConfig.configureNetwork()
|
||||
self.changeMetric()
|
||||
self.changeOpenBup()
|
||||
self.putPriorityOnPaths()
|
||||
self.runTcpDump()
|
||||
self.runNetemAt()
|
||||
@ -43,6 +44,11 @@ class MpExperience:
|
||||
if int(metric) >= 0:
|
||||
self.mpTopo.notNSCommand("echo " + metric + " > /sys/module/mptcp_sched_metric/parameters/metric")
|
||||
|
||||
def changeOpenBup(self):
|
||||
openBup = self.xpParam.getParam(MpParamXp.OPENBUP)
|
||||
if int(openBup) >= 0:
|
||||
self.mpTopo.notNSCommand("echo" + openBup + " > /sys/module/mptcp_fullmesh/parameters/open_bup")
|
||||
|
||||
def putPriorityOnPaths(self):
|
||||
# Only meaningful if mpTopo is instance of MpMultiInterfaceTopo
|
||||
if isinstance(self.mpTopo, MpMultiInterfaceTopo):
|
||||
|
@ -63,6 +63,7 @@ class MpParamXp(MpParam):
|
||||
EXPIRATION = "expiration"
|
||||
BUFFERAUTOTUNING = "bufferAutotuning"
|
||||
METRIC = "metric"
|
||||
OPENBUP = "openBup"
|
||||
|
||||
|
||||
# global sysctl
|
||||
@ -101,6 +102,7 @@ class MpParamXp(MpParam):
|
||||
defaultValue[EXPIRATION] = "300"
|
||||
defaultValue[BUFFERAUTOTUNING] = "1"
|
||||
defaultValue[METRIC] = "-1"
|
||||
defaultValue[OPENBUP] = "-1"
|
||||
|
||||
defaultValue[CLIENTPCAP] = "no"
|
||||
defaultValue[SERVERPCAP] = "no"
|
||||
|
Loading…
Reference in New Issue
Block a user