Merge "Add the vDNS CBA in the CDS source"
[ccsdk/cds.git] / components / model-catalog / blueprint-model / service-blueprint / vLB / Templates / vdns-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": "install_script_version",
49       "param-value": "${install_script_version}"
50     },
51     {
52       "param-name": "pub_key",
53       "param-value": "${pub_key}"
54     },
55     {
56       "param-name": "sec_group",
57       "param-value": "${sec_group}"
58     },
59     {
60       "param-name": "demo_artifacts_version",
61       "param-value": "${demo_artifacts_version}"
62     },
63     {
64       "param-name": "public_net_id",
65       "param-value": "${public_net_id}"
66     },
67     {
68       "param-name": "onap_private_net_cidr",
69       "param-value": "${onap_private_net_cidr}"
70     },
71     {
72       "param-name": "pktgen_private_net_cidr",
73       "param-value": "${pktgen_private_net_cidr}"
74     },
75     {
76       "param-name": "vlb_private_net_cidr",
77       "param-value": "${vlb_private_net_cidr}"
78     },
79     {
80       "param-name": "key_name",
81       "param-value": "olc-key"
82     }
83   ],
84   "capability-data": [
85     {
86       "capability-name": "generate-name",
87       "key-mapping": [
88         {
89           "payload": [
90             {
91               "param-name": "resource-name",
92               "param-value": "vnf_name"
93             },
94             {
95               "param-name": "resource-value",
96               "param-value": "${vnf_name}"
97             },
98             {
99               "param-name": "external-key",
100               "param-value": "${vnf-id}_vnf_name"
101             },
102             {
103               "param-name": "policy-instance-name",
104               "param-value": "${vf-naming-policy}"
105             },
106             {
107               "param-name": "naming-type",
108               "param-value": "VNF"
109             },
110             {
111               "param-name": "AIC_CLOUD_REGION",
112               "param-value": "${aic-cloud-region}"
113             }
114           ],
115           "output-key-mapping": [
116             {
117               "resource-name": "vnf_name",
118               "resource-value": "${vnf_name}"
119             }
120           ]
121         }
122       ]
123     },
124     {
125       "capability-name": "netbox-ip-assign",
126       "key-mapping": [
127        
128         {
129           "payload": [
130             {
131               "param-name": "service-instance-id",
132               "param-value": "${service-instance-id}"
133             },
134             {
135               "param-name": "prefix-id",
136               "param-value": "${private1-prefix-id}"
137             },
138             {
139               "param-name": "vnf-id",
140               "param-value": "${vnf-id}"
141             },
142             {
143               "param-name": "external_key",
144               "param-value": "${vnf-id}-vlb_int_private_ip_0"
145             }
146           ],
147           "output-key-mapping": [
148             {
149               "resource-name": "vlb_int_private_ip_0",
150               "resource-value": "${vlb_int_private_ip_0}"
151             }
152           ]
153         },
154         {
155           "payload": [
156             {
157               "param-name": "service-instance-id",
158               "param-value": "${service-instance-id}"
159             },
160             {
161               "param-name": "prefix-id",
162               "param-value": "${private2-prefix-id}"
163             },
164             {
165               "param-name": "vnf-id",
166               "param-value": "${vnf-id}"
167             },
168             {
169               "param-name": "external_key",
170               "param-value": "${vnf-id}-vlb_int_pktgen_private_ip_0"
171             }
172           ],
173           "output-key-mapping": [
174             {
175               "resource-name": "vlb_int_pktgen_private_ip_0",
176               "resource-value": "${vlb_int_pktgen_private_ip_0}"
177             }
178           ]
179         },
180         {
181           "payload": [
182             {
183               "param-name": "service-instance-id",
184               "param-value": "${service-instance-id}"
185             },
186             {
187               "param-name": "prefix-id",
188               "param-value": "${management-prefix-id}"
189             },
190             {
191               "param-name": "vnf-id",
192               "param-value": "${vnf-id}"
193             },
194             {
195               "param-name": "external_key",
196               "param-value": "${vnf-id}-vpg_onap_private_ip_0"
197             }
198           ],
199           "output-key-mapping": [
200             {
201               "resource-name": "vpg_onap_private_ip_0",
202               "resource-value": "${vpg_onap_private_ip_0}"
203             }
204           ]
205         },
206         {
207           "payload": [
208             {
209               "param-name": "service-instance-id",
210               "param-value": "${service-instance-id}"
211             },
212             {
213               "param-name": "prefix-id",
214               "param-value": "${management-prefix-id}"
215             },
216             {
217               "param-name": "vnf-id",
218               "param-value": "${vnf-id}"
219             },
220             {
221               "param-name": "external_key",
222               "param-value": "${vnf-id}-vlb_onap_private_ip_0"
223             }
224           ],
225           "output-key-mapping": [
226             {
227               "resource-name": "vlb_onap_private_ip_0",
228               "resource-value": "${vlb_onap_private_ip_0}"
229             }
230           ]
231         },
232         {
233           "payload": [
234             {
235               "param-name": "service-instance-id",
236               "param-value": "${service-instance-id}"
237             },
238             {
239               "param-name": "prefix-id",
240               "param-value": "${private2-prefix-id}"
241             },
242             {
243               "param-name": "vnf-id",
244               "param-value": "${vnf-id}"
245             },
246             {
247               "param-name": "external_key",
248               "param-value": "${vnf-id}-vpg_int_pktgen_private_ip_0"
249             }
250           ],
251           "output-key-mapping": [
252             {
253               "resource-name": "vpg_int_pktgen_private_ip_0",
254               "resource-value": "${vpg_int_pktgen_private_ip_0}"
255             }
256           ]
257         }
258       ]
259     },
260     {
261       "capability-name": "aai-vnf-put",
262       "key-mapping": [
263         {
264           "payload": [
265             {
266               "param-name": "generic-vnf",
267               "param-value": "generic-vnf"
268             }
269           ],
270           "output-key-mapping": [
271             {
272               "resource-name": "aai-vnf-put",
273               "resource-value": "${status}"
274             }
275           ]
276         }
277       ]
278     }
279   ]
280 }