#######################################################################################
#######################################################################################
#NIDD_VER: TNL18_1711_003_00
# TNL: TNL18_1711_003
# delta from TNL18_1711_002 to TNL18_1711_003
# 28.11.2017 Sebastian Kulikowski
#######################################################################################

#######################################################################################
#######################################################################################
# Check if ruleset should be executed

for_objects "MRBTS/TNLSVC"
    begin
        if not ( get_version $current_dist_name ) == "TNL18_1711_002"
            abort_file
    end

#######################################################################################	
#######################################################################################	
# update

define "smodIsFsmfa" "false"

for_objects "MRBTS/EQM/APEQM/CABINET/SMOD"
    begin
        define "smodDn" $current_dist_name
        if ( param_exist smodDn "prodCodePlanned" )
            begin
                define "prodCodePlanned" get_param smodDn "prodCodePlanned"
                if ( prodCodePlanned ) == "473585A"
                    begin
                        define "smodIsFsmfa" "true"
                    end
            end
    end

if ( smodIsFsmfa ) == "true"
    begin
        for_objects "TNLSVC/TNL/IPAPP/IPSECC"
            del_object $current_dist_name

        for_objects "TNLSVC/TNL/IPAPP/IPSECC/EMBYPASSREQ"
            del_object $current_dist_name

        for_objects "TNLSVC/TNL/IPAPP/IPSECC/EMBYPASSREQ/EMBYPASSRES"
            del_object $current_dist_name

        for_objects "TNLSVC/TNL/IPAPP/IPSECC/IKEP"
            del_object $current_dist_name

        for_objects "TNLSVC/TNL/IPAPP/IPSECC/IKEPROTGRP"
            del_object $current_dist_name

        for_objects "TNLSVC/TNL/IPAPP/IPSECC/IKEPROTGRP/IKEPSWITCHREQ"
            del_object $current_dist_name

        for_objects "TNLSVC/TNL/IPAPP/IPSECC/IKEPROTGRP/IKEPSWITCHREQ/IKEPSWITCHRES"
            del_object $current_dist_name

        for_objects "TNLSVC/TNL/IPAPP/IPSECC/IPSECP"
            del_object $current_dist_name

        for_objects "TNLSVC/TNL/IPAPP/IPSECC/SECPOL"
            del_object $current_dist_name
    end

#######################################################################################	
# update version

for_objects "VLANID2QMAP"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "TWAMPREFLECT"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "TNL"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "TNLSVC"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "ETHSVC"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "ETHIF"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "VLANIF"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "ETHLK"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "L2SWI"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "BRGPRT"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "IBRGPRT"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "DSCPTOQMAP"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "PCP2QMAP"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "FRLI"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "IPAPP"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "BFD"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "BFDGRP"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "IPSECC"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "IKEP"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "IKEPROTGRP"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "IKEPSWITCHREQ"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "IPSECP"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "SECPOL"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "TWAMP"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "IPNO"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "IPIF"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "IPADDRESSV4"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "IPADDRESSV6"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "IPRT"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "IPRTV6"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "MCAPP"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "QOS"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "DSCP2PCPMAP"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "DSCP2QMAP"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "FLOWCL"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "FSTSCH"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "RTPOL"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "P3LP"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "P3ML"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "DSCP2MC2MAP"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "DSCP2MC4MAP"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "P3SL"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "PMTNL"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "PPTT"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "TRIGGER"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "FPMUX"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end

for_objects "MRBTS/TNLSVC/TNL/PMTNL"
    begin
        set_version $current_dist_name "TNL18_1711_003"
    end
