mpExperience: don't set priority on paths if they are the same
This commit is contained in:
parent
9753f109b5
commit
2a94cc2ec7
@ -40,6 +40,7 @@ class MpExperience:
|
|||||||
if isinstance(self.mpTopo, MpMultiInterfaceTopo):
|
if isinstance(self.mpTopo, MpMultiInterfaceTopo):
|
||||||
prioPath0 = self.xpParam.getParam(MpParamXp.PRIOPATH0)
|
prioPath0 = self.xpParam.getParam(MpParamXp.PRIOPATH0)
|
||||||
prioPath1 = self.xpParam.getParam(MpParamXp.PRIOPATH1)
|
prioPath1 = self.xpParam.getParam(MpParamXp.PRIOPATH1)
|
||||||
|
if not prioPath0 == prioPath1:
|
||||||
self.mpTopo.commandTo(self.mpConfig.client, "ip link set dev " +
|
self.mpTopo.commandTo(self.mpConfig.client, "ip link set dev " +
|
||||||
self.mpConfig.getClientInterface(0) + "priority" + str(prioPath0))
|
self.mpConfig.getClientInterface(0) + "priority" + str(prioPath0))
|
||||||
self.mpTopo.commandTo(self.mpConfig.router, "ip link set dev " +
|
self.mpTopo.commandTo(self.mpConfig.router, "ip link set dev " +
|
||||||
|
Loading…
Reference in New Issue
Block a user