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