Templates for SDNR DMAAP payload OOFPCIPOC
[sdnc/oam.git] / platform-logic / restapi-templates / src / main / velocity / oofpcipoc-dmaap-publish-modifyconfig-resp-payload-template.vtl
1 ## Velocity template for configPCI response payload
2 #set($begCntr=0)
3 #set($endCntr=0)
4 #set($entries=$ctx.getAttribute("configuration-phy-cell-id-input.fap-service-number-of-entries"))
5 #set($endCntr=$endCntr.parseInt($entries))
6 #set( $endCntr = $endCntr - 1)
7 {
8         "Configurations": [ #foreach($no in [$begCntr..$endCntr]) {"Status": {
9                         "Code":  "$ctx.getAttribute("prop.oofpcipoc-dmaap-config-resp.status-code")",
10                         "Value": "$ctx.getAttribute("prop.oofpcipoc-dmaap-config-resp.status-value")"
11                 },
12                 "data": {
13                         "FAPService": {
14                                 "alias": "$ctx.getAttribute("configuration-phy-cell-id-input.fap-service[$no].alias")",
15                                 "X0005b9Lte": {
16                                         "phyCellIdInUse": "$ctx.getAttribute("configuration-phy-cell-id-input.fap-service[$no].phy-cell-id-in-use")",
17                                         "pnfName": "$ctx.getAttribute("configuration-phy-cell-id-input.fap-service[$no].pnf-name")"
18                                 },
19                                 "CellConfig": {
20                                         "LTE": {
21                                                 "RAN": {
22                                                         "Common": {
23                                                                 "CellIdentity": "$ctx.getAttribute("configuration-phy-cell-id-input.fap-service[$no].cid")"
24                                                         }
25                                                 }
26                                         }
27                                 }
28                         }
29                 }
30         } #if( $foreach.count == $endCntr), #end #end ]
31 }