Velocity templates for A1 Adapter DG's
[sdnc/oam.git] / platform-logic / restapi-templates / src / main / velocity / a1-policy-instance-property-payload-template.vtl
1 ## Velocity template for creating payload for creating A1 Policy instance
2 #set($begCntr=0)
3 #set($endCntr=0)
4 #set($entries=$ctx.getAttribute("create-policy-instance-input.properties_length"))
5 #set($endCntr=$endCntr.parseInt($entries))
6 #set( $endCntr = $endCntr - 1)
7 {#foreach($no in [$begCntr..$endCntr])
8 "$ctx.getAttribute("create-policy-instance-input.properties[$no].property-name")" :
9 $ctx.getAttribute("create-policy-instance-input.properties[$no].property-value")
10 #if( $foreach.count < $endCntr+1), #end #end}