Nested Dependency issues
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / nested / nested2levels / 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 topology_template:
10   inputs:
11     security_group_name:
12       label: security group name
13       hidden: false
14       immutable: false
15       annotations:
16         source:
17           type: org.openecomp.annotations.Source
18           properties:
19             vf_module_label:
20             - addOn
21             - base
22             source_type: HEAT
23             param_name: security_group_name
24       type: string
25       description: the name of security group
26     shared_security_group_id2:
27       hidden: false
28       immutable: false
29       annotations:
30         source:
31           type: org.openecomp.annotations.Source
32           properties:
33             vf_module_label:
34             - addOn
35             source_type: HEAT
36             param_name: shared_security_group_id2
37       type: string
38       description: network name of jsa log network
39     jsa_net_name:
40       hidden: false
41       immutable: false
42       annotations:
43         source:
44           type: org.openecomp.annotations.Source
45           properties:
46             vf_module_label:
47             - addOn
48             - base
49             source_type: HEAT
50             param_name: jsa_net_name
51       type: string
52       description: network name of jsa log network
53     shared_security_group_id1:
54       hidden: false
55       immutable: false
56       annotations:
57         source:
58           type: org.openecomp.annotations.Source
59           properties:
60             vf_module_label:
61             - addOn
62             source_type: HEAT
63             param_name: shared_security_group_id1
64       type: string
65       description: network name of jsa log network
66   node_templates:
67     packet_mirror_network:
68       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
69       properties:
70         shared:
71           get_attribute:
72           - test_nested
73           - output_attr_1
74         network_name:
75           get_input: jsa_net_name
76     jsa_security_group1:
77       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
78       properties:
79         name:
80           get_input: security_group_name
81         description: ems security group
82         rules:
83         - protocol: tcp
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: udp
90           ethertype: IPv4
91           port_range_max: 65535
92           remote_ip_prefix: 0.0.0.0/0
93           direction: egress
94           port_range_min: 1
95         - protocol: icmp
96           ethertype: IPv4
97           remote_ip_prefix: 0.0.0.0/0
98           direction: egress
99         - protocol: tcp
100           ethertype: IPv6
101           port_range_max: 65535
102           remote_ip_prefix: ::/0
103           direction: egress
104           port_range_min: 1
105         - protocol: udp
106           ethertype: IPv6
107           port_range_max: 65535
108           remote_ip_prefix: ::/0
109           direction: egress
110           port_range_min: 1
111         - protocol: icmp
112           ethertype: IPv6
113           remote_ip_prefix: ::/0
114           direction: egress
115         - protocol: tcp
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: udp
122           ethertype: IPv4
123           port_range_max: 65535
124           remote_ip_prefix: 0.0.0.0/0
125           direction: ingress
126           port_range_min: 1
127         - protocol: icmp
128           ethertype: IPv4
129           remote_ip_prefix: 0.0.0.0/0
130           direction: ingress
131         - protocol: tcp
132           ethertype: IPv6
133           port_range_max: 65535
134           remote_ip_prefix: ::/0
135           direction: ingress
136           port_range_min: 1
137         - protocol: udp
138           ethertype: IPv6
139           port_range_max: 65535
140           remote_ip_prefix: ::/0
141           direction: ingress
142           port_range_min: 1
143         - protocol: icmp
144           ethertype: IPv6
145           remote_ip_prefix: ::/0
146           direction: ingress
147       requirements:
148       - port:
149           capability: attachment_cmaui_port_2
150           node: test_nested
151           relationship: org.openecomp.relationships.AttachesTo
152       - port:
153           capability: attachment_cmaui_port_22_test_nested2
154           node: test_nested
155           relationship: org.openecomp.relationships.AttachesTo
156       - port:
157           capability: attachment_cmaui_port_1
158           node: test_nested
159           relationship: org.openecomp.relationships.AttachesTo
160       - port:
161           capability: attachment_cmaui_port_11_test_nested2
162           node: test_nested
163           relationship: org.openecomp.relationships.AttachesTo
164     jsa_security_group2:
165       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
166       properties:
167         name:
168           get_input: security_group_name
169         description: ems security group
170         rules:
171         - protocol: tcp
172           ethertype: IPv4
173           port_range_max: 65535
174           remote_ip_prefix: 0.0.0.0/0
175           direction: egress
176           port_range_min: 1
177         - protocol: udp
178           ethertype: IPv4
179           port_range_max: 65535
180           remote_ip_prefix: 0.0.0.0/0
181           direction: egress
182           port_range_min: 1
183         - protocol: icmp
184           ethertype: IPv4
185           remote_ip_prefix: 0.0.0.0/0
186           direction: egress
187         - protocol: tcp
188           ethertype: IPv6
189           port_range_max: 65535
190           remote_ip_prefix: ::/0
191           direction: egress
192           port_range_min: 1
193         - protocol: udp
194           ethertype: IPv6
195           port_range_max: 65535
196           remote_ip_prefix: ::/0
197           direction: egress
198           port_range_min: 1
199         - protocol: icmp
200           ethertype: IPv6
201           remote_ip_prefix: ::/0
202           direction: egress
203         - protocol: tcp
204           ethertype: IPv4
205           port_range_max: 65535
206           remote_ip_prefix: 0.0.0.0/0
207           direction: ingress
208           port_range_min: 1
209         - protocol: udp
210           ethertype: IPv4
211           port_range_max: 65535
212           remote_ip_prefix: 0.0.0.0/0
213           direction: ingress
214           port_range_min: 1
215         - protocol: icmp
216           ethertype: IPv4
217           remote_ip_prefix: 0.0.0.0/0
218           direction: ingress
219         - protocol: tcp
220           ethertype: IPv6
221           port_range_max: 65535
222           remote_ip_prefix: ::/0
223           direction: ingress
224           port_range_min: 1
225         - protocol: udp
226           ethertype: IPv6
227           port_range_max: 65535
228           remote_ip_prefix: ::/0
229           direction: ingress
230           port_range_min: 1
231         - protocol: icmp
232           ethertype: IPv6
233           remote_ip_prefix: ::/0
234           direction: ingress
235       requirements:
236       - port:
237           capability: attachment_cmaui_port_1
238           node: test_nested
239           relationship: org.openecomp.relationships.AttachesTo
240       - port:
241           capability: attachment_cmaui_port_11_test_nested2
242           node: test_nested
243           relationship: org.openecomp.relationships.AttachesTo
244     test_nested:
245       type: org.openecomp.resource.abstract.nodes.heat.nested
246       directives:
247       - substitutable
248       properties:
249         service_template_filter:
250           substitute_service_template: nestedServiceTemplate.yaml
251         p2:
252           get_input: shared_security_group_id2
253         shared_security_group_id1:
254           get_input: shared_security_group_id1
255   groups:
256     base_group:
257       type: org.openecomp.groups.heat.HeatStack
258       properties:
259         heat_file: ../Artifacts/base.yml
260         description: |
261           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
262       members:
263       - jsa_security_group1
264       - jsa_security_group2
265     addOn_group:
266       type: org.openecomp.groups.heat.HeatStack
267       properties:
268         heat_file: ../Artifacts/addOn.yml
269         description: |
270           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
271       members:
272       - packet_mirror_network
273       - test_nested