patch for Iperf2_Unidir ci_infra %currenthost%
This commit is contained in:
committed by
Raphael Defosseux
parent
dad8edb448
commit
9890896b9c
@@ -881,8 +881,8 @@ class OaiCiTest():
|
|||||||
def Iperf2_Unidir(self,HTML,RAN,EPC,CONTAINERS):
|
def Iperf2_Unidir(self,HTML,RAN,EPC,CONTAINERS):
|
||||||
if self.ue_ids == [] or self.svr_id == None or len(self.ue_ids) != 1:
|
if self.ue_ids == [] or self.svr_id == None or len(self.ue_ids) != 1:
|
||||||
raise Exception("no module names in self.ue_ids or/and self.svr_id provided, multi UE scenario not supported")
|
raise Exception("no module names in self.ue_ids or/and self.svr_id provided, multi UE scenario not supported")
|
||||||
ue = cls_module.Module_UE(self.ue_ids[0].strip())
|
ue = cls_module.Module_UE(self.ue_ids[0].strip(),self.nodes[0].strip())
|
||||||
svr = cls_module.Module_UE(self.svr_id)
|
svr = cls_module.Module_UE(self.svr_id,self.svr_node)
|
||||||
ueIP = ue.getIP()
|
ueIP = ue.getIP()
|
||||||
if not ueIP:
|
if not ueIP:
|
||||||
return (False, f"UE {ue.getName()} has no IP address")
|
return (False, f"UE {ue.getName()} has no IP address")
|
||||||
|
|||||||
+1
-1
@@ -269,7 +269,7 @@ def GetParametersFromXML(action):
|
|||||||
CiTestObj.nodes = test.findtext('nodes').split(' ')
|
CiTestObj.nodes = test.findtext('nodes').split(' ')
|
||||||
ping_rttavg_threshold = test.findtext('ping_rttavg_threshold') or ''
|
ping_rttavg_threshold = test.findtext('ping_rttavg_threshold') or ''
|
||||||
|
|
||||||
elif action == 'Iperf':
|
elif action == 'Iperf' or action == 'Iperf2_Unidir':
|
||||||
CiTestObj.iperf_args = test.findtext('iperf_args')
|
CiTestObj.iperf_args = test.findtext('iperf_args')
|
||||||
CiTestObj.ue_ids = test.findtext('id').split(' ')
|
CiTestObj.ue_ids = test.findtext('id').split(' ')
|
||||||
CiTestObj.svr_id = test.findtext('svr_id') or None
|
CiTestObj.svr_id = test.findtext('svr_id') or None
|
||||||
|
|||||||
Reference in New Issue
Block a user