8269732bdf29657fc71a76af07785420abca5ba3
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / nestedOtherScenarios / multiLevel / twoNestedLevelsWithAllPatternsAndConnectivities / out / 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 topology_template:
10   inputs:
11     p1:
12       hidden: false
13       immutable: false
14       annotations:
15         source:
16           type: org.openecomp.annotations.Source
17           properties:
18             vf_module_label:
19             - nested2
20             source_type: HEAT
21             param_name: p1
22       type: string
23       description: UID of osm network
24     p2:
25       hidden: false
26       immutable: false
27       annotations:
28         source:
29           type: org.openecomp.annotations.Source
30           properties:
31             vf_module_label:
32             - nested2
33             source_type: HEAT
34             param_name: p2
35       type: string
36       description: UID of osm network
37     rd_server_1b_flavor:
38       hidden: false
39       immutable: false
40       annotations:
41         source:
42           type: org.openecomp.annotations.Source
43           properties:
44             vf_module_label:
45             - nested2
46             source_type: HEAT
47             param_name: rd_server_1b_flavor
48       type: string
49       description: Flavor for PD server
50     BE_1c1_names:
51       hidden: false
52       immutable: false
53       annotations:
54         source:
55           type: org.openecomp.annotations.Source
56           properties:
57             vf_module_label:
58             - nested2
59             source_type: HEAT
60             param_name: BE_1c1_names
61       type: list
62       description: BE1, BE2 server names
63       entry_schema:
64         type: string
65     ps_server_1b_ips:
66       hidden: false
67       immutable: false
68       annotations:
69         source:
70           type: org.openecomp.annotations.Source
71           properties:
72             vf_module_label:
73             - nested2
74             source_type: HEAT
75             param_name: ps_server_1b_ips
76       type: string
77     packet_internal_network_name:
78       hidden: false
79       immutable: false
80       annotations:
81         source:
82           type: org.openecomp.annotations.Source
83           properties:
84             vf_module_label:
85             - nested2
86             source_type: HEAT
87             param_name: packet_internal_network_name
88       type: string
89     security_group_name:
90       hidden: false
91       immutable: false
92       annotations:
93         source:
94           type: org.openecomp.annotations.Source
95           properties:
96             vf_module_label:
97             - nested2
98             source_type: HEAT
99             param_name: security_group_name
100       type: list
101       description: BE1, BE2 server names
102       entry_schema:
103         type: string
104     osm_server_1c2_names:
105       hidden: false
106       immutable: false
107       annotations:
108         source:
109           type: org.openecomp.annotations.Source
110           properties:
111             vf_module_label:
112             - nested2
113             source_type: HEAT
114             param_name: osm_server_1c2_names
115       type: list
116       description: BE1, BE2 server names
117       entry_schema:
118         type: string
119     osm_server_1c2_flavor:
120       hidden: false
121       immutable: false
122       annotations:
123         source:
124           type: org.openecomp.annotations.Source
125           properties:
126             vf_module_label:
127             - nested2
128             source_type: HEAT
129             param_name: osm_server_1c2_flavor
130       type: string
131       description: Flavor for BE server
132     rd_server_1b_ips:
133       hidden: false
134       immutable: false
135       annotations:
136         source:
137           type: org.openecomp.annotations.Source
138           properties:
139             vf_module_label:
140             - nested2
141             source_type: HEAT
142             param_name: rd_server_1b_ips
143       type: string
144     ps_server_1b_names:
145       hidden: false
146       immutable: false
147       annotations:
148         source:
149           type: org.openecomp.annotations.Source
150           properties:
151             vf_module_label:
152             - nested2
153             source_type: HEAT
154             param_name: ps_server_1b_names
155       type: list
156       description: Ps server names
157       entry_schema:
158         type: string
159     rd_server_1b_names:
160       hidden: false
161       immutable: false
162       annotations:
163         source:
164           type: org.openecomp.annotations.Source
165           properties:
166             vf_module_label:
167             - nested2
168             source_type: HEAT
169             param_name: rd_server_1b_names
170       type: list
171       description: PD server names
172       entry_schema:
173         type: string
174     jsa_name:
175       hidden: false
176       immutable: false
177       annotations:
178         source:
179           type: org.openecomp.annotations.Source
180           properties:
181             vf_module_label:
182             - main
183             source_type: HEAT
184             param_name: jsa_name
185       type: string
186       description: network name of jsa log network
187     osm_server_1c2_image:
188       hidden: false
189       immutable: false
190       annotations:
191         source:
192           type: org.openecomp.annotations.Source
193           properties:
194             vf_module_label:
195             - nested2
196             source_type: HEAT
197             param_name: osm_server_1c2_image
198       type: string
199       description: Image for BE server
200     BE_osm_ips:
201       hidden: false
202       immutable: false
203       annotations:
204         source:
205           type: org.openecomp.annotations.Source
206           properties:
207             vf_module_label:
208             - nested2
209             source_type: HEAT
210             param_name: BE_osm_ips
211       type: string
212     packet_external_network_name:
213       hidden: false
214       immutable: false
215       annotations:
216         source:
217           type: org.openecomp.annotations.Source
218           properties:
219             vf_module_label:
220             - nested2
221             source_type: HEAT
222             param_name: packet_external_network_name
223       type: string
224     BE_1c1_image:
225       hidden: false
226       immutable: false
227       annotations:
228         source:
229           type: org.openecomp.annotations.Source
230           properties:
231             vf_module_label:
232             - nested2
233             source_type: HEAT
234             param_name: BE_1c1_image
235       type: string
236       description: Image for BE server
237     availability_zone_0:
238       label: availabilityzone name
239       hidden: false
240       immutable: false
241       annotations:
242         source:
243           type: org.openecomp.annotations.Source
244           properties:
245             vf_module_label:
246             - nested2
247             source_type: HEAT
248             param_name: availability_zone_0
249       type: string
250       description: availabilityzone name
251     rd_server_1b_image:
252       hidden: false
253       immutable: false
254       annotations:
255         source:
256           type: org.openecomp.annotations.Source
257           properties:
258             vf_module_label:
259             - nested2
260             source_type: HEAT
261             param_name: rd_server_1b_image
262       type: string
263       description: PD Image server
264     ps_server_1b_flavor:
265       hidden: false
266       immutable: false
267       annotations:
268         source:
269           type: org.openecomp.annotations.Source
270           properties:
271             vf_module_label:
272             - nested2
273             source_type: HEAT
274             param_name: ps_server_1b_flavor
275       type: string
276       description: Flavor for PS server
277     ps_server_1b_image:
278       hidden: false
279       immutable: false
280       annotations:
281         source:
282           type: org.openecomp.annotations.Source
283           properties:
284             vf_module_label:
285             - nested2
286             source_type: HEAT
287             param_name: ps_server_1b_image
288       type: string
289       description: Ps Image server
290     net:
291       hidden: false
292       immutable: false
293       annotations:
294         source:
295           type: org.openecomp.annotations.Source
296           properties:
297             vf_module_label:
298             - nested2
299             source_type: HEAT
300             param_name: net
301       type: string
302     BE_1c1_flavor:
303       hidden: false
304       immutable: false
305       annotations:
306         source:
307           type: org.openecomp.annotations.Source
308           properties:
309             vf_module_label:
310             - nested2
311             source_type: HEAT
312             param_name: BE_1c1_flavor
313       type: string
314       description: Flavor for BE server
315   node_templates:
316     abstract_rd_server_1b_1:
317       type: org.openecomp.resource.abstract.nodes.rd_server_1b_1
318       directives:
319       - substitutable
320       properties:
321         port_ps_server_1b_port_mac_requirements:
322           mac_count_required:
323             is_required: false
324         port_ps_server_1b_port_fixed_ips:
325         - ip_address:
326             get_input:
327             - ps_server_1b_ips
328             - 0
329         compute_rd_server_1b_availability_zone:
330         - get_input: availability_zone_0
331         vm_flavor_name:
332           get_input: rd_server_1b_flavor
333         port_ps_server_1b_port_network:
334         - get_input: net
335         port_ps_server_1b_port_ip_requirements:
336         - ip_version: 4
337           ip_count_required:
338             is_required: true
339           floating_ip_count_required:
340             is_required: false
341         vm_image_name:
342           get_input: rd_server_1b_image
343         port_ps_server_1b_port_replacement_policy:
344         - AUTO
345         compute_rd_server_1b_name:
346         - get_input:
347           - rd_server_1b_names
348           - 1
349         service_template_filter:
350           substitute_service_template: Nested_rd_server_1b_1ServiceTemplate.yaml
351           count: 1
352         index_value:
353           get_property:
354           - SELF
355           - service_template_filter
356           - index_value
357     dependsOn_network:
358       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
359       properties:
360         network_name:
361           get_input: jsa_name
362       requirements:
363       - dependency:
364           capability: tosca.capabilities.Node
365           node: test_nested_all_patterns
366           relationship: tosca.relationships.DependsOn
367       - dependency:
368           capability: tosca.capabilities.Node
369           node: test_nested_no_compute
370           relationship: tosca.relationships.DependsOn
371       - dependency:
372           capability: tosca.capabilities.Node
373           node: test_nested_pattern_4
374           relationship: tosca.relationships.DependsOn
375     abstract_rd_server_1b:
376       type: org.openecomp.resource.abstract.nodes.rd_server_1b
377       directives:
378       - substitutable
379       properties:
380         port_rd_server_1b_port_network:
381         - get_input: net
382         compute_rd_server_1b_availability_zone:
383         - get_input: availability_zone_0
384         vm_flavor_name:
385           get_input: rd_server_1b_flavor
386         port_rd_server_1b_port_ip_requirements:
387         - ip_version: 4
388           ip_count_required:
389             is_required: true
390           floating_ip_count_required:
391             is_required: false
392         vm_image_name:
393           get_input: rd_server_1b_image
394         port_rd_server_1b_port_mac_requirements:
395           mac_count_required:
396             is_required: false
397         compute_rd_server_1b_name:
398         - get_input:
399           - rd_server_1b_names
400           - 0
401         port_rd_server_1b_port_fixed_ips:
402         - ip_address:
403             get_input:
404             - rd_server_1b_ips
405             - 0
406         port_rd_server_1b_port_replacement_policy:
407         - AUTO
408         service_template_filter:
409           substitute_service_template: Nested_rd_server_1bServiceTemplate.yaml
410           count: 1
411         index_value:
412           get_property:
413           - SELF
414           - service_template_filter
415           - index_value
416     test_nested_pattern_4:
417       type: org.openecomp.resource.abstract.nodes.heat.pd_server
418       directives:
419       - substitutable
420       properties:
421         service_template_filter:
422           substitute_service_template: nested-pattern-4ServiceTemplate.yaml
423         p2:
424           get_attribute:
425           - test_nested_no_compute
426           - no_compute_attr_1
427         port_pd_server_port_2_ip_requirements:
428         - ip_version: 4
429           ip_count_required:
430             is_required: true
431           floating_ip_count_required:
432             is_required: false
433         port_pd_server_port_2_mac_requirements:
434           mac_count_required:
435             is_required: false
436         port_pd_server_port_1_ip_requirements:
437         - ip_version: 4
438           ip_count_required:
439             is_required: true
440           floating_ip_count_required:
441             is_required: false
442         port_pd_server_port_1_mac_requirements:
443           mac_count_required:
444             is_required: false
445     test_nested_no_compute:
446       type: org.openecomp.resource.abstract.nodes.heat.nested-no-compute
447       directives:
448       - substitutable
449       properties:
450         p1:
451           get_attribute:
452           - test_nested_pattern_4
453           - pattern4_attr_1
454         service_template_filter:
455           substitute_service_template: nested-no-computeServiceTemplate.yaml
456     nested2_pattern_4:
457       type: org.openecomp.resource.abstract.nodes.heat.pd_server
458       directives:
459       - substitutable
460       properties:
461         service_template_filter:
462           substitute_service_template: nested-pattern-4ServiceTemplate.yaml
463         p2:
464           get_input: p2
465         port_pd_server_port_2_ip_requirements:
466         - ip_version: 4
467           ip_count_required:
468             is_required: true
469           floating_ip_count_required:
470             is_required: false
471         port_pd_server_port_2_mac_requirements:
472           mac_count_required:
473             is_required: false
474         port_pd_server_port_1_ip_requirements:
475         - ip_version: 4
476           ip_count_required:
477             is_required: true
478           floating_ip_count_required:
479             is_required: false
480         port_pd_server_port_1_mac_requirements:
481           mac_count_required:
482             is_required: false
483     abstract_osm_server_1c2_0:
484       type: org.openecomp.resource.abstract.nodes.osm_server_1c2
485       directives:
486       - substitutable
487       properties:
488         port_osm_port_replacement_policy:
489         - AUTO
490         port_osm_port_network:
491         - packet_internal_network_2
492         compute_osm_server_1c2_name:
493         - get_input:
494           - osm_server_1c2_names
495           - 0
496         vm_flavor_name:
497           get_input: osm_server_1c2_flavor
498         port_osm_port_ip_requirements:
499         - ip_version: 4
500           ip_count_required:
501             is_required: true
502           floating_ip_count_required:
503             is_required: false
504         port_osm_port_fixed_ips:
505         - ip_address:
506             get_input:
507             - BE_osm_ips
508             - 1
509         vm_image_name:
510           get_input: osm_server_1c2_image
511         port_osm_port_mac_requirements:
512           mac_count_required:
513             is_required: false
514         compute_osm_server_1c2_availability_zone:
515         - get_input: availability_zone_0
516         service_template_filter:
517           substitute_service_template: Nested_osm_server_1c2ServiceTemplate.yaml
518           count: 1
519         index_value:
520           get_property:
521           - SELF
522           - service_template_filter
523           - index_value
524       requirements:
525       - link_osm_server_1c2_osm_port:
526           capability: tosca.capabilities.network.Linkable
527           node: packet_internal_network_2
528           relationship: tosca.relationships.network.LinksTo
529     abstract_osm_server_1c2_1:
530       type: org.openecomp.resource.abstract.nodes.osm_server_1c2
531       directives:
532       - substitutable
533       properties:
534         port_osm_port_replacement_policy:
535         - AUTO
536         port_osm_port_network:
537         - packet_external_network_2
538         compute_osm_server_1c2_name:
539         - get_input:
540           - osm_server_1c2_names
541           - 1
542         vm_flavor_name:
543           get_input: osm_server_1c2_flavor
544         port_osm_port_ip_requirements:
545         - ip_version: 4
546           ip_count_required:
547             is_required: true
548           floating_ip_count_required:
549             is_required: false
550         port_osm_port_fixed_ips:
551         - ip_address:
552             get_input:
553             - BE_osm_ips
554             - 1
555         vm_image_name:
556           get_input: osm_server_1c2_image
557         port_osm_port_mac_requirements:
558           mac_count_required:
559             is_required: false
560         compute_osm_server_1c2_metadata:
561         - connectivity_to_server_1c1_BE_1:
562             get_attribute:
563             - abstract_BE_1c1
564             - BE_1c1_accessIPv4
565           connectivity_to_pattern_4:
566             get_attribute:
567             - nested2_pattern_4
568             - pattern4_attr_1
569           connectivity_to_server_1c1_BE_2:
570             get_attribute:
571             - abstract_BE_1c1
572             - BE_1c1_accessIPv4
573           connectivity_to_rd_server_1b:
574             get_attribute:
575             - abstract_rd_server_1b
576             - rd_server_1b_accessIPv4
577         compute_osm_server_1c2_availability_zone:
578         - get_input: availability_zone_0
579         service_template_filter:
580           substitute_service_template: Nested_osm_server_1c2ServiceTemplate.yaml
581           count: 1
582         index_value:
583           get_property:
584           - SELF
585           - service_template_filter
586           - index_value
587       requirements:
588       - link_osm_server_1c2_osm_port:
589           capability: tosca.capabilities.network.Linkable
590           node: packet_external_network_2
591           relationship: tosca.relationships.network.LinksTo
592     packet_internal_network_2:
593       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
594       properties:
595         network_name:
596           get_input: packet_internal_network_name
597     packet_external_network_2:
598       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
599       properties:
600         network_name:
601           get_input: packet_external_network_name
602     abstract_BE_1c1:
603       type: org.openecomp.resource.abstract.nodes.BE_1c1
604       directives:
605       - substitutable
606       properties:
607         vm_flavor_name:
608           get_input: BE_1c1_flavor
609         port_BE_port_mac_requirements:
610           mac_count_required:
611             is_required: false
612         port_BE_port_fixed_ips:
613         - - ip_address:
614               get_input:
615               - BE_osm_ips
616               - 0
617         - - ip_address:
618               get_input:
619               - BE_osm_ips
620               - 0
621         compute_BE_1c1_availability_zone:
622         - get_input: availability_zone_0
623         - get_input: availability_zone_0
624         port_BE_port_network:
625         - packet_internal_network_2
626         - packet_internal_network_2
627         port_BE_port_ip_requirements:
628         - ip_version: 4
629           ip_count_required:
630             is_required: true
631           floating_ip_count_required:
632             is_required: false
633         vm_image_name:
634           get_input: BE_1c1_image
635         compute_BE_1c1_name:
636         - get_input:
637           - BE_1c1_names
638           - 1
639         - get_input:
640           - BE_1c1_names
641           - 0
642         port_BE_port_replacement_policy:
643         - AUTO
644         - AUTO
645         service_template_filter:
646           substitute_service_template: Nested_BE_1c1ServiceTemplate.yaml
647           count: 2
648         index_value:
649           get_property:
650           - SELF
651           - service_template_filter
652           - index_value
653       requirements:
654       - link_BE_1c1_BE_port:
655           capability: tosca.capabilities.network.Linkable
656           node: packet_internal_network_2
657           relationship: tosca.relationships.network.LinksTo
658     test_nested_all_patterns:
659       type: org.openecomp.resource.abstract.nodes.heat.nested1
660       directives:
661       - substitutable
662       properties:
663         p1:
664           get_attribute:
665           - test_nested_pattern_4
666           - pattern4_attr_1
667         service_template_filter:
668           substitute_service_template: nested1ServiceTemplate.yaml
669         p2:
670           get_attribute:
671           - test_nested_no_compute
672           - no_compute_attr_1
673   groups:
674     main_group:
675       type: org.openecomp.groups.heat.HeatStack
676       properties:
677         heat_file: ../Artifacts/main.yml
678         description: |
679           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
680       members:
681       - dependsOn_network
682       - test_nested_pattern_4
683       - test_nested_no_compute
684       - test_nested_all_patterns
685     nested2_group:
686       type: org.openecomp.groups.heat.HeatStack
687       properties:
688         heat_file: ../Artifacts/nested2.yml
689         description: nested1
690       members:
691       - nested2_pattern_4
692       - packet_internal_network_2
693       - packet_external_network_2
694       - abstract_rd_server_1b
695       - abstract_rd_server_1b_1
696       - abstract_osm_server_1c2_0
697       - abstract_osm_server_1c2_1
698       - abstract_BE_1c1
699   outputs:
700     all_pattern_attr_1:
701       description: all_pattern_attr_1
702       value:
703         get_attribute:
704         - abstract_osm_server_1c2_1
705         - osm_server_1c2_accessIPv4