[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / nested / resourceGroupIndexVar / expectedoutputfiles / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 node_types:
10   org.openecomp.resource.vfc.nodes.heat.compute:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     vf_module_id:
15       hidden: false
16       immutable: false
17       type: string
18       description: Unique ID for this VF_MODULE instance
19     vf_name:
20       hidden: false
21       immutable: false
22       type: string
23       description: The VF Name; defaults to VMVM for the virtual MVM VNF.
24       constraints:
25       - pattern: '[a-zA-Z0-9]+'
26       - max_length: 4
27       - min_length: 4
28     type_name:
29       hidden: false
30       immutable: false
31       type: string
32     cloud_zone_id:
33       hidden: false
34       immutable: false
35       type: string
36       description: The cloud zone for this VF instance
37     vf_instance_num:
38       hidden: false
39       immutable: false
40       type: string
41       description: The number for this VF instance
42       constraints:
43       - pattern: '[0-9]+'
44       - max_length: 2
45       - min_length: 2
46     virtual_mgmt_ip_0:
47       hidden: false
48       immutable: false
49       type: string
50       description: Virtual management network ip address
51     mvs_mgmt_ip_0:
52       hidden: false
53       immutable: false
54       type: list
55       description: List of Management network IP addresses for IPv4
56       entry_schema:
57         type: string
58     compute_image_name:
59       hidden: false
60       immutable: false
61       type: string
62     flavor:
63       hidden: false
64       immutable: false
65       type: string
66       description: Server flavor
67       constraints: [
68         ]
69     key_name:
70       hidden: false
71       immutable: false
72       type: string
73       description: SSH key name
74       constraints: [
75         ]
76     vnf_id:
77       hidden: false
78       immutable: false
79       type: string
80       description: Unique ID for this VF instance
81     availability_zone_0:
82       hidden: false
83       immutable: false
84       type: list
85       description: List of Availability Zone IDs or Names
86       entry_schema:
87         type: string
88     mgmt_net_id:
89       hidden: false
90       immutable: false
91       type: string
92       description: Neutron UUID for the Management network
93       constraints: [
94         ]
95     vm_instance_num:
96       hidden: false
97       immutable: false
98       type: list
99       description: VM instance number list must be a list of three-digit numeric value
100       entry_schema:
101         type: string
102     bootimage:
103       hidden: false
104       immutable: false
105       type: string
106       description: Master bootimage volume id
107     sec_groups:
108       hidden: false
109       immutable: false
110       type: list
111       description: Security groups
112       entry_schema:
113         type: string
114     vf_component:
115       hidden: false
116       immutable: false
117       type: string
118       description: The component that this VF instance is running
119       constraints:
120       - pattern: '[a-zA-Z0-9]+'
121       - max_length: 3
122       - min_length: 3
123     num_instances:
124       hidden: false
125       immutable: false
126       type: float
127       description: number of instance of the VF_module
128   node_templates:
129     mvs_modules_custIndexVar2:
130       type: org.openecomp.resource.abstract.nodes.heat.mvs.nested.heat
131       directives:
132       - substitutable
133       properties:
134         vf_module_id:
135         - get_input: vf_module_id
136         - get_property:
137           - SELF
138           - service_template_filter
139           - index_value
140         - concat:
141           - fff
142           - get_property:
143             - SELF
144             - service_template_filter
145             - index_value
146         vf_name:
147           concat:
148           - get_property:
149             - SELF
150             - service_template_filter
151             - index_value
152           - vf_name
153         cloud_zone_id:
154           concat:
155           - cloud_zone_id_
156           - get_property:
157             - SELF
158             - service_template_filter
159             - index_value
160         vf_instance_num:
161           concat:
162           - vf_instance_num_
163           - get_property:
164             - SELF
165             - service_template_filter
166             - index_value
167           - _bbbb
168         virtual_mgmt_ip_0:
169           get_input: virtual_mgmt_ip_0
170         indx:
171           get_property:
172           - SELF
173           - service_template_filter
174           - index_value
175         mvs_mgmt_ip_0: mvs_mgmt_ip_0
176         flavor:
177           a: a
178           b: b
179           e:
180             get_property:
181             - SELF
182             - service_template_filter
183             - index_value
184           w:
185             concat:
186             - get_property:
187               - SELF
188               - service_template_filter
189               - index_value
190             - _pp
191         key_name:
192         - a
193         - b
194         - get_property:
195           - SELF
196           - service_template_filter
197           - index_value
198         - concat:
199           - p
200           - get_property:
201             - SELF
202             - service_template_filter
203             - index_value
204         service_template_filter:
205           substitute_service_template: mvs.nested.heatServiceTemplate.yaml
206           count: 2
207           mandatory: true
208         vnf_id: null
209         availability_zone_0:
210           get_input: availability_zone_0
211         mgmt_net_id:
212           get_input: mgmt_net_id
213         vm_instance_num:
214           concat:
215           - get_property:
216             - SELF
217             - service_template_filter
218             - index_value
219           - _vm_instance_num_
220           - get_property:
221             - SELF
222             - service_template_filter
223             - index_value
224           - _hhh_
225           - get_property:
226             - SELF
227             - service_template_filter
228             - index_value
229           - get_property:
230             - SELF
231             - service_template_filter
232             - index_value
233           - get_property:
234             - SELF
235             - service_template_filter
236             - index_value
237           - _pppp
238           - get_property:
239             - SELF
240             - service_template_filter
241             - index_value
242         bootimage:
243           get_input: bootimage
244         sec_groups:
245           get_input: sec_groups
246         vf_component:
247           get_property:
248           - SELF
249           - service_template_filter
250           - index_value
251     mvs_modules_custIndexVar1:
252       type: org.openecomp.resource.abstract.nodes.heat.mvs.nested.heat
253       directives:
254       - substitutable
255       properties:
256         vf_module_id:
257         - get_input: vf_module_id
258         - get_property:
259           - SELF
260           - service_template_filter
261           - index_value
262         - concat:
263           - fff
264           - get_property:
265             - SELF
266             - service_template_filter
267             - index_value
268         vf_name:
269           concat:
270           - get_property:
271             - SELF
272             - service_template_filter
273             - index_value
274           - vf_name
275         cloud_zone_id:
276           concat:
277           - cloud_zone_id_
278           - get_property:
279             - SELF
280             - service_template_filter
281             - index_value
282         vf_instance_num:
283           concat:
284           - vf_instance_num_
285           - get_property:
286             - SELF
287             - service_template_filter
288             - index_value
289           - _bbbb
290         virtual_mgmt_ip_0:
291           get_input: virtual_mgmt_ip_0
292         indx:
293           get_property:
294           - SELF
295           - service_template_filter
296           - index_value
297         mvs_mgmt_ip_0: mvs_mgmt_ip_0
298         flavor:
299           a: a
300           b: b
301           e:
302             get_property:
303             - SELF
304             - service_template_filter
305             - index_value
306           w:
307             concat:
308             - get_property:
309               - SELF
310               - service_template_filter
311               - index_value
312             - _pp
313         key_name:
314         - a
315         - b
316         - get_property:
317           - SELF
318           - service_template_filter
319           - index_value
320         - concat:
321           - p
322           - get_property:
323             - SELF
324             - service_template_filter
325             - index_value
326         service_template_filter:
327           substitute_service_template: mvs.nested.heatServiceTemplate.yaml
328           count: 2
329           mandatory: true
330         vnf_id: null
331         availability_zone_0:
332           get_input: availability_zone_0
333         mgmt_net_id:
334           get_input: mgmt_net_id
335         vm_instance_num:
336           concat:
337           - get_property:
338             - SELF
339             - service_template_filter
340             - index_value
341           - _vm_instance_num_
342           - get_property:
343             - SELF
344             - service_template_filter
345             - index_value
346           - _hhh_
347           - get_property:
348             - SELF
349             - service_template_filter
350             - index_value
351           - get_property:
352             - SELF
353             - service_template_filter
354             - index_value
355           - get_property:
356             - SELF
357             - service_template_filter
358             - index_value
359           - _pppp
360           - get_property:
361             - SELF
362             - service_template_filter
363             - index_value
364         bootimage:
365           get_input: bootimage
366         sec_groups:
367           get_input: sec_groups
368         vf_component:
369           get_property:
370           - SELF
371           - service_template_filter
372           - index_value
373     mvs_modules_defaultIndexVar:
374       type: org.openecomp.resource.abstract.nodes.heat.mvs.nested.heat
375       directives:
376       - substitutable
377       properties:
378         vf_module_id:
379         - get_input: vf_module_id
380         - get_property:
381           - SELF
382           - service_template_filter
383           - index_value
384         - concat:
385           - fff
386           - get_property:
387             - SELF
388             - service_template_filter
389             - index_value
390         vf_name:
391           concat:
392           - get_property:
393             - SELF
394             - service_template_filter
395             - index_value
396           - vf_name
397         cloud_zone_id:
398           concat:
399           - cloud_zone_id_
400           - get_property:
401             - SELF
402             - service_template_filter
403             - index_value
404         vf_instance_num:
405           concat:
406           - vf_instance_num_
407           - get_property:
408             - SELF
409             - service_template_filter
410             - index_value
411           - _bbbb
412         virtual_mgmt_ip_0:
413           get_input: virtual_mgmt_ip_0
414         indx:
415           get_property:
416           - SELF
417           - service_template_filter
418           - index_value
419         mvs_mgmt_ip_0: mvs_mgmt_ip_0
420         flavor:
421           a: a
422           b:
423             aa:
424             - sss
425             - concat:
426               - dddd
427               - get_property:
428                 - SELF
429                 - service_template_filter
430                 - index_value
431               - ppp
432             - sd
433             ppp:
434               concat:
435               - get_property:
436                 - SELF
437                 - service_template_filter
438                 - index_value
439               - _pppp___
440               - get_property:
441                 - SELF
442                 - service_template_filter
443                 - index_value
444             eeee: eeeeeee
445           e:
446             get_property:
447             - SELF
448             - service_template_filter
449             - index_value
450           w:
451             concat:
452             - get_property:
453               - SELF
454               - service_template_filter
455               - index_value
456             - _pp
457         key_name:
458         - a
459         - b
460         - get_property:
461           - SELF
462           - service_template_filter
463           - index_value
464         - concat:
465           - p
466           - get_property:
467             - SELF
468             - service_template_filter
469             - index_value
470         service_template_filter:
471           substitute_service_template: mvs.nested.heatServiceTemplate.yaml
472           count: 3
473           mandatory: true
474         vnf_id: null
475         availability_zone_0:
476           get_input: availability_zone_0
477         mgmt_net_id:
478           get_input: mgmt_net_id
479         vm_instance_num:
480           concat:
481           - get_property:
482             - SELF
483             - service_template_filter
484             - index_value
485           - _vm_instance_num_
486           - get_property:
487             - SELF
488             - service_template_filter
489             - index_value
490           - _hhh_
491           - get_property:
492             - SELF
493             - service_template_filter
494             - index_value
495           - get_property:
496             - SELF
497             - service_template_filter
498             - index_value
499           - get_property:
500             - SELF
501             - service_template_filter
502             - index_value
503           - _pppp
504           - get_property:
505             - SELF
506             - service_template_filter
507             - index_value
508         bootimage:
509           get_input: bootimage
510         sec_groups:
511           get_input: sec_groups
512         vf_component:
513           get_property:
514           - SELF
515           - service_template_filter
516           - index_value
517     server_compute_get_attr_test:
518       type: org.openecomp.resource.vfc.nodes.heat.compute
519       properties:
520         flavor: compute_flavor_name
521         image:
522           get_input: compute_image_name
523         config_drive:
524           get_attribute:
525           - mvs_modules_defaultIndexVar
526           - vnfci_id_1
527           - vnfci_id_2
528         user_data_format:
529           get_attribute:
530           - mvs_modules_defaultIndexVar
531           - vnfci_id_1
532           - 1
533         name: compute_name
534   groups:
535     mvs.vfmodule.heat_group:
536       type: org.openecomp.groups.heat.HeatStack
537       properties:
538         heat_file: ../Artifacts/mvs.vfmodule.heat.yaml
539         description: |
540           Metaswitch MVS (Metaview Server)
541       members:
542       - mvs_modules_custIndexVar2
543       - mvs_modules_custIndexVar1
544       - mvs_modules_defaultIndexVar
545       - server_compute_get_attr_test