Commit 0e4062a2 authored by juvancic's avatar juvancic
Browse files

test configuration + init

parent c1886e45
Loading
Loading
Loading
Loading
+381 −331
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ module LibIot_VxLTE_Functions {
	import from AtsImsIot_TestConfiguration all; 
	import from AtsImsIot_TestSystem all;
	
	group ConfigurationFunctions{
		/**
		* @desc 	Check and create a list of monitor interfaces based on PIXITS
		* @param 	 
@@ -375,8 +376,56 @@ module LibIot_VxLTE_Functions {
				f_cf_monitor_down_diameter(vc_vxlte_monitor_components.sh);
			}
		}
	}//end group ConfigurationFunctions
	group CheckFunctions{
		/**
		* @desc 	Check monitor component based on interface name
		* @param 	 
		* @return 	true - Monitorinteface available/active
		* 			false - Monitorinteface not exists or not available/active
		*/
		function f_SipMonitorInterface_available(charstring p_interfaceName) runs on ImsTestCoordinator return boolean{

//			if (vc_vxlte_monitor_components.gmA.vc_interfacename) {return true;}
			if ((isvalue(vc_MonIntfList.gmA))  and (vc_MonIntfList.gmA.interfaceName==p_interfaceName)){ return true;}
			if ((isvalue(vc_MonIntfList.gmB))  and (vc_MonIntfList.gmB.interfaceName==p_interfaceName)){ return true;}

			if ((isvalue(vc_MonIntfList.ic))   and (vc_MonIntfList.ic.interfaceName==p_interfaceName)){ return true;}

			if ((isvalue(vc_MonIntfList.mwPI)) and (vc_MonIntfList.mwPI.interfaceName==p_interfaceName)){ return true;}
			if ((isvalue(vc_MonIntfList.mwPS)) and (vc_MonIntfList.mwPS.interfaceName==p_interfaceName)){ return true;}
			if ((isvalue(vc_MonIntfList.mwIS)) and (vc_MonIntfList.mwIS.interfaceName==p_interfaceName)){ return true;}
			if ((isvalue(vc_MonIntfList.mwPB)) and (vc_MonIntfList.mwPB.interfaceName==p_interfaceName)){ return true;}
			if ((isvalue(vc_MonIntfList.mwIB)) and (vc_MonIntfList.mwIB.interfaceName==p_interfaceName)){ return true;}

			if ((isvalue(vc_MonIntfList.isc))  and (vc_MonIntfList.isc.interfaceName==p_interfaceName)){ return true;}
					
		    return false;
		}
		
		/**
		* @desc 	Check monitor component based on interface name
		* @param 	 
		* @return 	true - Monitorinteface available/active
		* 			false - Monitorinteface not exists or not available/active
		*/
		function f_DiameterMonitorInterface_available(charstring p_interfaceName) runs on ImsTestCoordinator return boolean{

			if ((isvalue(vc_MonIntfList.cxIH)) and (vc_MonIntfList.cxIH.interfaceName==p_interfaceName)){ return true;}
			if ((isvalue(vc_MonIntfList.cxSH)) and (vc_MonIntfList.cxSH.interfaceName==p_interfaceName)){ return true;}
			
			if ((isvalue(vc_MonIntfList.gx))   and (vc_MonIntfList.gx.interfaceName==p_interfaceName)){ return true;}
			if ((isvalue(vc_MonIntfList.rx))   and (vc_MonIntfList.rx.interfaceName==p_interfaceName)){ return true;}
			if ((isvalue(vc_MonIntfList.s6a))  and (vc_MonIntfList.s6a.interfaceName==p_interfaceName)){ return true;}
			if ((isvalue(vc_MonIntfList.s9))   and (vc_MonIntfList.s9.interfaceName==p_interfaceName)){ return true;}
			
			if ((isvalue(vc_MonIntfList.sh))   and (vc_MonIntfList.sh.interfaceName==p_interfaceName)){ return true;}
			
			return false;
		}
		
	}
	group temporary_functions{	
	function f_check_and_setup_monitor_interfaces() runs on ImsTestCoordinator{
		
		var InterfaceAvailableList v_VxLTE_MonIntf_Available;
@@ -517,3 +566,4 @@ module LibIot_VxLTE_Functions {
				return (v_MI_List_updated);
			}
	}
}	
 No newline at end of file