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