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