####################################
## SCFD file version: 0.4         ##
## PDDB version: TLF16A_1601_001  ##
####################################

#General checking for rule file execution
check_version minor TL17
check_version minor TLF17
check_version minor TLC17

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


#v0.3 update for actRsrqInterRatMobility deletion later
#check_param minor LNBTS actRsrqInterRatMobility
check_param minor LNBTS actRSRPRSRQHist
#v0.3 end


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

##############################################################################
# LTE2572 RSRQ 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

##############################################################################
# LTE2664 Load Based PUCCH Region 
##############################################################################
# OM_LTE_SFS_RNL_15305: 
# The predifined instance of MOC LBPUCCHRDPR with instance identifier "0" shall be added to 
# the FL16A configuration as child of the LNBTS with following parameter
## - LBPUCCHRDPR-rrcConnectedUpperThresh
## - LBPUCCHRDPR-rrcConnectedLowerThresh
## - LBPUCCHRDPR-countdownPucchCompr
## - LBPUCCHRDPR-countdownPucchExp
## using the default value each.

add_cls minor LNBTS/LBPUCCHRDPR-0
set_operation minor LBPUCCHRDPR create

add_param minor LBPUCCHRDPR countdownPucchCompr 60min
add_param minor LBPUCCHRDPR countdownPucchExp 1min 
add_param minor LBPUCCHRDPR rrcConnectedLowerThresh 10
add_param minor LBPUCCHRDPR rrcConnectedUpperThresh 80

add_param minor APUCCH actLbPucchReg false


##############################################################################
# LTE2804 RSRP and RSRQ histograms 
##############################################################################

add_param minor LNBTS actRSRPRSRQHist false
add_param minor PMRNL mtRSRPRSRQHist 15min

#add_list minor PMRNL pmRSRPRSRQHist
#add_list_item minor PMRNL pmRSRPRSRQHist
#add_list_param minor PMRNL pmRSRPRSRQHist 0 actpmA3intrafreqHO false
#add_list_param minor PMRNL pmRSRPRSRQHist 0 actpmA5interfreqHO false
#add_list_param minor PMRNL pmRSRPRSRQHist 0 actpmA5intrafreqHO false
#add_list_param minor PMRNL pmRSRPRSRQHist 0 actpmB2 false
#add_list_param minor PMRNL pmRSRPRSRQHist 0 actpmRSC false
#add_list_param minor PMRNL pmRSRPRSRQHist 0 actpmrsrpA3interfreqHO false
#add_list_param minor PMRNL pmRSRPRSRQHist 0 actpmrsrqA3interfreqHO false
#add_list_param minor PMRNL pmRSRPRSRQHist 0 cfgrsrpbinsize 6
#add_list_param minor PMRNL pmRSRPRSRQHist 0 cfgrsrpmin "-140"
#add_list_param minor PMRNL pmRSRPRSRQHist 0 cfgrsrqbinsize 20
#add_list_param minor PMRNL pmRSRPRSRQHist 0 cfgrsrqmin "-195"


##############################################################################
# LTE2824-A Extended frequency band range -- Functionality development 
##############################################################################
#OM_LTE_SFS_RNL_15623:

# LNCEL parameter earfcnUL (applies for FDD only !!!): For each LNCEL instance with earfcnUL value = 65535 set the value to 65534.

dependence_mod_param minor LNCEL earfcnUL 65535 earfcnUL 65534

# IRFIM parameter dlCarFrqEut: For each IRFIM instance with dlCarFrqEut value = 65535 set the value to 65534.

dependence_mod_param minor IRFIM dlCarFrqEut 65535 dlCarFrqEut 65534

# MFBIPR parameter addFreqBandInd: For each MFBIPR instance with addFreqBandInd value = 64 set the value to 63.

dependence_mod_param minor MFBIPR addFreqBandInd 64 addFreqBandInd 63

#The special value of the LNCEL pci blacklisting parameter blackListHoL would be now within the extended frequency range. 
#It needs to be redefined and therefore migrated.

#LNCEL parameter blacklistHoL-freqEutra
#For each LNCEL instance and for each list item in LNCEL-blacklistHoL with freqEutra = 65536 set the value to 65535.

dependence_mod_param_conditional_expression_relative minor LISTPARAM MRBTS/LNBTS/LNCEL blacklistHoL * freqEutra = LISTPARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL} blacklistHoL ${blacklistHoL} freqEutra == CONST 65536 ? CONST 65535 : 


#Macro specific
###########
#There are additional migration requirements for site configuration parameters in the Equipment Management SFS.
###########
# For each instance of:
#  MHA.antBandList
#  RET.antBandList
#  RAE.antBandList
#  the following conversion is to be done
# 	MHA.antBandList.antOperFreqBand to MHA.antBandList.antFreqBand
# 	RET.antBandList.antOperFreqBand to RET.antBandList.antFreqBand
# 	RAE.antBandList.antOperFreqBand to RAE.antBandList.antFreqBand

#move_list_param_to_param minor MRBTS/MHA MRBTS/MHA antBandList 0 antOperFreqBand tempAntOperFreqBand
#rename_param minor MHA tempAntOperFreqBand antFreqBand
#move_param_to_list_param minor MRBTS/MHA MRBTS/MHA antFreqBand antBandList 0 antFreqBand

#move_list_param_to_param minor MRBTS/RET MRBTS/RET antBandList 0 antOperFreqBand tempAntOperFreqBand
#rename_param minor MHA tempAntOperFreqBand antFreqBand
#move_param_to_list_param minor MRBTS/RET MRBTS/RET antFreqBand antBandList 0 antFreqBand

# applying the following conversion List:
#  Band I (1) ==>   Band 1 (1)
#  Band II (2) ==>   Band 2 (2)
#  Band III (3) ==>   Band 3 (3)
#  Band IV (4) ==>   Band 4 (4)
#  Band V (5) ==>   Band 5 (5)
#  Band VI (6) ==>   Band 6 (6)
#  Band VII (7) ==>   Band 7 (7)
#  Band VIII (8) ==>   Band 8 (8)
#  Band IX (9) ==>   Band 9 (9)
#  Band X (10) ==>   Band 10 (10)
#  Band XI (11) ==>   Band 11 (11)
#  Band XII (12) ==>   Band 12 (12)
#  Band XIII (13) ==>   Band 13 (13)
#  Band XIV (14) ==>   Band 14 (14)

#  Band XVII (20) ==>   Band 17 (17)
#  Band XVIII (21) ==>   Band 18 (18)
#  Band XIX (15) ==>   Band 19 (19)
#  Band XX (16) ==>   Band 20 (20)
#  Band XXI(17) ==>   Band 21 (21)

#  Band XXII (22) ==>   Band 22 (22)
#  Band XXIII (23) ==>   Band 23 (23)
#  Band XXIV (24) ==>   Band 24 (24)
#  Band XXV (25) ==>   Band 25 (25)
#  Band XXVI (26) ==>   Band 26 (26)
#  Band XXVII (27) ==>   Band 27 (27)
#  Band XXVIII (28) ==>   Band 28 (28)
#  Band XXIX (29) ==>   Band 29 (29)
#  Band XXX (30) ==>   Band 30 (30)
#  Band XXXI (31) ==>   Band 31 (31)
#  Band XXXII (32) ==>   Band 32 (32)
#  Band XXXIII (33) ==>   Band 33 (33)
#  Band XXXIV (34) ==>   Band 34 (34)
#  Band XXXV (35) ==>   Band 35 (35)
#  Band XXXVI (36) ==>   Band 36 (36)
#  Band XXXVII (37) ==>   Band 37 (37)
#  Band XXXVIII (38) ==>   Band 38 (38)
#  Band XXXIX (39) ==>   Band 39 (39)
#  Band XL (40) ==>   Band 40 (40)
#  Band XLI (41) ==>   Band 41 (41)
#  Band XLII (42) ==>   Band 42 (42)
#  Band XLIII (43) ==>   Band 43 (43)
#  Band XLIV (44) ==>   Band 44 (44)
#  Band LXVI (66) ==>   Band 66 (66)



##############################################################################
# LTE2828-B LNCEL LNBTS refactoring - DRX related parameters
##############################################################################

# Migration of DRX related parameters

# Several LNCEL parameters shall be relocated to a new MOC DRX. DRX is a new MOC subordinated to the MOC LNCEL. The parameters shall keep their originally configured values during the relocation.
# The following migration rules shall be executed for all LNCEL instances.

# 1 Create a new MO instance called DRX as a subordinate object to the MO instance LNCEL.

add_cls minor LNCEL/DRX-0
set_operation minor DRX create

# 2 Relocate several mandatory parameters:

# Copy following mandatory parameters from the MO instance LNCEL to its subordinate MO instance DRX with their current values:

move_param minor LNCEL DRX drxApplyDeviceType
move_param minor LNCEL DRX stInactFactor
move_param minor LNCEL DRX applyOutOfSyncState

# After these mandatory parameters are created in the MO instance DRX, delete them in the MO instance LNCEL.

# 3 Relocate several mandatory structures:

# Copy following mandatory structures with all their subordinate parameters from LNCEL to DRX with their current values. The originally configured values of the parameters shall be kept. The related parameters are listed below:

move_list minor LNCEL DRX drxProfile1
# LNCEL DRX drxProfile1-drxProfileIndex
# LNCEL DRX drxProfile1-drxProfilePriority

move_list minor LNCEL DRX drxProfile2
# LNCEL DRX drxProfile2-drxProfileIndex
# LNCEL DRX drxProfile2-drxProfilePriority
# LNCEL DRX drxProfile2-drxLongCycle
# LNCEL DRX drxProfile2-drxOnDuratT
# LNCEL DRX drxProfile2-drxInactivityT
# LNCEL DRX drxProfile2-drxRetransT

move_list minor LNCEL DRX drxProfile3
# LNCEL DRX drxProfile3-drxProfileIndex
# LNCEL DRX drxProfile3-drxProfilePriority
# LNCEL DRX drxProfile3-drxLongCycle
# LNCEL DRX drxProfile3-drxOnDuratT
# LNCEL DRX drxProfile3-drxInactivityT
# LNCEL DRX drxProfile3-drxRetransT

move_list minor LNCEL DRX drxProfile4
# LNCEL DRX drxProfile4-drxProfileIndex
# LNCEL DRX drxProfile4-drxProfilePriority
# LNCEL DRX drxProfile4-drxLongCycle
# LNCEL DRX drxProfile4-drxOnDuratT
# LNCEL DRX drxProfile4-drxInactivityT
# LNCEL DRX drxProfile4-drxRetransT

move_list minor LNCEL DRX drxProfile5
# LNCEL DRX drxProfile5-drxProfileIndex
# LNCEL DRX drxProfile5-drxProfilePriority
# LNCEL DRX drxProfile5-drxLongCycle
# LNCEL DRX drxProfile5-drxOnDuratT
# LNCEL DRX drxProfile5-drxInactivityT
# LNCEL DRX drxProfile5-drxRetransT

# After creation of the parameters in the MO instance DRX, delete the original of these structures including all subordinate parameters in the MO instance LNCEL.


# 4 Relocate several optional parameters:

# Copy following optional parameters from the MO instance LNCEL to its subordinate MO instance DRX with their current values if they are configured in LNCEL. If they are not configured in LNCEL, dont create them in DRX.

move_param minor LNCEL DRX qci1DrxOnThreshold
move_param minor LNCEL DRX qci1DrxOffThreshold

# After creation of the relevant optional parameters in the MO DRX, delete the original of these optional parameters in the MO instance LNCEL.

# Migration of Smart DRX related parameters

# Several LNCEL parameters shall be relocated to a new MOC SDRX. SDRX is a new MOC subordinated to the MOC LNCEL. The parameters shall keep their originally configured values during the relocation.
# The following migration rules shall be executed for all LNCEL instances.
 
# 1 Create a new MO instance called SDRX as a subordinate object to the MO instance LNCEL.

add_cls minor LNCEL/SDRX-0
set_operation minor SDRX create

# 2 Relocate several mandatory structures:

# Copy following mandatory structures with all their subordinate parameters from LNCEL to SDRX with their current values. The originally configured values of the parameters shall be kept. The related parameters are listed below:

move_list minor LNCEL SDRX drxSmartProfile2
# LNCEL SDRX drxSmartProfile2-drxProfileIndex
# LNCEL SDRX drxSmartProfile2-drxProfilePriority
# LNCEL SDRX drxSmartProfile2-drxLongCycle
# LNCEL SDRX drxSmartProfile2-drxShortCycle
# LNCEL SDRX drxSmartProfile2-drxShortCycleT
# LNCEL SDRX drxSmartProfile2-drxOnDuratT
# LNCEL SDRX drxSmartProfile2-drxInactivityT
# LNCEL SDRX drxSmartProfile2-drxRetransT
# LNCEL SDRX drxSmartProfile2-smartStInactFactor

move_list minor LNCEL SDRX drxSmartProfile3
# LNCEL SDRX drxSmartProfile3-drxProfileIndex
# LNCEL SDRX drxSmartProfile3-drxProfilePriority
# LNCEL SDRX drxSmartProfile3-drxLongCycle
# LNCEL SDRX drxSmartProfile3-drxShortCycle
# LNCEL SDRX drxSmartProfile3-drxShortCycleT
# LNCEL SDRX drxSmartProfile3-drxOnDuratT
# LNCEL SDRX drxSmartProfile3-drxInactivityT
# LNCEL SDRX drxSmartProfile3-drxRetransT
# LNCEL SDRX drxSmartProfile3-smartStInactFactor

move_list minor LNCEL SDRX drxSmartProfile4
# LNCEL SDRX drxSmartProfile4-drxProfileIndex
# LNCEL SDRX drxSmartProfile4-drxProfilePriority
# LNCEL SDRX drxSmartProfile4-drxLongCycle
# LNCEL SDRX drxSmartProfile4-drxShortCycle
# LNCEL SDRX drxSmartProfile4-drxShortCycleT
# LNCEL SDRX drxSmartProfile4-drxOnDuratT
# LNCEL SDRX drxSmartProfile4-drxInactivityT
# LNCEL SDRX drxSmartProfile4-drxRetransT
# LNCEL SDRX drxSmartProfile4-smartStInactFactor

move_list minor LNCEL SDRX drxSmartProfile5
# LNCEL SDRX drxSmartProfile5-drxProfileIndex
# LNCEL SDRX drxSmartProfile5-drxProfilePriority
# LNCEL SDRX drxSmartProfile5-drxLongCycle
# LNCEL SDRX drxSmartProfile5-drxShortCycle
# LNCEL SDRX drxSmartProfile5-drxShortCycleT
# LNCEL SDRX drxSmartProfile5-drxOnDuratT
# LNCEL SDRX drxSmartProfile5-drxInactivityT
# LNCEL SDRX drxSmartProfile5-drxRetransT
# LNCEL SDRX drxSmartProfile5-smartStInactFactor

# After creation of the parameters in the MO instance DRX, delete the original of these structures including all subordinate parameters in the MO instance LNCEL.


################################################################################################
# LTE2713 ARP based admission control offsets
################################################################################################

add_param minor LNBTS actArpAcOffset false


################################################################################################
# CRL9605 Supporting "subframe &amp; slot" based RIP average value report (update of LTE1914)
################################################################################################
mod_list_param minor MTRACE enhCellVendorSpecTracing ripReportType subframe subframe_slot


##############################################################################
# LTE2611 
##############################################################################
# Removed values 2 and 3. To be converted to what value?
#v0.2 - 10.12.2015 BB: LTE2611-A-p late parameter change.
del_list_param minor LNBTS qciTab69 lcgid
add_list_param minor LNBTS qciTab69 0 lcgid 0
#v0.2 - end



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



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

#history:
#FZM Replace# add_log minor "Conversion from TL16A FB15.12 (003) to TL16A FB16.01 (001)"
add_log minor "Conversion from TLF16A FB15.12 (003) to TLF16A FB16.01 (001)"