#######################################################################################
#######################################################################################
#NIDD_VER: GF16_00
#GF16.5
#Migration from GF16 MP1 to GF16.5
#15.12.2016/L.Preuss
#######################################################################################

#######################################################################################
#######################################################################################
#General version checking

if ( objects_count "BCF/MRBTS/BTSSCC/BTSSCG/BTSNE" ) == 0 abort_file

for_objects "BCF/MRBTS/BTSSCC/BTSSCG/BTSNE"
	begin
		if not ( get_version $current_dist_name ) == "GF16"
			abort_file
		define "bcfId" $current_BCF
	end
#######################################################################################

#######################################################################################
#######################################################################################
#add PABBAC object without params to distinguish GF16.5 / GF16.5 MP1 in next ruleset
#PABBAC was introduced in GF16.5 with optional parameters

#Add BCF MRBTS BTSSCC BTSSCG otherwise migration tool won't allow to add child object
add_object "BCF-" JOIN bcfId
add_object "BCF-" JOIN bcfId JOIN "/MRBTS-1"
add_object "BCF-" JOIN bcfId JOIN "/MRBTS-1" JOIN "/BTSSCC-1" 
add_object "BCF-" JOIN bcfId JOIN "/MRBTS-1" JOIN "/BTSSCC-1" JOIN "/BTSSCG-1"


if ( objects_count "BCF/MRBTS/BTSSCC/BTSSCG/PABBAC" ) == 0
	begin
		for_objects "BCF/MRBTS/BTSSCC/BTSSCG"
			begin
				define "pabbacDN" $current_dist_name JOIN "/PABBAC-1"
				add_object pabbacDN
				set_version pabbacDN "GF16"
				set_operation pabbacDN "create"
			end
	end
#######################################################################################

#######################################################################################
#######################################################################################
#Version not changed for GF16.5 - remains as GF16	
#######################################################################################

#######################################################################################
#######################################################################################
#migration GF16.5 - GF16.5 MP1 is skipped (no updates crucial for migration in GF16.5 MP1)
#next ruleset migrates directly to GF17 	
#######################################################################################