####################################
## SCFD file version: 0.6         ##
## PDDB version: TLF17_1607_001   ##
####################################

#General checking for rule file execution
check_version minor TL17A
check_version minor TLF17A
check_version minor TLC17A

#v0.6 exit rule for 17SP
check_version minor TLF17SP
check_version minor TLC17SP
#v0.6 end


check_param minor LNBTS supportedCellTechnology


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

####################################################################################################################
#LTE3199 eMBMS in multi-carrier deployment and multiple MBSFN Areas support
####################################################################################################################
#OM_LTE_SFS_RNL.16880 
#Migration of IRFIM
#In all IRFIM instances the new parameters mbmsNeighCellConfigInterF and mbmsNeighCellConfigInterF  have to be initialized with their default value.

add_param minor IRFIM mbmsNeighCellConfigInterF 00


####################################################################################################################
#LTE2572 RSRA-based B2
####################################################################################################################
#OM_LTE_SFS_RNL.15517
#The following new mandatory parameters must be initialized with their default values:
#LNBTS-actRsrqInterRatMobility ('false')

add_param minor LNBTS actRsrqInterRatMobility false


####################################################################################################################
#LTE3201 eMBMS in RAN sharing deployment support
####################################################################################################################
#OM_LTE_SFS_RNL.16786
#If the LNMCE instance exists, then the new mandatory LNMCE parameter m3LinkBounceSupTimer must be initialized with its default value.

add_param minor LNMCE m3LinkBounceSupTimer 0

####################################################################################################################
#LTE3199 eMBMS in multi-carrier deployment and multiple MBSFN Areas support
####################################################################################################################
#OM_LTE_SFS_RNL.16876
#m3TimeRef = 'Gregorian' which under the instance MBSFNSYNCAREA:0 under LNBTS:0/LNMCE:0
#NIDD is not consistent with migration requirement m3TimeRef is defined under LNMCE
add_param minor LNMCE m3TimeRef " Gregorian"

#OM_LTE_SFS_RNL.16878
#Creation of M1SYNC
#If the instance LNBTS:0/LNMCE:0/MBSFN:0 exists in release 16A then create the instance M1SYNC:0 under LNBTS and configure the parameters as follows:
#·	m1SyncId = 0
#·	mbmsSyncPeriod = mbmsSyncPeriod of the first list item in the list structure MBSFN:0-mchinfo 
#·	m1TimeRef = 'GregorianUTC'
#·	mbmsSyncTimeOffset = 0
#·	mbmsSyncRef-integralSecs = MBSFN:0-mbmsSyncRef-integralSecs
#·	mbmsSyncRef-fractionalSecs = MBSFN:0-mbmsSyncRef-fractionalSecs
#·	elapsedCountIncludesHeader = 0

add_param minor MBSFN tempmbsfnId 0
dependence_add_obj_with_next_free_instance minor p MRBTS/LNBTS/LNMCE/MBSFN MRBTS/LNBTS/M1SYNC tempmbsfnId 0 - -
set_operation minor M1SYNC create

add_param minor M1SYNC mbmsSyncTimeOffset 0
add_param minor M1SYNC mbmsSyncPeriod tempValue
#v0.2
#dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/M1SYNC mbmsSyncPeriod = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/M1SYNC-${M1SYNC} mbmsSyncPeriod == CONST tempValue ? LISTPARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNMCE-0/MBSFN-0 mchInfo 0 mbmsSyncPeriod :
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/M1SYNC mbmsSyncPeriod = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/M1SYNC-${M1SYNC} mbmsSyncPeriod == CONST tempValue ? LISTPARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNMCE-0/MBSFN-0 mchInfo 0 mbmsSyncPeriod * CONST "10" :
#v0.2 end
add_param minor M1SYNC m1TimeRef " GregorianUTC"
copy_list_param minor MBSFN LNMCE mbmsSyncRef mbmsSyncRef
copy_list_param minor LNMCE M1SYNC mbmsSyncRef mbmsSyncRef
del_list minor LNMCE mbmsSyncRef
add_param minor M1SYNC elapsedCountIncludesHeader false


####################################################################################################################
# LTE3199 eMBMS in multi-carrier deployment and multiple MBSFN Areas support
####################################################################################################################
#OM_LTE_SFS_RNL.16641,OM_LTE_SFS_RNL.16656
#The MBSFN list parameter mbmsServiceArea shall be replaced by the new MBSFN list parameter mbmsSaiList. This is because the datatype shall be changed from hexadecimal to decimal.
#The value of each list item in mbmsServiceArea shall be converted to its decimal value and added as list item to mbmsSaiList.
#OM_LTE_SFS_RNL.16877
##If the instance LNBTS:0/LNMCE:0 exists in release 16A then:
#·	If the instance LNBTS:0/LNMCE:0/MBSFN:0 exists in release 16A then create the instance MBSFNSYNCAREA:0 under LNBTS:0/LNMCE:0: and configure the parameters as follows:
#·	mbsfnSyncAreaId = 0
#·	syncAreaId = 0
#·	mbsfnOverlapAllowed = default value in NIDD
#·	mbsfnEarfcn = MBSFN:0-mbsfnEarfcn
#·	mbsfnDlChBw = MBSFN:0-mbsfnDlChBw
#·	maxSyncSubfrPShare = MBSFN:0-subfrShareRequired
#·	m3TimeRef = 'Gregorian'
#·	create the instance MBSFN:0 under LNBTS:0/LNMCE:0/MBSFNSYNCAREA:0 and configure the parameters as follows:
#o	mbsfnId = 0
#o	mbsfnAreaId = MBSFN:0-mbsfnAreaId
#o	signalingMCS = MBSFN:0-signalingMCS
#o	mbmsSaiList = The value of each list item in MBSFN:0-mbmsServiceArea shall be converted to its decimal value and added as list item to MBSFN.0-mbmsSaiList (see also RNL.16656).
#o	mcchRepetitionPeriod = MBSFN:0-mcchRepetitionPeriod
#o	maxSubfrPShare = MBSFN:0-subfrShareRequired
#o	mchInfo = copy all list items from MBSFN:0-mchInfo  (The structure parameters and multiplicity remains unchanged)
#o	mbsfnStartingSF = 0
#·	The instance LNBTS:0/LNMCE:0/MBSFN:0 is no longer needed in release 17 because it is moved to a different position in the tree (see above).

dependence_add_obj_with_next_free_instance minor p MRBTS/LNBTS/LNMCE/MBSFN MRBTS/LNBTS/LNMCE/MBSFNSYNCAREA tempmbsfnId 0 - -
set_operation minor MBSFNSYNCAREA create

copy_param minor MBSFN MBSFNSYNCAREA subfrPShareRequired maxSyncSubfrPShare
#v0.2
mod_param minor MBSFNSYNCAREA maxSyncSubfrPShare 3 3.125%
mod_param minor MBSFNSYNCAREA maxSyncSubfrPShare 6 6.250%
mod_param minor MBSFNSYNCAREA maxSyncSubfrPShare 9 9.375%
mod_param minor MBSFNSYNCAREA maxSyncSubfrPShare 12 12.500%
mod_param minor MBSFNSYNCAREA maxSyncSubfrPShare 16 15.625%
mod_param minor MBSFNSYNCAREA maxSyncSubfrPShare 19 18.750%
mod_param minor MBSFNSYNCAREA maxSyncSubfrPShare 22 21.875%
mod_param minor MBSFNSYNCAREA maxSyncSubfrPShare 25 25.000%
mod_param minor MBSFNSYNCAREA maxSyncSubfrPShare 28 28.125%
mod_param minor MBSFNSYNCAREA maxSyncSubfrPShare 31 31.250%
mod_param minor MBSFNSYNCAREA maxSyncSubfrPShare 34 34.375%
mod_param minor MBSFNSYNCAREA maxSyncSubfrPShare 37 37.500%
#v0.2 end
copy_param minor MBSFN MBSFNSYNCAREA mbsfnDlChBw mbsfnDlChBw
copy_param minor MBSFN MBSFNSYNCAREA mbsfnEarfcn mbsfnEarfcn
add_param minor MBSFNSYNCAREA mbsfnOverlapAllowed false
add_param minor MBSFNSYNCAREA syncAreaId 0

dependence_add_obj_with_next_free_instance minor p MRBTS/LNBTS/LNMCE/MBSFN MRBTS/LNBTS/LNMCE/MBSFNSYNCAREA/TMPMBSFN tempmbsfnId 0 - -
set_operation minor TMPMBSFN create

del_param minor MBSFN tempmbsfnId

copy_param minor MBSFN TMPMBSFN subfrPShareRequired maxSubfrPShare
#v0.2
mod_param minor TMPMBSFN maxSubfrPShare 3 3.125
mod_param minor TMPMBSFN maxSubfrPShare 6 6.250
mod_param minor TMPMBSFN maxSubfrPShare 9 9.375
mod_param minor TMPMBSFN maxSubfrPShare 12 12.500
mod_param minor TMPMBSFN maxSubfrPShare 16 15.625
mod_param minor TMPMBSFN maxSubfrPShare 19 18.750
mod_param minor TMPMBSFN maxSubfrPShare 22 21.875
mod_param minor TMPMBSFN maxSubfrPShare 25 25.000
mod_param minor TMPMBSFN maxSubfrPShare 28 28.125
mod_param minor TMPMBSFN maxSubfrPShare 31 31.250
mod_param minor TMPMBSFN maxSubfrPShare 34 34.375
mod_param minor TMPMBSFN maxSubfrPShare 37 37.500
#v0.2 end
copy_param minor MBSFN TMPMBSFN signallingMCS signallingMCS
copy_param minor MBSFN TMPMBSFN mbsfnAreaId mbsfnAreaId
#v0.5 update for LTE3199 requirement change
#add_param minor TMPMBSFN mbsfnStartingSF 1
add_param minor TMPMBSFN mbsfnStartingSF 0
#v0.5 end

#v0.4
#just add empty mbmsSaiList this version, migration will be done later
#add_array_param minor TMPMBSFN mbmsSaiList 0
dependence_mod_param_conditional_expression_relative minor LISTVALUE MRBTS/LNBTS/LNMCE/MBSFN mbmsServiceArea * = CONST "1" == CONST "1" ? HEX2DEC LISTVALUE MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNMCE-${LNMCE}/MBSFN-${MBSFN} mbmsServiceArea ${mbmsServiceArea} :
copy_list_param minor MBSFN TMPMBSFN mbmsServiceArea mbmsSaiList
#v0.4 end

copy_param minor MBSFN TMPMBSFN mcchRepetitionPeriod mcchRepetitionPeriod
copy_list_param minor MBSFN TMPMBSFN mchInfo mchInfo
#v0.2
del_list_param minor TMPMBSFN mchInfo mbmsSyncPeriod
#v0.2 end

rename_cls minor TMPMBSFN MBSFN


####################################################################################################################
# CRL13512 Change default value of parameter maxBitrateUl
####################################################################################################################
#LNCEL maxBitrateUl 60000-->75000



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

####################################################################################################################
# LTE3296 Harmonized Object Model for SRAN and LTE
####################################################################################################################
add_param minor LNBTS supportedCellTechnology TDD

add_param minor LNBTS actCompChecks true

#Macro specific
#add_list minor LNBTS rlcProf7
#add_list_item minor LNBTS rlcProf7
#add_list_param minor LNBTS rlcProf7 0 tProhib 10ms
#add_list_param minor LNBTS rlcProf7 0 tPollRetr 75ms
#add_list_param minor LNBTS rlcProf7 0 pollPdu 64
#add_list_param minor LNBTS rlcProf7 0 rlcProfileId 7
#add_list_param minor LNBTS rlcProf7 0 tReord 15ms

#add_list_param minor LNBTS qciTabOperator * rlcProfIdx4cc5cc 7
#add_list_param minor LNBTS qciTab6 * rlcProfIdx4cc5cc 7
#add_list_param minor LNBTS qciTab7 * rlcProfIdx4cc5cc 7
#add_list_param minor LNBTS qciTab70 * rlcProfIdx4cc5cc 7
#add_list_param minor LNBTS qciTab8 * rlcProfIdx4cc5cc 7
#add_list_param minor LNBTS qciTab9 * rlcProfIdx4cc5cc 7


####################################################################################################################
# LTE3199 eMBMS in multi-carrier deployment and multiple MBSFN Areas support
####################################################################################################################
#OM_LTE_SFS_RNL.16880
#Creation of MBSFNCEL
#If the instance LNBTS:0/LNMCE:0/MBSFN:0 exists in release 16A then create an instance MBSFNCEL:0 under each LNCEL instance which fulfills both following conditions:
#·	earfcnDl (in case of TDD earfcn) == MBSFN:0-mbsfnEarfcn and
#·	dlChBw (in case of TDD chBw) == MBSFN:0-mbsfnDlChBw
#and configure the parameters as follows:
#·	mbsfnCelId = 0
#·	syncAreaInUse = 0
#·	mbsfnAreaInUseList = one list entry with value of MBSFN:0-mbsfnAreaId

add_param minor LNCEL_TDD tempMbsfnChBw value
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL/LNCEL_TDD tempMbsfnChBw = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL}/LNCEL_TDD-${LNCEL_TDD} chBw == CONST "10 MHz" ? CONST "10" :
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL/LNCEL_TDD tempMbsfnChBw = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL}/LNCEL_TDD-${LNCEL_TDD} chBw == CONST "15 MHz" ? CONST "15" :
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL/LNCEL_TDD tempMbsfnChBw = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL}/LNCEL_TDD-${LNCEL_TDD} chBw == CONST "20 MHz" ? CONST "20" :

add_param minor LNCEL mbsfnrequired false
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL mbsfnrequired = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL}/LNCEL_TDD-0 tempMbsfnChBw == PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNMCE-0/MBSFN-0 mbsfnDlChBw && PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL}/LNCEL_TDD-0 earfcn == PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNMCE-0/MBSFN-0 mbsfnEarfcn ? CONST "true" :
dependence_add_obj_with_next_free_instance minor p MRBTS/LNBTS/LNCEL MRBTS/LNBTS/LNCEL/MBSFNCEL mbsfnrequired true - -
set_operation minor MBSFNCEL create

add_param minor MBSFNCEL syncAreaInUse 0
add_array_param minor MBSFNCEL mbsfnAreaInUseList 0
#v0.5 update for LTE3199 requirement change
dependence_mod_param_conditional_expression_relative minor LISTVALUE MRBTS/LNBTS/LNCEL/MBSFNCEL mbsfnAreaInUseList 0 = CONST "1" == CONST "1" ? PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNMCE-0/MBSFN-0 mbsfnAreaId :
#v0.5 end
del_param minor LNCEL mbsfnrequired
del_param minor LNCEL_TDD tempMbsfnChBw


####################################################################################################################
# LTE3296 Harmonized Object Model for SRAN and LTE
#####################################################################################################################
#MRBTS/LNBTS/LNCEL/MPUCCH -> MRBTS/LNBTS/LNCEL/LNCEL_TDD/MPUCCH_TDD

add_param minor MPUCCH tempMPUValue 0
dependence_add_obj_with_next_free_instance minor p MRBTS/LNBTS/LNCEL/MPUCCH MRBTS/LNBTS/LNCEL/LNCEL_TDD/MPUCCH_TDD tempMPUValue 0 - -
set_operation minor MPUCCH_TDD create

move_param minor MPUCCH MPUCCH_TDD addAUeRrHo
move_param minor MPUCCH MPUCCH_TDD addAUeTcHo
move_param minor MPUCCH MPUCCH_TDD addEmergencySessions
move_param minor MPUCCH MPUCCH_TDD cellSrPeriod
move_param minor MPUCCH MPUCCH_TDD cqiPerNp
move_param minor MPUCCH MPUCCH_TDD deltaPucchShift
move_param minor MPUCCH MPUCCH_TDD maxNumRrc
move_param minor MPUCCH MPUCCH_TDD maxNumRrcEmergency
move_param minor MPUCCH MPUCCH_TDD minNumEmergencySessions
move_param minor MPUCCH MPUCCH_TDD minNumRrc
move_param minor MPUCCH MPUCCH_TDD minNumRrcNoDrb
move_param minor MPUCCH MPUCCH_TDD n1PucchAn
move_param minor MPUCCH MPUCCH_TDD nCqiRb
move_param minor MPUCCH MPUCCH_TDD nPucchF3Prbs
move_param minor MPUCCH MPUCCH_TDD phichDur
move_param minor MPUCCH MPUCCH_TDD phichRes
move_param minor MPUCCH MPUCCH_TDD riEnable
move_param minor MPUCCH MPUCCH_TDD riPerM
move_param minor MPUCCH MPUCCH_TDD riPerOffset

del_cls minor MPUCCH


####################################################################################################################
# LTE3296 Harmonized Object Model for SRAN and LTE
####################################################################################################################
# MRBTS/LNBTS/LNCEL/APUCCH -> MRBTS/LNBTS/LNCEL/LNCEL_TDD/APUCCH_TDD

add_param minor APUCCH tempAPUValue 0
dependence_add_obj_with_next_free_instance minor p MRBTS/LNBTS/LNCEL/APUCCH MRBTS/LNBTS/LNCEL/LNCEL_TDD/APUCCH_TDD tempAPUValue 0 - -
set_operation minor APUCCH_TDD create

move_param minor APUCCH APUCCH_TDD aPucchAddAUeRrHo
move_param minor APUCCH APUCCH_TDD aPucchAddAUeTcHo
move_param minor APUCCH APUCCH_TDD aPucchMinNumEmergencySessions
move_param minor APUCCH APUCCH_TDD aPucchMinNumRrc
move_param minor APUCCH APUCCH_TDD aPucchMinNumRrcNoDrb
move_param minor APUCCH APUCCH_TDD aPucchSrPeriodUpperLimit
move_param minor APUCCH APUCCH_TDD actLbPucchReg
move_param minor APUCCH APUCCH_TDD assignedDeltaPucchShift
move_param minor APUCCH APUCCH_TDD assignedN1PucchAn
move_param minor APUCCH APUCCH_TDD assignedNCqiRb
move_param minor APUCCH APUCCH_TDD assignedNPucchF3Prbs
move_param minor APUCCH APUCCH_TDD assignedPhichDur
move_param minor APUCCH APUCCH_TDD assignedPhichRes
move_param minor APUCCH APUCCH_TDD assignedPrachFreqOff
move_param minor APUCCH APUCCH_TDD lbPucchRPrId
move_param minor APUCCH APUCCH_TDD selectPrachRegion

del_cls minor APUCCH


####################################################################################################################
# LTE3296 Harmonized Object Model for SRAN and LTE
#####################################################################################################################
add_cls minor MRBTS/LNBTS/LNBTS_TDD-0
set_operation minor LNBTS_TDD create

move_param minor LNBTS LNBTS_TDD act1xSrvcc
move_param minor LNBTS LNBTS_TDD actCaIntraCellHo
move_param minor LNBTS LNBTS_TDD actConvVoice
move_param minor LNBTS LNBTS_TDD actB2SupprTdscdmaWithVoLte
move_param minor LNBTS LNBTS_TDD actDedVoLteInterFreqHo
move_param minor LNBTS LNBTS_TDD actDistributedSite
move_param minor LNBTS LNBTS_TDD actCsBIA
move_param minor LNBTS LNBTS_TDD actDlIntShaping
move_param minor LNBTS LNBTS_TDD actHOtoTdscdma
move_param minor LNBTS LNBTS_TDD actPMRIP
move_param minor LNBTS LNBTS_TDD actHighPrioServices
move_param minor LNBTS LNBTS_TDD actRedirVoLte
move_param minor LNBTS LNBTS_TDD actIMSEmerSessR9
move_param minor LNBTS LNBTS_TDD actInterFreqServiceBasedHo
move_param minor LNBTS LNBTS_TDD actMBMSCntr
move_param minor LNBTS LNBTS_TDD actMFBI
move_param minor LNBTS LNBTS_TDD actVoLteCallSteering
move_param minor LNBTS LNBTS_TDD csBIAPcellA3Reuse
move_param minor LNBTS LNBTS_TDD actPubSafetyBearers

move_param minor LNBTS LNBTS_TDD actSfn
move_param minor LNBTS LNBTS_TDD actSrvccToGsm
move_param minor LNBTS LNBTS_TDD actSrvccToWcdma
move_param minor LNBTS LNBTS_TDD dlOlqcDeltaCqiMax
move_list minor LNBTS LNBTS_TDD dlSectorBFWeightCusProf
move_param minor LNBTS LNBTS_TDD numTxWithHighNonGbr
move_param minor LNBTS LNBTS_TDD preventPsHOtoWcdma
move_param minor LNBTS LNBTS_TDD prohibitPsHOtoTdscdma
move_param minor LNBTS LNBTS_TDD tS1RelPrepTd

del_param minor LNCEL maxNumCaConfUe

#FZM specific
del_param minor LNBTS actCRAN
#FZM specific
del_param minor LNBTS actULCAggr
#FZM specific
del_param minor LNBTS caMinUlAmbr

#FZM specific
add_param minor LNBTS actInterEnbDLCAggr false


#v0.3 change for TLF17_1607_001_02 NIDD
#FZM/FZC specific
####################################################################################################################
# Workaround for QT1_Blocker (PR169543). Parameters temporarily added - to be deleted in 1607_002.
####################################################################################################################

add_param minor MPUCCH_TDD minNumEmergencySessions 10
add_param minor MPUCCH_TDD minNumRrc 10
add_param minor MPUCCH_TDD minNumRrcNoDrb 5

#v0.3 end




#version
#FZM Replace# set_version major TL17
dependence_set_version major PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/FTM-${FTM}/UNIT-${UNIT} unitTypeExpected == CONST "FZC1100" ? CONST "TLC17" : CONST "TLF17"

#history:
#FZM Replace# add_log minor "Conversion from TL17 FB16.06 (003) to TL17 FB16.07 (001)"
add_log minor "Conversion from TLF17 FB16.06 (003) to TLF17 FB16.07 (001)"