####################################
## SCFD file version: 0.6         ##
## PDDB version: FL15A_1408_004   ##
####################################

#General checking for rule file execution
check_version minor LN9.0

# v0.4 PR038972: Upgrade from FLF16 to FLF16 builds go RNW - Incorrect on FZM FDD trunk
check_version minor FLF16
# v0.4 end

# v0.5
check_version minor FLC16
# v0.5 end

check_version minor FLF16A
#v0.2 correction for PR119902ESPE04: [WMP][FSMr2, FSMr3][SW Activation] Couple of mandatory parameters missing in SCFC
#check_param minor LNBTS actMBMS
check_param minor LNBTS actLPPaEcid
#v0.2 correction END

#############
## Common: ##
#############

########################################
### LTE2006 Flexible SCell selection ###
########################################
#1. Migration of parameter CAREL-caSchedFairFact from MOC CAREL to MOC LNBTS
dependence_add_param minor LNBTS actDLCAggr true caSchedFairFact 0
del_param minor CAREL caSchedFairFact

#2. Addition of new parameter CAREL-scellPrio
add_param minor CAREL scellPrio 1

#3. Addition of CAPR for each frequency for which CAREL exists:
# For each CAREL MO (with different frequency - this is always assumed) create CAPR MO 
dependence_add_obj_with_next_free_instance minor p MRBTS/LNBTS/LNCEL/CAREL MRBTS/LNBTS/LNCEL/CAPR disableSCellPDCCHOlLa false - -
dependence_add_obj_with_next_free_instance minor p MRBTS/LNBTS/LNCEL/CAREL MRBTS/LNBTS/LNCEL/CAPR disableSCellPDCCHOlLa true - -
set_operation minor CAPR create
dependence_copy_param_value_based_on_relation_matching minor PARAM MRBTS/LNBTS/LNCEL/CAREL lcrId PARAM MRBTS/LNBTS/LNCEL lcrId PARAM earfcnDL

# Only up to 2 instances of CAREL OM may exist in RL70
copy_param minor MRBTS/LNBTS/LNCEL/CAREL-1 MRBTS/LNBTS/LNCEL/CAPR-0 earfcnDL earfcnDL
copy_param minor MRBTS/LNBTS/LNCEL/CAREL-2 MRBTS/LNBTS/LNCEL/CAPR-1 earfcnDL earfcnDL
#v0.6 PR 59041ESPE05 begin
dependence_del_target_relative minor PARAM MRBTS/LNBTS/LNCEL/CAREL-2 earfcnDL ? PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL}/CAPR-1 earfcnDL != CONST "neverexistsvalue"
copy_param minor MRBTS/LNBTS/LNCEL/CAREL-2 MRBTS/LNBTS/LNCEL/CAPR-0 earfcnDL earfcnDL
#v0.6 end
del_param minor CAREL earfcnDL
copy_param minor MRBTS/LNBTS/LNCEL/CAREL-1 MRBTS/LNBTS/LNCEL/CAPR-0 disableSCellPDCCHOlLa disableSCellPDCCHOlLa
copy_param minor MRBTS/LNBTS/LNCEL/CAREL-2 MRBTS/LNBTS/LNCEL/CAPR-1 disableSCellPDCCHOlLa disableSCellPDCCHOlLa
#v0.6 PR 59041ESPE05 begin
dependence_del_target_relative minor PARAM MRBTS/LNBTS/LNCEL/CAREL-2 disableSCellPDCCHOlLa ? PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL}/CAPR-1 disableSCellPDCCHOlLa != CONST "neverexistsvalue"
copy_param minor MRBTS/LNBTS/LNCEL/CAREL-2 MRBTS/LNBTS/LNCEL/CAPR-0 disableSCellPDCCHOlLa disableSCellPDCCHOlLa
#v0.6 end
#v0.6 - PR 126658ESPE04, only 1 CAPR per earfcnDL allowed, delete duplicates
dependence_del_target_relative minor MOC MRBTS/LNBTS/LNCEL/CAPR-1 ? PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL}/CAPR-0 earfcnDL == PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL}/CAPR-1 earfcnDL
#v0.6 end
#v0.6 PR038618: TL15A_SWDL fallback due to parameter earfcnDL migration issue from RL55 to TL15A
# Delete all CAPRs if actDLCAggr is false
dependence_del_target_relative minor MOC MRBTS/LNBTS/LNCEL/CAPR ? PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS} actDLCAggr == CONST "false"
#v0.6 end

#v0.2 correction for PR119902ESPE04: [WMP][FSMr2, FSMr3][SW Activation] Couple of mandatory parameters missing in SCFC
#del_param minor CAREL disableSCellPDCCHOlLa # Need to be removed but still exist in PDDB
del_param minor CAREL disableSCellPDCCHOlLa
#v0.2 correction END

add_param minor CAPR a6Offset 3
add_param minor CAPR hysA6Offset 0
add_param minor CAPR a6TimeToTrigger 320
add_param minor CAPR a6ReportInterval 640ms

#4. Addition of CADPR:
#v0.2 correction for PR119902ESPE04: [WMP][FSMr2, FSMr3][SW Activation] Couple of mandatory parameters missing in SCFC
#dependence_add_obj minor LNBTS actDLCAggr true LNBTS/CADPR
dependence_add_obj_with_next_free_instance minor p MRBTS/LNBTS MRBTS/LNBTS/CADPR actDLCAggr true - -
#v0.2 correction END

set_operation minor CADPR create
add_param minor CADPR disableSCellPDCCHOlLa false
add_param minor CADPR a6Offset 3
add_param minor CADPR hysA6Offset 0
add_param minor CADPR a6TimeToTrigger 320
add_param minor CADPR a6ReportInterval 640ms

#5 Additional parameters
add_param minor LNBTS actFlexScellSelect false
add_param minor LNBTS scellMeasCycle sf320

########################################################################
### LTE1836 TDD downlink carrier aggregation - 60Mhz" type="standard ###
########################################################################
# No migration impact

##########################################
### LTE1049 MDT - UE measurement  logs ###
##########################################
add_param minor LNBTS actMDTloggedCellTrace false #optional parameter

############################################################
### LTE2062 Inter-RAT UTRAN Neighbor Relation Robustness ###
############################################################
#v0.3 correction for PR 151527ESPE02[TL15A FSMF]LTE2062-A_during migration removeAllowed should be false if some kind of mobility was forbidden
#The following migration rule shall avoid automatic removal of a LNRELW instance if the operator configured a value deviating from the default value in the previous release.
#For all LNRELW instances of all LNCEL instances the following migration shall be performed:
#If (psHoAllowed equals allowed and srvccAllowed  equals allowed and csfbPsHoAllowed equals forbidden) then removedAllowed shall be set to true
#otherwise removedAllowed shall be set to false
add_param minor LNRELW removeAllowed false
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL/LNRELW removeAllowed = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL}/LNRELW-${LNRELW} psHoAllowed == CONST "allowed" && PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL}/LNRELW-${LNRELW} srvccAllowed == CONST "allowed" && PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL}/LNRELW-${LNRELW} csfbPsHoAllowed == CONST "forbidden" ? CONST "true" :
#add_param minor LNRELW removeAllowed true
#v0.3 correction for PR 151527ESPE02[TL15A FSMF]LTE2062-A_during migration removeAllowed should be false if some kind of mobility was forbidden END
add_param minor LNBTS actAutoUtranNeighRemoval false
add_param minor LNBTS idleTimeThresUtranNR 96

########################
### LTE1117 LTE MBMS ###
########################
add_param minor LNBTS actMBMS false

###################################################################
### LTE1509 Session Data Logging (SDL) for Flexi Multiradio BTS ###
###################################################################
#No impact on the existing parameters

######################################################
### CRL2806: RL55 Content change (TDD-Uplane part) ###
######################################################
#No impact on the existing parameters

#########################################################
### LTE2014 3GPP baseline R11 03/2014 - MME balancing ###
#########################################################
add_param minor LNBTS mmeAssignmentMode selectZeroCapacityToo

#v0.2 corrections for PR119902ESPE04: [WMP][FSMr2, FSMr3][SW Activation] Couple of mandatory parameters missing in SCFC
#########################################################
### LTE951 Enhanced cell ID location service 
######################################################### 

add_param minor LNBTS actLPPaEcid false

#v0.2 correction END

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


#version
#FZM Replace# set_version major LN8.0
set_version major LNF8.0

#history:
#FZM Replace# add_log minor "Conversion from LN7.0 FB14.07 to LN8.0 FB14.08"
add_log minor "Conversion from LNF7.0 FB14.07 to LNF8.0 FB14.08"