3c41ae022ece44ffc50e16ee5edc5e6caaf622c5
[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       requirements:
77       - dependency:
78           capability: tosca.capabilities.Node
79           node: test_nested
80           relationship: tosca.relationships.DependsOn
81     jsa_security_group1:
82       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
83       properties:
84         name:
85           get_input: security_group_name
86         description: ems security group
87         rules:
88         - protocol: tcp
89           ethertype: IPv4
90           port_range_max: 65535
91           remote_ip_prefix: 0.0.0.0/0
92           direction: egress
93           port_range_min: 1
94         - protocol: udp
95           ethertype: IPv4
96           port_range_max: 65535
97           remote_ip_prefix: 0.0.0.0/0
98           direction: egress
99           port_range_min: 1
100         - protocol: icmp
101           ethertype: IPv4
102           remote_ip_prefix: 0.0.0.0/0
103           direction: egress
104         - protocol: tcp
105           ethertype: IPv6
106           port_range_max: 65535
107           remote_ip_prefix: ::/0
108           direction: egress
109           port_range_min: 1
110         - protocol: udp
111           ethertype: IPv6
112           port_range_max: 65535
113           remote_ip_prefix: ::/0
114           direction: egress
115           port_range_min: 1
116         - protocol: icmp
117           ethertype: IPv6
118           remote_ip_prefix: ::/0
119           direction: egress
120         - protocol: tcp
121           ethertype: IPv4
122           port_range_max: 65535
123           remote_ip_prefix: 0.0.0.0/0
124           direction: ingress
125           port_range_min: 1
126         - protocol: udp
127           ethertype: IPv4
128           port_range_max: 65535
129           remote_ip_prefix: 0.0.0.0/0
130           direction: ingress
131           port_range_min: 1
132         - protocol: icmp
133           ethertype: IPv4
134           remote_ip_prefix: 0.0.0.0/0
135           direction: ingress
136         - protocol: tcp
137           ethertype: IPv6
138           port_range_max: 65535
139           remote_ip_prefix: ::/0
140           direction: ingress
141           port_range_min: 1
142         - protocol: udp
143           ethertype: IPv6
144           port_range_max: 65535
145           remote_ip_prefix: ::/0
146           direction: ingress
147           port_range_min: 1
148         - protocol: icmp
149           ethertype: IPv6
150           remote_ip_prefix: ::/0
151           direction: ingress
152       requirements:
153       - port:
154           capability: attachment_cmaui_port_2
155           node: test_nested
156           relationship: org.openecomp.relationships.AttachesTo
157       - port:
158           capability: attachment_cmaui_port_22_test_nested2
159           node: test_nested
160           relationship: org.openecomp.relationships.AttachesTo
161       - port:
162           capability: attachment_cmaui_port_1
163           node: test_nested
164           relationship: org.openecomp.relationships.AttachesTo
165       - port:
166           capability: attachment_cmaui_port_11_test_nested2
167           node: test_nested
168           relationship: org.openecomp.relationships.AttachesTo
169     jsa_security_group2:
170       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
171       properties:
172         name:
173           get_input: security_group_name
174         description: ems security group
175         rules:
176         - protocol: tcp
177           ethertype: IPv4
178           port_range_max: 65535
179           remote_ip_prefix: 0.0.0.0/0
180           direction: egress
181           port_range_min: 1
182         - protocol: udp
183           ethertype: IPv4
184           port_range_max: 65535
185           remote_ip_prefix: 0.0.0.0/0
186           direction: egress
187           port_range_min: 1
188         - protocol: icmp
189           ethertype: IPv4
190           remote_ip_prefix: 0.0.0.0/0
191           direction: egress
192         - protocol: tcp
193           ethertype: IPv6
194           port_range_max: 65535
195           remote_ip_prefix: ::/0
196           direction: egress
197           port_range_min: 1
198         - protocol: udp
199           ethertype: IPv6
200           port_range_max: 65535
201           remote_ip_prefix: ::/0
202           direction: egress
203           port_range_min: 1
204         - protocol: icmp
205           ethertype: IPv6
206           remote_ip_prefix: ::/0
207           direction: egress
208         - protocol: tcp
209           ethertype: IPv4
210           port_range_max: 65535
211           remote_ip_prefix: 0.0.0.0/0
212           direction: ingress
213           port_range_min: 1
214         - protocol: udp
215           ethertype: IPv4
216           port_range_max: 65535
217           remote_ip_prefix: 0.0.0.0/0
218           direction: ingress
219           port_range_min: 1
220         - protocol: icmp
221           ethertype: IPv4
222           remote_ip_prefix: 0.0.0.0/0
223           direction: ingress
224         - protocol: tcp
225           ethertype: IPv6
226           port_range_max: 65535
227           remote_ip_prefix: ::/0
228           direction: ingress
229           port_range_min: 1
230         - protocol: udp
231           ethertype: IPv6
232           port_range_max: 65535
233           remote_ip_prefix: ::/0
234           direction: ingress
235           port_range_min: 1
236         - protocol: icmp
237           ethertype: IPv6
238           remote_ip_prefix: ::/0
239           direction: ingress
240       requirements:
241       - port:
242           capability: attachment_cmaui_port_1
243           node: test_nested
244           relationship: org.openecomp.relationships.AttachesTo
245       - port:
246           capability: attachment_cmaui_port_11_test_nested2
247           node: test_nested
248           relationship: org.openecomp.relationships.AttachesTo
249     test_nested:
250       type: org.openecomp.resource.abstract.nodes.heat.nested
251       directives:
252       - substitutable
253       properties:
254         service_template_filter:
255           substitute_service_template: nestedServiceTemplate.yaml
256         p2:
257           get_input: shared_security_group_id2
258         shared_security_group_id1:
259           get_input: shared_security_group_id1
260   groups:
261     base_group:
262       type: org.openecomp.groups.heat.HeatStack
263       properties:
264         heat_file: ../Artifacts/base.yml
265         description: |
266           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
267       members:
268       - jsa_security_group1
269       - jsa_security_group2
270     addOn_group:
271       type: org.openecomp.groups.heat.HeatStack
272       properties:
273         heat_file: ../Artifacts/addOn.yml
274         description: |
275           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
276       members:
277       - packet_mirror_network
278       - test_nested