Merge "Worked on defect CCSDK-1793"
[ccsdk/cds.git] / components / model-catalog / blueprint-model / service-blueprint / vLB / Templates / vnf-template.vtl
1 {
2   "resource-accumulator-resolved-data": [
3     {
4       "param-name": "service-instance-id",
5       "param-value": "${service-instance-id}"
6     },
7     {
8       "param-name": "vnf_id",
9       "param-value": "${vnf-id}"
10     },
11          {
12       "param-name": "vf-naming-policy",
13       "param-value": "${vf-naming-policy}"
14     },
15     {
16       "param-name": "vnf-model-customization-uuid",
17       "param-value": "${vnf-model-customization-uuid}"
18     },
19     {
20       "param-name": "aic-cloud-region",
21       "param-value": "${aic-cloud-region}"
22     },
23     {
24       "param-name": "onap_private_net_id",
25       "param-value": "${onap_private_net_id}"
26     },
27         {
28       "param-name": "image_name",
29       "param-value": "${image_name}"
30     },
31     {
32       "param-name": "onap_private_subnet_id",
33       "param-value": "${onap_private_subnet_id}"
34     },
35     {
36       "param-name": "vfccustomizationuuid",
37       "param-value": "${vfccustomizationuuid}"
38     },
39     {
40       "param-name": "vf-module-model-customization-uuid",
41       "param-value": "${vf-module-model-customization-uuid}"
42     },
43     {
44       "param-name": "cloud_env",
45       "param-value": "${cloud_env}"
46     },
47            {
48       "param-name": "flavor_name",
49       "param-value": "${flavor_name}"
50     },
51     {
52       "param-name": "install_script_version",
53       "param-value": "${install_script_version}"
54     },
55     {
56       "param-name": "pub_key",
57       "param-value": "${pub_key}"
58     },
59     {
60       "param-name": "sec_group",
61       "param-value": "${sec_group}"
62     },
63     {
64       "param-name": "demo_artifacts_version",
65       "param-value": "${demo_artifacts_version}"
66     },
67     {
68       "param-name": "public_net_id",
69       "param-value": "${public_net_id}"
70     },
71     {
72       "param-name": "onap_private_net_cidr",
73       "param-value": "${onap_private_net_cidr}"
74     },
75     {
76       "param-name": "pktgen_private_net_cidr",
77       "param-value": "${pktgen_private_net_cidr}"
78     },
79     {
80       "param-name": "vlb_private_net_cidr",
81       "param-value": "${vlb_private_net_cidr}"
82     },
83     {
84       "param-name": "key_name",
85       "param-value": "olc-key"
86     }
87   ],
88   "capability-data": [
89     {
90       "capability-name": "generate-name",
91       "key-mapping": [
92         {
93           "payload": [
94             {
95               "param-name": "resource-name",
96               "param-value": "vnf_name"
97             },
98             {
99               "param-name": "resource-value",
100               "param-value": "${vnf_name}"
101             },
102             {
103               "param-name": "external-key",
104               "param-value": "${vnf-id}_vnf_name"
105             },
106             {
107               "param-name": "policy-instance-name",
108               "param-value": "${vf-naming-policy}"
109             },
110             {
111               "param-name": "naming-type",
112               "param-value": "VNF"
113             },
114             {
115               "param-name": "AIC_CLOUD_REGION",
116               "param-value": "${aic-cloud-region}"
117             }
118           ],
119           "output-key-mapping": [
120             {
121               "resource-name": "vnf_name",
122               "resource-value": "${vnf_name}"
123             }
124           ]
125         }
126       ]
127     },
128     {
129       "capability-name": "netbox-ip-assign",
130       "key-mapping": [
131        
132         {
133           "payload": [
134             {
135               "param-name": "service-instance-id",
136               "param-value": "${service-instance-id}"
137             },
138             {
139               "param-name": "prefix-id",
140               "param-value": "${private1-prefix-id}"
141             },
142             {
143               "param-name": "vnf-id",
144               "param-value": "${vnf-id}"
145             },
146             {
147               "param-name": "external_key",
148               "param-value": "${vnf-id}-vlb_int_private_ip_0"
149             }
150           ],
151           "output-key-mapping": [
152             {
153               "resource-name": "vlb_int_private_ip_0",
154               "resource-value": "${vlb_int_private_ip_0}"
155             }
156           ]
157         },
158         {
159           "payload": [
160             {
161               "param-name": "service-instance-id",
162               "param-value": "${service-instance-id}"
163             },
164             {
165               "param-name": "prefix-id",
166               "param-value": "${private2-prefix-id}"
167             },
168             {
169               "param-name": "vnf-id",
170               "param-value": "${vnf-id}"
171             },
172             {
173               "param-name": "external_key",
174               "param-value": "${vnf-id}-vlb_int_pktgen_private_ip_0"
175             }
176           ],
177           "output-key-mapping": [
178             {
179               "resource-name": "vlb_int_pktgen_private_ip_0",
180               "resource-value": "${vlb_int_pktgen_private_ip_0}"
181             }
182           ]
183         },
184         {
185           "payload": [
186             {
187               "param-name": "service-instance-id",
188               "param-value": "${service-instance-id}"
189             },
190             {
191               "param-name": "prefix-id",
192               "param-value": "${management-prefix-id}"
193             },
194             {
195               "param-name": "vnf-id",
196               "param-value": "${vnf-id}"
197             },
198             {
199               "param-name": "external_key",
200               "param-value": "${vnf-id}-vpg_onap_private_ip_0"
201             }
202           ],
203           "output-key-mapping": [
204             {
205               "resource-name": "vpg_onap_private_ip_0",
206               "resource-value": "${vpg_onap_private_ip_0}"
207             }
208           ]
209         },
210         {
211           "payload": [
212             {
213               "param-name": "service-instance-id",
214               "param-value": "${service-instance-id}"
215             },
216             {
217               "param-name": "prefix-id",
218               "param-value": "${management-prefix-id}"
219             },
220             {
221               "param-name": "vnf-id",
222               "param-value": "${vnf-id}"
223             },
224             {
225               "param-name": "external_key",
226               "param-value": "${vnf-id}-vlb_onap_private_ip_0"
227             }
228           ],
229           "output-key-mapping": [
230             {
231               "resource-name": "vlb_onap_private_ip_0",
232               "resource-value": "${vlb_onap_private_ip_0}"
233             }
234           ]
235         },
236         {
237           "payload": [
238             {
239               "param-name": "service-instance-id",
240               "param-value": "${service-instance-id}"
241             },
242             {
243               "param-name": "prefix-id",
244               "param-value": "${private2-prefix-id}"
245             },
246             {
247               "param-name": "vnf-id",
248               "param-value": "${vnf-id}"
249             },
250             {
251               "param-name": "external_key",
252               "param-value": "${vnf-id}-vpg_int_pktgen_private_ip_0"
253             }
254           ],
255           "output-key-mapping": [
256             {
257               "resource-name": "vpg_int_pktgen_private_ip_0",
258               "resource-value": "${vpg_int_pktgen_private_ip_0}"
259             }
260           ]
261         }
262       ]
263     },
264     {
265       "capability-name": "aai-vnf-put",
266       "key-mapping": [
267         {
268           "payload": [
269             {
270               "param-name": "generic-vnf",
271               "param-value": "generic-vnf"
272             }
273           ],
274           "output-key-mapping": [
275             {
276               "resource-name": "aai-vnf-put",
277               "resource-value": "${status}"
278             }
279           ]
280         }
281       ]
282     }
283   ]
284 }