summaryrefslogtreecommitdiffstats
path: root/platform-logic/restapi-templates/src/main/velocity/oofpcipoc-dmaap-publish-modifyconfiganr-resp-payload-template.vtl
blob: 700eb73969a3b4a4a439a03bbeddd6ed19f71daf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
## Velocity template for modifyconfigANR response payload
#set($begCntr=0)
#set($endCntr=0)
#set($entries=$ctx.getAttribute("generic-neighbor-configuration-input.lte-cell-number-of-entries"))
#set($endCntr=$endCntr.parseInt($entries))
#set( $endCntr = $endCntr - 1)
{
        "Configurations": [{
                "Status": {
                        "Code": "$ctx.getAttribute("prop.oofpcipoc-dmaap-config-resp.status-code")",
                        "Value": "$ctx.getAttribute("prop.oofpcipoc-dmaap-config-resp.status-value")"
                },
                "data": {
                        "FAPService": {
                                "alias": "$ctx.getAttribute("generic-neighbor-configuration-input.alias")",
                                "CellConfig": {
                                        "LTE": {
                                                "RAN": {
                                                        "Common": {
                                                                "CellIdentity": "$ctx.getAttribute("generic-neighbor-configuration-input.alias")"
                                                        },
                                                        "NeighborListInUse": {
                                                                "LTECellNumberOfEntries": "$ctx.getAttribute("generic-neighbor-configuration-input.lte-cell-number-of-entries")",
                                                                "LTECell": [ #foreach($no in [$begCntr..$endCntr]) {
                                                                        "PLMNID": "$ctx.getAttribute("generic-neighbor-configuration-input.neighbor-list-in-use[$no].plmnid")",
                                                                        "CID": "$ctx.getAttribute("generic-neighbor-configuration-input.neighbor-list-in-use[$no].cid")",
                                                                        "PhyCellID": "$ctx.getAttribute("generic-neighbor-configuration-input.neighbor-list-in-use[$no].phy-cell-id")",
                                                                        "PNFName": "$ctx.getAttribute("generic-neighbor-configuration-input.neighbor-list-in-use[$no].pnf-name")",
                                                                        "Blacklisted": "$ctx.getAttribute("generic-neighbor-configuration-input.neighbor-list-in-use[$no].blacklisted")"
                                                                } #if( $foreach.count == $endCntr), #end #end ]
                                                        }
                                                }
                                        }
                                }
                        }
                }
        }   ]
}