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