[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 / securityRulesToPortSharedAddOn / 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 node_types:
8   org.openecomp.resource.vfc.nodes.heat.cmaui:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     security_group_id1:
13       hidden: false
14       immutable: false
15       type: string
16       description: UID of OAM network
17     cmaui_names:
18       hidden: false
19       immutable: false
20       type: list
21       description: CMAUI1, CMAUI2 server names
22       entry_schema:
23         type: string
24     cmaui_image:
25       hidden: false
26       immutable: false
27       type: string
28       description: Image for CMAUI server
29     cmaui_flavor:
30       hidden: false
31       immutable: false
32       type: string
33       description: Flavor for CMAUI server
34     security_group_name:
35       label: security group name
36       hidden: false
37       immutable: false
38       type: string
39       description: the name of security group
40     security_group_id:
41       hidden: false
42       immutable: false
43       type: string
44       description: UID of OAM network
45     availability_zone_0:
46       label: availabilityzone name
47       hidden: false
48       immutable: false
49       type: string
50       description: availabilityzone name
51     cmaui_oam_ips:
52       hidden: false
53       immutable: false
54       type: string
55       description: cmaui_oam_ips
56     shared_network_id:
57       hidden: false
58       immutable: false
59       type: string
60       description: Flavor for CMAUI server
61     jsa_net_name:
62       hidden: false
63       immutable: false
64       type: string
65       description: network name of jsa log network
66     security_group_id3:
67       hidden: false
68       immutable: false
69       type: string
70       description: UID of OAM network
71     security_group_id2:
72       hidden: false
73       immutable: false
74       type: string
75       description: UID of OAM network
76   node_templates:
77     cmaui_port_3:
78       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
79       properties:
80         replacement_policy: AUTO
81         ip_requirements:
82         - ip_version: 4
83           ip_count_required:
84             is_required: true
85           floating_ip_count_required:
86             is_required: false
87         security_groups:
88         - get_input:
89           - security_group_id1
90           - 0
91         fixed_ips:
92         - ip_address:
93             get_input:
94             - cmaui_oam_ips
95             - 0
96         mac_requirements:
97           mac_count_required:
98             is_required: false
99       requirements:
100       - binding:
101           capability: tosca.capabilities.network.Bindable
102           node: server_cmaui
103           relationship: tosca.relationships.network.BindsTo
104     cmaui_port_2:
105       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
106       properties:
107         replacement_policy: AUTO
108         ip_requirements:
109         - ip_version: 4
110           ip_count_required:
111             is_required: true
112           floating_ip_count_required:
113             is_required: false
114         security_groups:
115         - get_input: security_group_id
116         - get_input: security_group_id3
117         fixed_ips:
118         - ip_address:
119             get_input:
120             - cmaui_oam_ips
121             - 0
122         mac_requirements:
123           mac_count_required:
124             is_required: false
125         network:
126           get_input: shared_network_id
127     server_cmaui:
128       type: org.openecomp.resource.vfc.nodes.heat.cmaui
129       properties:
130         flavor:
131           get_input: cmaui_flavor
132         availability_zone:
133           get_input: availability_zone_0
134         image:
135           get_input: cmaui_image
136         name:
137           get_input:
138           - cmaui_names
139           - 0
140     jsa_security_group1:
141       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
142       properties:
143         name:
144           get_input: security_group_name
145         description: ems security group
146         rules:
147         - protocol: tcp
148           ethertype: IPv4
149           port_range_max: 65535
150           remote_ip_prefix: 0.0.0.0/0
151           direction: egress
152           port_range_min: 1
153         - protocol: udp
154           ethertype: IPv4
155           port_range_max: 65535
156           remote_ip_prefix: 0.0.0.0/0
157           direction: egress
158           port_range_min: 1
159         - protocol: icmp
160           ethertype: IPv4
161           remote_ip_prefix: 0.0.0.0/0
162           direction: egress
163         - protocol: tcp
164           ethertype: IPv6
165           port_range_max: 65535
166           remote_ip_prefix: ::/0
167           direction: egress
168           port_range_min: 1
169         - protocol: udp
170           ethertype: IPv6
171           port_range_max: 65535
172           remote_ip_prefix: ::/0
173           direction: egress
174           port_range_min: 1
175         - protocol: icmp
176           ethertype: IPv6
177           remote_ip_prefix: ::/0
178           direction: egress
179         - protocol: tcp
180           ethertype: IPv4
181           port_range_max: 65535
182           remote_ip_prefix: 0.0.0.0/0
183           direction: ingress
184           port_range_min: 1
185         - protocol: udp
186           ethertype: IPv4
187           port_range_max: 65535
188           remote_ip_prefix: 0.0.0.0/0
189           direction: ingress
190           port_range_min: 1
191         - protocol: icmp
192           ethertype: IPv4
193           remote_ip_prefix: 0.0.0.0/0
194           direction: ingress
195         - protocol: tcp
196           ethertype: IPv6
197           port_range_max: 65535
198           remote_ip_prefix: ::/0
199           direction: ingress
200           port_range_min: 1
201         - protocol: udp
202           ethertype: IPv6
203           port_range_max: 65535
204           remote_ip_prefix: ::/0
205           direction: ingress
206           port_range_min: 1
207         - protocol: icmp
208           ethertype: IPv6
209           remote_ip_prefix: ::/0
210           direction: ingress
211       requirements:
212       - port:
213           capability: tosca.capabilities.Attachment
214           node: cmaui_port_0
215           relationship: org.openecomp.relationships.AttachesTo
216       - port:
217           capability: tosca.capabilities.Attachment
218           node: cmaui_port_1
219           relationship: org.openecomp.relationships.AttachesTo
220     jsa_security_group2:
221       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
222       properties:
223         name:
224           get_input: security_group_name
225         description: ems security group
226         rules:
227         - protocol: tcp
228           ethertype: IPv4
229           port_range_max: 65535
230           remote_ip_prefix: 0.0.0.0/0
231           direction: egress
232           port_range_min: 1
233         - protocol: udp
234           ethertype: IPv4
235           port_range_max: 65535
236           remote_ip_prefix: 0.0.0.0/0
237           direction: egress
238           port_range_min: 1
239         - protocol: icmp
240           ethertype: IPv4
241           remote_ip_prefix: 0.0.0.0/0
242           direction: egress
243         - protocol: tcp
244           ethertype: IPv6
245           port_range_max: 65535
246           remote_ip_prefix: ::/0
247           direction: egress
248           port_range_min: 1
249         - protocol: udp
250           ethertype: IPv6
251           port_range_max: 65535
252           remote_ip_prefix: ::/0
253           direction: egress
254           port_range_min: 1
255         - protocol: icmp
256           ethertype: IPv6
257           remote_ip_prefix: ::/0
258           direction: egress
259         - protocol: tcp
260           ethertype: IPv4
261           port_range_max: 65535
262           remote_ip_prefix: 0.0.0.0/0
263           direction: ingress
264           port_range_min: 1
265         - protocol: udp
266           ethertype: IPv4
267           port_range_max: 65535
268           remote_ip_prefix: 0.0.0.0/0
269           direction: ingress
270           port_range_min: 1
271         - protocol: icmp
272           ethertype: IPv4
273           remote_ip_prefix: 0.0.0.0/0
274           direction: ingress
275         - protocol: tcp
276           ethertype: IPv6
277           port_range_max: 65535
278           remote_ip_prefix: ::/0
279           direction: ingress
280           port_range_min: 1
281         - protocol: udp
282           ethertype: IPv6
283           port_range_max: 65535
284           remote_ip_prefix: ::/0
285           direction: ingress
286           port_range_min: 1
287         - protocol: icmp
288           ethertype: IPv6
289           remote_ip_prefix: ::/0
290           direction: ingress
291       requirements:
292       - port:
293           capability: tosca.capabilities.Attachment
294           node: cmaui_port_1
295           relationship: org.openecomp.relationships.AttachesTo
296     cmaui_port_1:
297       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
298       properties:
299         replacement_policy: AUTO
300         ip_requirements:
301         - ip_version: 4
302           ip_count_required:
303             is_required: true
304           floating_ip_count_required:
305             is_required: false
306         security_groups:
307         - get_input: security_group_id1
308         - get_input: security_group_id2
309         fixed_ips:
310         - ip_address:
311             get_input:
312             - cmaui_oam_ips
313             - 0
314         mac_requirements:
315           mac_count_required:
316             is_required: false
317         network:
318           get_input: shared_network_id
319       requirements:
320       - binding:
321           capability: tosca.capabilities.network.Bindable
322           node: server_cmaui
323           relationship: tosca.relationships.network.BindsTo
324     cmaui_port_0:
325       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
326       properties:
327         replacement_policy: AUTO
328         ip_requirements:
329         - ip_version: 4
330           ip_count_required:
331             is_required: true
332           floating_ip_count_required:
333             is_required: false
334         security_groups:
335         - get_input: security_group_id1
336         fixed_ips:
337         - ip_address:
338             get_input:
339             - cmaui_oam_ips
340             - 0
341         mac_requirements:
342           mac_count_required:
343             is_required: false
344         network:
345           get_input: shared_network_id
346       requirements:
347       - binding:
348           capability: tosca.capabilities.network.Bindable
349           node: server_cmaui
350           relationship: tosca.relationships.network.BindsTo
351   groups:
352     main_group:
353       type: org.openecomp.groups.heat.HeatStack
354       properties:
355         heat_file: ../Artifacts/main.yml
356         description: |
357           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
358       members:
359       - jsa_security_group1
360       - jsa_security_group2
361     addOn_group:
362       type: org.openecomp.groups.heat.HeatStack
363       properties:
364         heat_file: ../Artifacts/addOn.yml
365         description: cmaui server template for vMMSC
366       members:
367       - cmaui_port_3
368       - cmaui_port_2
369       - server_cmaui
370       - cmaui_port_1
371       - cmaui_port_0