velocity templates for A1 Adapter DG's
[sdnc/oam.git] / platform-logic / restapi-templates / src / main / velocity / a1Mediator-get-policies.vtl
1 ## Velocity template for creating payload getPolicyTypes response
2 #set($begCntr=0)
3 #set($endCntr=0)
4 #set($entries=$ctx.getAttribute("a1MediatorRsp._length"))
5 #set($endCntr=$endCntr.parseInt($entries))
6 #set( $endCntr = $endCntr - 1)
7 [#foreach($no in [$begCntr..$endCntr])$ctx.getAttribute("a1MediatorList.[$no]")#if( $foreach.count < $endCntr+1), #end #end]