#######################################################################################
#######################################################################################
#NIDD_VER: WCDMA17_1701_001_00
#WNBTS: WNBTS_WCDMA17_1701_001
#Migration from WCDMA17_1612_002 to WCDMA17_1701_001
#09.02.2017 / R.Biedka
#######################################################################################

#######################################################################################
#######################################################################################
#genereal version check

for_objects "MRBTS/WNBTS"
	begin
		if not ( get_version $current_dist_name ) == "WCDMA17_1612_002"
			abort_file
	end
#######################################################################################

for_objects "MRBTS/WNBTS"
begin
	for_list $current_dist_name "cPlaneList"
	begin
		if ( not param_exist $current_dist_name "cPlaneList." JOIN $current_index JOIN ".sctpMaxPayloadSize" ) add_param $current_dist_name "cPlaneList." JOIN $current_index JOIN ".sctpMaxPayloadSize"  "1395"
		if ( not param_exist $current_dist_name "cPlaneList." JOIN $current_index JOIN ".sctpPortMin" ) add_param $current_dist_name "cPlaneList." JOIN $current_index JOIN ".sctpPortMin"  "49200"	
	end
	if ( not param_exist $current_dist_name "cacMode" ) add_param $current_dist_name "cacMode"  "dedicatedCac"	
	if ( not param_exist $current_dist_name "committedBitRateCommon" ) add_param $current_dist_name "committedBitRateCommon"  "999900"	
	if ( not param_exist $current_dist_name "sctpAssocMaxRetrans" ) add_param $current_dist_name "sctpAssocMaxRetrans"  "5"	
	if ( not param_exist $current_dist_name "sctpPathMaxRetrans" ) add_param $current_dist_name "sctpPathMaxRetrans"  "5"	
	if ( not param_exist $current_dist_name "sctpValidCookieLife" ) add_param $current_dist_name "sctpValidCookieLife"  "60000"	
	if ( not param_exist $current_dist_name "udpPortMax" ) add_param $current_dist_name "udpPortMax"  "59200"	
	if ( not param_exist $current_dist_name "udpPortMin" ) add_param $current_dist_name "udpPortMin"  "49200"	


	
end

#######################################################################################
#######################################################################################
#######################################################################################
#set proper version

for_objects "MRBTS/WNBTS"
	begin
		set_version $current_dist_name "WCDMA17_1701_001"
		set_adaptation $current_dist_name "com.nokia.srbts.wcdma"
	end
	
for_objects "MRBTS/WNBTS/WNCEL"
	begin
		set_version $current_dist_name "WCDMA17_1701_001"
		set_adaptation $current_dist_name "com.nokia.srbts.wcdma"
	end

for_objects "MRBTS/WNBTS/WNCELG"
	begin
		set_version $current_dist_name "WCDMA17_1701_001"
		set_adaptation $current_dist_name "com.nokia.srbts.wcdma"
	end
	
for_objects "MRBTS/WNBTS/WNPMRNL"
	begin
		set_version $current_dist_name "WCDMA17_1701_001"
		set_adaptation $current_dist_name "com.nokia.srbts.wcdma"
	end

#######################################################################################