###########################################
## SCFD file version: 0.2                ##
## Release: FLF/FLC18_1711_002           ##
## LTE version: FLF18_RADIO_1711_002     ##
## LTE version: FLC18_RADIO_1711_002     ##
###########################################





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

####################################################################################################################
# PR290829: [FL00][FSMr3][AirScale]TX2RelocPrep parameter needs to be modificable
####################################################################################################################
#tX2RelocPrep made visible at the GUI
add_param minor LNBTS tX2RelocPrep 500



####################################################################################################################
# CRL19653 UTRA Capability Handling
####################################################################################################################
del_param minor LNBTS actUtraCapabilityEnqRed



####################################################################################################################
# LTE3613-B Flexible duplexing gap for FDD - Support of NB-IoT features together with Flexible duplexing gap
####################################################################################################################
#OM_LTE_SFS_RNL.19509 Migration of the new mandatory LTE3613 activation parameter actFlexDupGap (subfeature B)
#For all LNCEL instances do:
#if a subordinate LNCEL_FDD exists and the parameter actFlexDupGap exits then
#the new, mandatory parameter actFlexDupGap must be added to the superior LNCEL instance and initialized with the value of the LNCEL_FDD parameter actFlexDupGap.
#else
#the new, mandatory parameter actFlexDupGap must be added to the LNCEL instance and initialized with the default value.
#Hint:
#The LNCEL_FDD parameter actFlexDupGap had to be moved to LNCEL because NB-IoT support was additionally requested with subfeature B.

add_param minor LNCEL actFlexDupGap false
del_param minor LNCEL_FDD actFlexDupGap



####################################################################################################################
# CRL20266 Disable RSC for Intra-cell HO for TTIB
####################################################################################################################
#OM_LTE_SFS_RNL.19819 Migration rule for new LNCEL parameter actTtibRsc
#For each LNCEL instance check if actTtiBundling is set to 'true'. If LNCEL parameter actTtiBundling is set to 'true' then the new LNCEL parameter actTtibRsc must be added to the same LNCEL instance with its default value.
dependence_add_param minor LNCEL actTtiBundling true actTtibRsc true



####################################################################################################################
# CRL19755 Fast RLF T312 Time
####################################################################################################################
#OM_LTE_SFS_RNL.19907 Migration rule for new parameters LNCEL-useT312 and LNHOIF-useT312
#In each LNCEL instance add the new mandatory parameter useT312 with its default value 'false'.
#In each LNHOIF instance add the new mandatory parameter useT312 with its default value 'false'.

add_param minor LNCEL useT312 false
add_param minor LNHOIF useT312 false



####################################################################################################################
# LTE2959 Flexi Zone Single Frequency Network
####################################################################################################################
add_param minor PMRNL mtSFN 15min



####################################################################################################################
# PR291876: [LTE4409][trunk][nbiot] actOtdoa can be set to TRUE for NB-IoT Inband cell
####################################################################################################################
#if the cellTechnology of the LNCEL instance is configured to 'NB-IoT-FDD' actOtdoa must be configured to 'false'
#no migration requirements
#dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL actOtdoa = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL} cellTechnology != CONST "NB-IoT-FDD" ? CONST "false" :





###########
# FDD:    #
###########

####################################################################################################################
# PR288482: NIDD change Request - Move 4 parameters from CAPR class to LNCEL
####################################################################################################################
#OM_LTE_SFS_RNL.19918 Migration of PR288482 parameters:
#Creation/initialization of new parameters:
#For all instances of MOC LNCEL configured as a PCell (an instance of MOC LNCEL having one or more instance/s of MOC CAREL defined):
#If any instance/s of MOC CAPR exist/s, then for all PCells as defined above
#LNCEL-dlCaMinPcellCqi shall be created and initialized with the value of dlCaMinPcellCqi from the instance of CAPR with the smallest value of CAPR-caPrId, where CAPR-dlCaMinPcellCqi is defined.
#LNCEL-dlCaCqiWindow shall be created and initialized with the value of dlCaCqiWindow from the instance of CAPR with the smallest value of CAPR-caPrId, where CAPR-dlCaCqiWindow is defined.
#LNCEL-ulCaMinPcellSinr shall be created and initialized with the value of ulCaMinPcellSinr from the instance of CAPR with the smallest value of CAPR-caPrId, where CAPR-ulCaMinPcellSinr is defined.
#LNCEL-ulCaSinrWindow shall be created and initialized with the value of ulCaSinrWindow from the instance of CAPR with the smallest value of CAPR-caPrId, where CAPR-ulCaSinrWindow is defined.
#If LNBTS-actDLCAggr is 'true' and no instance/s of MOC CAPR exist/s where CAPR-dlCaMinPcellCqi is defined, then LNCEL-dlCaMinPcellCqi shall be initialized with its default value.
#If LNBTS-actDLCAggr is 'true' and no instance/s of MOC CAPR exist/s where CAPR-ulCaMinPcellSinr is defined, then LNCEL-ulCaMinPcellSinr shall be initialized with its default value.
#Deletion of existing parameters:
#For all instances of MOC CAPR
#delete all following parameters (if defined):
#CAPR-dlCaMinPcellCqi
#CAPR-dlCaCqiWindow
#CAPR-ulCaMinPcellSinr
#CAPR-ulCaSinrWindow

#these 4 parameters were added in NIDD FLF18_RADIO_1707_002, not added in migration as optional

add_param minor LNCEL isPcell false
add_param minor CAREL carelExists true
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL isPcell = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL}/CAREL-1 carelExists == CONST "true" ? CONST "true" :
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL isPcell = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL}/CAREL-2 carelExists == CONST "true" ? CONST "true" :
del_param minor CAREL carelExists

add_param minor LNCEL tempCondition false
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL tempCondition = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL} isPcell == CONST "true" ? CONST "true" :
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL tempCondition = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL} cellTechnology != CONST "FDD" ? CONST "false" :
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL tempCondition = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS} actDLCAggr != CONST "true" ? CONST "false" :
#del_param minor LNCEL isPcell

dependence_add_param minor LNCEL tempCondition true dlCaMinPcellCqi 0
dependence_add_param minor LNCEL tempCondition true ulCaMinPcellSinr 0
del_param minor LNCEL tempCondition

del_param minor CAPR dlCaCqiWindow
del_param minor CAPR dlCaMinPcellCqi
del_param minor CAPR ulCaMinPcellSinr
del_param minor CAPR ulCaSinrWindow




#v0.2 PR304187: CRL20777 Change Migration rule for dlCaMinPcellCqiQci1/ulCaMinPcellSinrQci1
####################################################################################################################
# CRL20777 CA Link Qualification for VoLTE
####################################################################################################################
#OM_LTE_SFS_RNL.19920 Migration of CRL20777 parameters:
#Creation/initialization of new parameters:
#If LNBTS-actDLCAggr is 'true' AND LNBTS_FDD-actConvVoice is 'true', then for all instances of MOC LNCEL
#configured as a PCell (an instance of MOC LNCEL having one or more instance/s of MOC CAREL defined)
#following parameters must be created and initialized in following way:
#   - LNCEL-dlCaMinPcellCqiQci1 shall be set equal to the value of LNCEL-dlCaMinPcellCqi
#   - LNCEL-ulCaMinPcellSinrQci1 shall be set equal to the value of LNCEL-ulCaMinPcellSinr.

add_param minor LNCEL tempCondition false
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL tempCondition = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL} isPcell == CONST "true" ? CONST "true" :
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL tempCondition = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL} cellTechnology != CONST "FDD" ? CONST "false" :
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL tempCondition = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS} actDLCAggr != CONST "true" ? CONST "false" :
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL tempCondition = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNBTS_FDD-0 actConvVoice != CONST "true" ? CONST "false" :

dependence_add_param minor LNCEL tempCondition true dlCaMinPcellCqiQci1 temp
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL dlCaMinPcellCqiQci1 = CONST 0 == CONST 0 ? PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL} dlCaMinPcellCqi :
dependence_del_param minor LNCEL dlCaMinPcellCqiQci1 temp dlCaMinPcellCqiQci1

dependence_add_param minor LNCEL tempCondition true ulCaMinPcellSinrQci1 temp
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL ulCaMinPcellSinrQci1 = CONST 0 == CONST 0 ? PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL} ulCaMinPcellSinr :
dependence_del_param minor LNCEL ulCaMinPcellSinrQci1 temp ulCaMinPcellSinrQci1

del_param minor LNCEL tempCondition
del_param minor LNCEL isPcell
#v0.2 end















#history:
add_log minor "Conversion from FLF/FLC18_RADIO_1711_001 to FLF/FLC18_RADIO_1711_002"