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