# WBTS17 to SBTS17 migration: CLEANUP

# History
# v0.1 15.12.2016 Iosif SMEU: first draft for new CUTool

# Erin.Le PR334283
define "isAirScale" "false"
for_objects "MRBTS/EQM/APEQM/CABINET/SMOD"
    begin
        if ( param_exist $current_dist_name "prodCodePlanned" )
            begin
                define "prodCodePlanned" get_param $current_dist_name "prodCodePlanned"
                define "trimmedProdCode" replace prodCodePlanned "\..*" "" flags "g"
                if ( trimmedProdCode ) == "473095A"
                    begin
                        define "isAirScale" "true"
                    end
            end
    end
for_objects "MRBTS/WNBTS/WNCELG"
	begin
		define "wncelgDn" $current_dist_name
        if ( isAirScale == "true" && param_exist wncelgDn "hspaSetting" ) del_param wncelgDn "hspaSetting"
    end

# remove old MOIs tree
if ( objects_count "WBTS/MRBTS" ) == 0 abort_file

for_branch "WBTS" del_object $current_dist_name
