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