2d367f7555f7bdd1f3fa58514b4a23d26a6e64ae
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / nestedSingleCompute / nestedMultiLevels / 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     security_group_name:
12       hidden: false
13       immutable: false
14       type: string
15       description: network name of jsa log network
16     jsa_name:
17       hidden: false
18       immutable: false
19       type: string
20       description: network name of jsa log network
21   node_templates:
22     test_nested1Level:
23       type: org.openecomp.resource.abstract.nodes.heat.nested1
24       directives:
25       - substitutable
26       properties:
27         p1: jsa_security_group1
28         service_template_filter:
29           substitute_service_template: nested1ServiceTemplate.yaml
30         p2: jsa_security_group2
31     test_nestedInvalidConnectionToNova:
32       type: org.openecomp.resource.abstract.nodes.heat.nested1
33       directives:
34       - substitutable
35       properties:
36         p1: test_nova
37         service_template_filter:
38           substitute_service_template: nested1ServiceTemplate.yaml
39     test_resourceGroup:
40       type: org.openecomp.resource.abstract.nodes.heat.nested3
41       directives:
42       - substitutable
43       properties:
44         p1: jsa_security_group2
45         service_template_filter:
46           substitute_service_template: nested3ServiceTemplate.yaml
47           count: 9
48           mandatory: true
49         indx:
50           get_property:
51           - SELF
52           - service_template_filter
53           - index_value
54     abstract_jsa:
55       type: org.openecomp.resource.abstract.nodes.jsa
56       directives:
57       - substitutable
58       properties:
59         compute_jsa_name:
60         - get_input: jsa_name
61         vm_image_name: image
62         service_template_filter:
63           substitute_service_template: Nested_jsaServiceTemplate.yaml
64           count: 1
65         index_value:
66           get_property:
67           - SELF
68           - service_template_filter
69           - index_value
70     jsa_security_group1:
71       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
72       properties:
73         name:
74           get_input: security_group_name
75         description: ems security group
76         rules:
77         - protocol: tcp
78           ethertype: IPv4
79           port_range_max: 65535
80           remote_ip_prefix: 0.0.0.0/0
81           direction: egress
82           port_range_min: 1
83         - protocol: udp
84           ethertype: IPv4
85           port_range_max: 65535
86           remote_ip_prefix: 0.0.0.0/0
87           direction: egress
88           port_range_min: 1
89         - protocol: icmp
90           ethertype: IPv4
91           remote_ip_prefix: 0.0.0.0/0
92           direction: egress
93         - protocol: tcp
94           ethertype: IPv6
95           port_range_max: 65535
96           remote_ip_prefix: ::/0
97           direction: egress
98           port_range_min: 1
99         - protocol: udp
100           ethertype: IPv6
101           port_range_max: 65535
102           remote_ip_prefix: ::/0
103           direction: egress
104           port_range_min: 1
105         - protocol: icmp
106           ethertype: IPv6
107           remote_ip_prefix: ::/0
108           direction: egress
109         - protocol: tcp
110           ethertype: IPv4
111           port_range_max: 65535
112           remote_ip_prefix: 0.0.0.0/0
113           direction: ingress
114           port_range_min: 1
115         - protocol: udp
116           ethertype: IPv4
117           port_range_max: 65535
118           remote_ip_prefix: 0.0.0.0/0
119           direction: ingress
120           port_range_min: 1
121         - protocol: icmp
122           ethertype: IPv4
123           remote_ip_prefix: 0.0.0.0/0
124           direction: ingress
125         - protocol: tcp
126           ethertype: IPv6
127           port_range_max: 65535
128           remote_ip_prefix: ::/0
129           direction: ingress
130           port_range_min: 1
131         - protocol: udp
132           ethertype: IPv6
133           port_range_max: 65535
134           remote_ip_prefix: ::/0
135           direction: ingress
136           port_range_min: 1
137         - protocol: icmp
138           ethertype: IPv6
139           remote_ip_prefix: ::/0
140           direction: ingress
141       requirements:
142       - port:
143           capability: attachment_cmaui_port_6_test_nested3Level_test_nested2Level
144           node: test_nested1Level
145           relationship: org.openecomp.relationships.AttachesTo
146       - port:
147           capability: attachment_cmaui_port_3_test_nested2Level
148           node: test_nested1Level
149           relationship: org.openecomp.relationships.AttachesTo
150       - port:
151           capability: attachment_cmaui_port_7_test_nested4Level_test_nested3Level_test_nested2Level
152           node: test_nested1Level
153           relationship: org.openecomp.relationships.AttachesTo
154       - port:
155           capability: attachment_cmaui_port_8_test_nested4Level_test_nested3Level_test_nested2Level
156           node: test_nested1Level
157           relationship: org.openecomp.relationships.AttachesTo
158       - port:
159           capability: attachment_cmaui_port_8_test_nested4Level_test_nested3Level_test_nested2Level
160           node: test_nested1Level
161           relationship: org.openecomp.relationships.AttachesTo
162       - port:
163           capability: attachment_cmaui_port_4_test_nested2Level
164           node: test_nested1Level
165           relationship: org.openecomp.relationships.AttachesTo
166       - port:
167           capability: attachment_cmaui_port_1
168           node: test_nested1Level
169           relationship: org.openecomp.relationships.AttachesTo
170       - port:
171           capability: attachment_cmaui_port_5_test_nested3Level_test_nested2Level
172           node: test_nested1Level
173           relationship: org.openecomp.relationships.AttachesTo
174     jsa_security_group2:
175       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
176       properties:
177         name:
178           get_input: security_group_name
179         description: ems security group
180         rules:
181         - protocol: tcp
182           ethertype: IPv4
183           port_range_max: 65535
184           remote_ip_prefix: 0.0.0.0/0
185           direction: egress
186           port_range_min: 1
187         - protocol: udp
188           ethertype: IPv4
189           port_range_max: 65535
190           remote_ip_prefix: 0.0.0.0/0
191           direction: egress
192           port_range_min: 1
193         - protocol: icmp
194           ethertype: IPv4
195           remote_ip_prefix: 0.0.0.0/0
196           direction: egress
197         - protocol: tcp
198           ethertype: IPv6
199           port_range_max: 65535
200           remote_ip_prefix: ::/0
201           direction: egress
202           port_range_min: 1
203         - protocol: udp
204           ethertype: IPv6
205           port_range_max: 65535
206           remote_ip_prefix: ::/0
207           direction: egress
208           port_range_min: 1
209         - protocol: icmp
210           ethertype: IPv6
211           remote_ip_prefix: ::/0
212           direction: egress
213         - protocol: tcp
214           ethertype: IPv4
215           port_range_max: 65535
216           remote_ip_prefix: 0.0.0.0/0
217           direction: ingress
218           port_range_min: 1
219         - protocol: udp
220           ethertype: IPv4
221           port_range_max: 65535
222           remote_ip_prefix: 0.0.0.0/0
223           direction: ingress
224           port_range_min: 1
225         - protocol: icmp
226           ethertype: IPv4
227           remote_ip_prefix: 0.0.0.0/0
228           direction: ingress
229         - protocol: tcp
230           ethertype: IPv6
231           port_range_max: 65535
232           remote_ip_prefix: ::/0
233           direction: ingress
234           port_range_min: 1
235         - protocol: udp
236           ethertype: IPv6
237           port_range_max: 65535
238           remote_ip_prefix: ::/0
239           direction: ingress
240           port_range_min: 1
241         - protocol: icmp
242           ethertype: IPv6
243           remote_ip_prefix: ::/0
244           direction: ingress
245       requirements:
246       - port:
247           capability: attachment_cmaui_port_3_test_nested2Level
248           node: test_nested1Level
249           relationship: org.openecomp.relationships.AttachesTo
250       - port:
251           capability: attachment_cmaui_port_2
252           node: test_nested1Level
253           relationship: org.openecomp.relationships.AttachesTo
254       - port:
255           capability: attachment_cmaui_port_1
256           node: test_nested1Level
257           relationship: org.openecomp.relationships.AttachesTo
258       - port:
259           capability: attachment_cmaui_port_7_test_nested4Level
260           node: test_resourceGroup
261           relationship: org.openecomp.relationships.AttachesTo
262       - port:
263           capability: attachment_cmaui_port_5
264           node: test_resourceGroup
265           relationship: org.openecomp.relationships.AttachesTo
266   groups:
267     main_group:
268       type: org.openecomp.groups.heat.HeatStack
269       properties:
270         heat_file: ../Artifacts/main.yml
271         description: |
272           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
273       members:
274       - test_nested1Level
275       - test_nestedInvalidConnectionToNova
276       - test_resourceGroup
277       - jsa_security_group1
278       - jsa_security_group2
279       - abstract_jsa