###########################################
## SCFD file version: 0.3                ##
## Release: TLF/TLC17ASP_1705_002        ##
## LTE version: TLF17ASP_RADIO_1705_002  ##
## LTE version: TLC17ASP_RADIO_1705_002  ##
###########################################



###########
# COMMON: #
###########

####################################################################################################################
# LTE3758 PLMN based pre-emption candidate selection
####################################################################################################################
#OM_LTE_SFS_RNL.18757
add_param minor LNBTS actPlmnBasedPreemption false



####################################################################################################################
# CRL13943 Advance to TL16A MP LTE3127 SRVCC to GSM measurement optimization
# LTE3127 SRVCC to GSM measurement optimization
####################################################################################################################
move_param minor LNCEL_TDD LNCEL actGsmSrvccMeasOpt



####################################################################################################################
# LTE3757 SPID based offload UE candidate selection
####################################################################################################################
#OM_LTE_SFS_RNL.18777
add_param minor LNCEL actLBSpidUeSel false



####################################################################################################################
# PR223995: [LTE3701] Counter profiles update for QCI/ARP ranges and UE category - LTE3701-A-g
####################################################################################################################
mod_param minor PMQAP cfgUECategory "CatM2" "Cat1"


#v0.2
####################################################################################################################
# PR240819: [FL17SP][LTE2823][LTE1788] Consistency check missing; actAutoAcBarring and acbProfileId
####################################################################################################################
#actAutoAcBarring 
#After all cells are checked as described above, check if LNBTS parameter actAutoAcBarring is set to true. 
#(No action is needed it actAutoAcBarring is set to false.)
#If LNBTS parameter actAutoAcBarring is set to true then check that all LNCEL instances have an ACBPR linked to the cell (
#i.e. LNCEL-SIB-acbProfileId is configured to the same value as an existing LNBTS-ACBPR-acbPrId.)
#If LNCEL-SIB-acbProfileId is not configured in all cells then check if there is already a MO instance of ACBPR with no parameters configured in this ACBPR instance (besides the MO instance ID ACBPR-acbPrId) and use the instance ID of this ACBPR. 
#If there is no empty ACBPR instance then create a new MO instance ACBPR under LNBTS with no parameters configured in this ACBPR instance and use its instance ID. 
#Add the instance ID of the empty ACBPR instance to LNCEL-SIB-acbProfileId (i.e. LNCEL-SIB-acbProfileId shall be equal to LNBTS-ACBPR-acbPrId) in all cells where LNCEL-SIB-acbProfileId is not configured. With this the newly created ACBPR instance is linked to the cell. 
#With this last step it will be ensured that all cells have an ACBPR linked to the cell when actAutoAcBarring is set to true. [PR240819]

add_param minor SIB acbProfileId temp

add_param minor ACBPR tempEmpty temp

#Add empty ACBPR
add_param minor LNBTS tempKey temp
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS tempKey = CONST "1" == CONST "1" ? PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS} actAutoAcBarring :
dependence_add_obj_with_next_free_instance minor p MRBTS/LNBTS MRBTS/LNBTS/ACBPR tempKey true - -
del_param minor LNBTS tempKey

#v0.3 CAS-115995-B8Q0 - Cell Configuration lost (RNW Object Incorrect) after FZM upgrade from FLF17A to FLF18
set_operation minor ACBPR create
set_adaptation minor ACBPR NOKLTE
#v0.3 end

add_param minor ACBPR tempEmpty true
dependence_add_param_based_on_string minor MRBTS/LNBTS/ACBPR tempEmpty true tempEmptyId temp
dependence_add_param_based_on_MOC_instance minor ACBPR id + 0
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/ACBPR tempEmptyId = CONST "1" == CONST "1" ? PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/ACBPR-${ACBPR} id :

copy_param_to_array_param_relative minor MRBTS/LNBTS/ACBPR tempEmptyId MRBTS-${MRBTS} tempEmptyIdList

dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL/SIB acbProfileId = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL}/SIB-${SIB} acbProfileId == CONST "temp" ? LISTVALUE MRBTS-${MRBTS} tempEmptyIdList 0 :

dependence_del_param minor SIB acbProfileId "temp" acbProfileId

del_list minor MRBTS tempEmptyIdList
del_param minor ACBPR id
del_param minor ACBPR tempEmpty
del_param minor ACBPR tempEmptyId

#copy_param_to_array_param_relative minor MRBTS/LNBTS/ACBPR tempSMODID MRBTS-${MRBTS} tempSMODIDList

#v0.2 end


###########
# TDD:    #
###########



#history:
add_log minor "Conversion from TLF/TLC17ASP_RADIO_1705_001 to TLF/TLC17ASP_RADIO_1705_002"
