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