0b57334be9ed2602cd9b0fec38eb7b8f74fc8d76
[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 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 topology_template:
10   inputs:
11     oam_net_ips:
12       label: OAM network ips
13       hidden: false
14       immutable: false
15       annotations:
16         source:
17           type: org.openecomp.annotations.Source
18           properties:
19             vf_module_label:
20             - hot-nimbus-pcm_v0.4
21             source_type: HEAT
22             param_name: oam_net_ips
23       type: list
24       description: OAM network ips
25       default:
26       - 107.239.64.121
27       entry_schema:
28         type: string
29     availabilityzone_name:
30       label: availabilityzone name
31       hidden: false
32       immutable: false
33       annotations:
34         source:
35           type: org.openecomp.annotations.Source
36           properties:
37             vf_module_label:
38             - hot-nimbus-pcm_v0.4
39             source_type: HEAT
40             param_name: availabilityzone_name
41       type: string
42       description: availabilityzone name
43       default: nova
44     oam_net_gw:
45       label: CPS network gateway
46       hidden: false
47       immutable: false
48       annotations:
49         source:
50           type: org.openecomp.annotations.Source
51           properties:
52             vf_module_label:
53             - hot-nimbus-pcm_v0.4
54             source_type: HEAT
55             param_name: oam_net_gw
56       type: string
57       description: CPS network gateway
58       default: 107.239.64.1
59     pcm_server_names:
60       label: PCRF CM server names
61       hidden: false
62       immutable: false
63       annotations:
64         source:
65           type: org.openecomp.annotations.Source
66           properties:
67             vf_module_label:
68             - hot-nimbus-pcm_v0.4
69             source_type: HEAT
70             param_name: pcm_server_names
71       type: list
72       description: name of the PCRF CM instance
73       default:
74       - ZRDM1PCRF01PCM001
75       entry_schema:
76         type: string
77     pcm_image_name:
78       label: PCRF CM image name
79       hidden: false
80       immutable: false
81       annotations:
82         source:
83           type: org.openecomp.annotations.Source
84           properties:
85             vf_module_label:
86             - hot-nimbus-pcm_v0.4
87             source_type: HEAT
88             param_name: pcm_image_name
89       type: string
90       description: PCRF CM image name
91       default: rhel2
92     cps_net_ips:
93       label: CPS network ips
94       hidden: false
95       immutable: false
96       annotations:
97         source:
98           type: org.openecomp.annotations.Source
99           properties:
100             vf_module_label:
101             - hot-nimbus-pcm_v0.4
102             source_type: HEAT
103             param_name: cps_net_ips
104       type: list
105       description: CPS network ips
106       default:
107       - 172.26.16.113
108       entry_schema:
109         type: string
110     oam_flavor_name:
111       label: PCRF CM flavor name
112       hidden: false
113       immutable: false
114       annotations:
115         source:
116           type: org.openecomp.annotations.Source
117           properties:
118             vf_module_label:
119             - hot-nimbus-pcm_v0.4
120             source_type: HEAT
121             param_name: oam_flavor_name
122       type: string
123       description: flavor name of PCRF CM instance
124       default: cps
125     security_group_name:
126       label: security group name
127       hidden: false
128       immutable: false
129       annotations:
130         source:
131           type: org.openecomp.annotations.Source
132           properties:
133             vf_module_label:
134             - hot-nimbus-pcm_v0.4
135             source_type: HEAT
136             param_name: security_group_name
137       type: string
138       description: the name of security group
139       default: nimbus_security_group
140     pcm_volumes:
141       label: CPS Cluman Cinder Volume
142       hidden: false
143       immutable: false
144       annotations:
145         source:
146           type: org.openecomp.annotations.Source
147           properties:
148             vf_module_label:
149             - hot-nimbus-pcm_v0.4
150             source_type: HEAT
151             param_name: pcm_volumes
152       type: list
153       description: CPS Cluman Cinder Volume
154       default:
155       - 249cb355-8fdf-4382-9c3c-a2ebe767d45b
156       entry_schema:
157         type: string
158     compute_image_name:
159       hidden: false
160       immutable: false
161       annotations:
162         source:
163           type: org.openecomp.annotations.Source
164           properties:
165             vf_module_label:
166             - hot-nimbus-pcm_v0.4
167             source_type: HEAT
168             param_name: compute_image_name
169       type: string
170     pcm_flavor_name:
171       label: PCRF CM flavor name
172       hidden: false
173       immutable: false
174       annotations:
175         source:
176           type: org.openecomp.annotations.Source
177           properties:
178             vf_module_label:
179             - hot-nimbus-pcm_v0.4
180             source_type: HEAT
181             param_name: pcm_flavor_name
182       type: string
183       description: flavor name of PCRF CM instance
184       default: cps
185     net_name:
186       hidden: false
187       immutable: false
188       annotations:
189         source:
190           type: org.openecomp.annotations.Source
191           properties:
192             vf_module_label:
193             - hot-nimbus-pcm_v0.4
194             source_type: HEAT
195             param_name: net_name
196       type: string
197     oam_image_name:
198       label: PCRF CM image name
199       hidden: false
200       immutable: false
201       annotations:
202         source:
203           type: org.openecomp.annotations.Source
204           properties:
205             vf_module_label:
206             - hot-nimbus-pcm_v0.4
207             source_type: HEAT
208             param_name: oam_image_name
209       type: string
210       description: PCRF CM image name
211       default: rhel2
212     shared_security_group_id2:
213       hidden: false
214       immutable: false
215       annotations:
216         source:
217           type: org.openecomp.annotations.Source
218           properties:
219             vf_module_label:
220             - addOn
221             - hot-nimbus-pcm_v0.4
222             source_type: HEAT
223             param_name: shared_security_group_id2
224       type: string
225       description: network name of jsa log network
226     oam_server_names:
227       label: PCRF CM server names
228       hidden: false
229       immutable: false
230       annotations:
231         source:
232           type: org.openecomp.annotations.Source
233           properties:
234             vf_module_label:
235             - hot-nimbus-pcm_v0.4
236             source_type: HEAT
237             param_name: oam_server_names
238       type: list
239       description: name of the PCRF CM instance
240       default:
241       - ZRDM1PCRF01PCM001
242       entry_schema:
243         type: string
244     cps_net_name:
245       label: CPS network name
246       hidden: false
247       immutable: false
248       annotations:
249         source:
250           type: org.openecomp.annotations.Source
251           properties:
252             vf_module_label:
253             - hot-nimbus-pcm_v0.4
254             source_type: HEAT
255             param_name: cps_net_name
256       type: string
257       description: CPS network name
258       default: int_pcrf_net_0
259     cps_net_mask:
260       label: CPS network mask
261       hidden: false
262       immutable: false
263       annotations:
264         source:
265           type: org.openecomp.annotations.Source
266           properties:
267             vf_module_label:
268             - hot-nimbus-pcm_v0.4
269             source_type: HEAT
270             param_name: cps_net_mask
271       type: string
272       description: CPS network mask
273       default: 255.255.255.0
274     oam_net_mask:
275       label: CPS network mask
276       hidden: false
277       immutable: false
278       annotations:
279         source:
280           type: org.openecomp.annotations.Source
281           properties:
282             vf_module_label:
283             - hot-nimbus-pcm_v0.4
284             source_type: HEAT
285             param_name: oam_net_mask
286       type: string
287       description: CPS network mask
288       default: 255.255.255.0
289     shared_security_group_id1:
290       hidden: false
291       immutable: false
292       annotations:
293         source:
294           type: org.openecomp.annotations.Source
295           properties:
296             vf_module_label:
297             - addOn
298             - hot-nimbus-pcm_v0.4
299             source_type: HEAT
300             param_name: shared_security_group_id1
301       type: string
302       description: network name of jsa log network
303     oam_net_name:
304       label: OAM network name
305       hidden: false
306       immutable: false
307       annotations:
308         source:
309           type: org.openecomp.annotations.Source
310           properties:
311             vf_module_label:
312             - hot-nimbus-pcm_v0.4
313             source_type: HEAT
314             param_name: oam_net_name
315       type: string
316       description: OAM network name
317       default: oam_protected_net_0
318   node_templates:
319     server_pcm_002:
320       type: org.openecomp.resource.abstract.nodes.heat.pcm_server
321       directives:
322       - substitutable
323       properties:
324         pcm_flavor_name:
325           get_input: pcm_flavor_name
326         p1: jsa_security_group1
327         service_template_filter:
328           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
329         p2: jsa_security_group2
330         port_pcm_port_1_network_role_tag: oam
331         port_pcm_port_0_ip_requirements:
332         - ip_version: 4
333           ip_count_required:
334             is_required: true
335           floating_ip_count_required:
336             is_required: false
337         - ip_version: 6
338           ip_count_required:
339             is_required: false
340           floating_ip_count_required:
341             is_required: false
342         pcm_image_name:
343           get_input: pcm_image_name
344         port_pcm_port_1_mac_requirements:
345           mac_count_required:
346             is_required: false
347         port_pcm_port_1_ip_requirements:
348         - ip_version: 4
349           ip_count_required:
350             is_required: true
351           floating_ip_count_required:
352             is_required: false
353         - ip_version: 6
354           ip_count_required:
355             is_required: false
356           floating_ip_count_required:
357             is_required: false
358         port_pcm_port_0_network_role_tag: cps
359         port_pcm_port_0_mac_requirements:
360           mac_count_required:
361             is_required: false
362         pcm_server_name:
363           get_input:
364           - pcm_server_names
365           - 0
366     server_oam_001:
367       type: org.openecomp.resource.abstract.nodes.heat.oam_server
368       directives:
369       - substitutable
370       properties:
371         availabilityzone_name:
372           get_input: availabilityzone_name
373         oam_net_gw:
374           get_input: oam_net_gw
375         port_oam_port_0_mac_requirements:
376           mac_count_required:
377             is_required: false
378         oam_flavor_name:
379           get_input: oam_flavor_name
380         cps_net_ip:
381           get_input:
382           - cps_net_ips
383           - 0
384         port_oam_port_1_network_role_tag: oam
385         oam_server_name:
386           get_input:
387           - oam_server_names
388           - 0
389         service_template_filter:
390           substitute_service_template: nested-oam_v0.1ServiceTemplate.yaml
391         port_oam_port_1_ip_requirements:
392         - ip_version: 4
393           ip_count_required:
394             is_required: true
395           floating_ip_count_required:
396             is_required: false
397         - ip_version: 6
398           ip_count_required:
399             is_required: false
400           floating_ip_count_required:
401             is_required: false
402         port_oam_port_1_mac_requirements:
403           mac_count_required:
404             is_required: false
405         pcm_vol:
406           get_input:
407           - pcm_volumes
408           - 0
409         port_oam_port_0_network_role_tag: cps
410         oam_image_name:
411           get_input: oam_image_name
412         cps_net_name:
413           get_input: cps_net_name
414         cps_net_mask:
415           get_input: cps_net_mask
416         oam_net_ip:
417           get_input:
418           - oam_net_ips
419           - 0
420         oam_net_mask:
421           get_input: oam_net_mask
422         port_oam_port_0_ip_requirements:
423         - ip_version: 4
424           ip_count_required:
425             is_required: true
426           floating_ip_count_required:
427             is_required: false
428         - ip_version: 6
429           ip_count_required:
430             is_required: false
431           floating_ip_count_required:
432             is_required: false
433         oam_net_name:
434           get_input: oam_net_name
435     server_pcm_001:
436       type: org.openecomp.resource.abstract.nodes.heat.pcm_server
437       directives:
438       - substitutable
439       properties:
440         port_pcm_port_1_network_role_tag: oam
441         availabilityzone_name:
442           get_input: availabilityzone_name
443         port_pcm_port_0_ip_requirements:
444         - ip_version: 4
445           ip_count_required:
446             is_required: true
447           floating_ip_count_required:
448             is_required: false
449         - ip_version: 6
450           ip_count_required:
451             is_required: false
452           floating_ip_count_required:
453             is_required: false
454         oam_net_gw:
455           get_input: oam_net_gw
456         pcm_image_name:
457           get_input: pcm_image_name
458         security_group_name:
459           get_input: security_group_name
460         cps_net_ip:
461           get_input:
462           - cps_net_ips
463           - 0
464         port_pcm_port_1_mac_requirements:
465           mac_count_required:
466             is_required: false
467         pcm_flavor_name:
468           get_input: pcm_flavor_name
469         service_template_filter:
470           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
471         pcm_vol:
472           get_input:
473           - pcm_volumes
474           - 0
475         port_pcm_port_1_ip_requirements:
476         - ip_version: 4
477           ip_count_required:
478             is_required: true
479           floating_ip_count_required:
480             is_required: false
481         - ip_version: 6
482           ip_count_required:
483             is_required: false
484           floating_ip_count_required:
485             is_required: false
486         port_pcm_port_0_network_role_tag: cps
487         port_pcm_port_0_mac_requirements:
488           mac_count_required:
489             is_required: false
490         pcm_server_name:
491           get_input:
492           - pcm_server_names
493           - 0
494         cps_net_name:
495           get_input: cps_net_name
496         cps_net_mask:
497           get_input: cps_net_mask
498         oam_net_ip:
499           get_input:
500           - oam_net_ips
501           - 0
502         oam_net_mask:
503           get_input: oam_net_mask
504         oam_net_name:
505           get_input: oam_net_name
506     packet_mirror_network:
507       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
508       properties:
509         network_name:
510           get_input: net_name
511       requirements:
512       - dependency:
513           capability: tosca.capabilities.Node
514           node: server_pcm_001
515           relationship: tosca.relationships.DependsOn
516       - dependency:
517           capability: feature_compute
518           node: abstract_compute
519           relationship: tosca.relationships.DependsOn
520     compute_port_0:
521       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
522       properties:
523         ip_requirements:
524         - ip_version: 4
525           ip_count_required:
526             is_required: false
527           floating_ip_count_required:
528             is_required: false
529         - ip_version: 6
530           ip_count_required:
531             is_required: false
532           floating_ip_count_required:
533             is_required: false
534         mac_requirements:
535           mac_count_required:
536             is_required: false
537         network:
538           get_input: net_name
539     jsa_security_group1:
540       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
541       properties:
542         name: jsa_security_group1_name
543         description: ems security group
544         rules:
545         - protocol: icmp
546           ethertype: IPv6
547           remote_ip_prefix: ::/0
548           direction: ingress
549       requirements:
550       - port:
551           capability: attachment_pcm_port_0
552           node: server_pcm_002
553           relationship: org.openecomp.relationships.AttachesTo
554       - port:
555           capability: attachment_pcm_port_1
556           node: server_pcm_002
557           relationship: org.openecomp.relationships.AttachesTo
558       - port:
559           capability: attachment_oam_port_1
560           node: test_shared_node_connected_in_nested
561           relationship: org.openecomp.relationships.AttachesTo
562       - port:
563           capability: attachment_oam_port_0
564           node: test_shared_node_connected_in_nested
565           relationship: org.openecomp.relationships.AttachesTo
566     jsa_security_group2:
567       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
568       properties:
569         name: jsa_security_group2_name
570         description: ems security group
571         rules:
572         - protocol: tcp
573           ethertype: IPv4
574           port_range_max: 65535
575           remote_ip_prefix: 0.0.0.0/0
576           direction: egress
577           port_range_min: 1
578       requirements:
579       - port:
580           capability: attachment_pcm_port_0
581           node: server_pcm_002
582           relationship: org.openecomp.relationships.AttachesTo
583     test_shared_node_connected_in_nested:
584       type: org.openecomp.resource.abstract.nodes.heat.oam_server
585       directives:
586       - substitutable
587       properties:
588         service_template_filter:
589           substitute_service_template: nested-oam_v0.1ServiceTemplate.yaml
590         p2:
591           get_input: shared_security_group_id2
592         port_oam_port_1_ip_requirements:
593         - ip_version: 4
594           ip_count_required:
595             is_required: true
596           floating_ip_count_required:
597             is_required: false
598         - ip_version: 6
599           ip_count_required:
600             is_required: false
601           floating_ip_count_required:
602             is_required: false
603         port_oam_port_1_mac_requirements:
604           mac_count_required:
605             is_required: false
606         port_oam_port_0_mac_requirements:
607           mac_count_required:
608             is_required: false
609         port_oam_port_0_network_role_tag: cps
610         port_oam_port_1_network_role_tag: oam
611         port_oam_port_0_ip_requirements:
612         - ip_version: 4
613           ip_count_required:
614             is_required: true
615           floating_ip_count_required:
616             is_required: false
617         - ip_version: 6
618           ip_count_required:
619             is_required: false
620           floating_ip_count_required:
621             is_required: false
622         shared_security_group_id1:
623           get_input: shared_security_group_id1
624     abstract_compute:
625       type: org.openecomp.resource.abstract.nodes.compute
626       directives:
627       - substitutable
628       properties:
629         compute_compute_user_data_format:
630         - get_attribute:
631           - server_pcm_001
632           - oam_net_gw
633         vm_image_name:
634           get_input: compute_image_name
635         compute_compute_metadata:
636         - get_attribute:
637           - server_pcm_001
638           - server_pcm_id
639         compute_compute_name:
640         - compute_name: null
641         vm_flavor_name:
642           compute_flavor_name: null
643         compute_compute_config_drive:
644         - get_attribute:
645           - compute_port_0
646           - tenant_id
647           - port_security_enabled
648           - device_id
649           - qos_policy
650           - allowed_address_pairs
651           - show
652           - device_owner
653           - network
654           - security_groups
655           - fixed_ips
656           - mac_address
657           - admin_state_up
658           - name
659           - subnets
660           - status
661         service_template_filter:
662           substitute_service_template: Nested_computeServiceTemplate.yaml
663           count: 1
664         index_value:
665           get_property:
666           - SELF
667           - service_template_filter
668           - index_value
669   groups:
670     hot-nimbus-pcm_v0.4_group:
671       type: org.openecomp.groups.heat.HeatStack
672       properties:
673         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4.yaml
674         description: heat template that creates PCRF Cluman stack
675       members:
676       - server_pcm_002
677       - server_oam_001
678       - server_pcm_001
679       - packet_mirror_network
680       - compute_port_0
681       - jsa_security_group1
682       - jsa_security_group2
683       - abstract_compute
684     addOn_group:
685       type: org.openecomp.groups.heat.HeatStack
686       properties:
687         heat_file: ../Artifacts/addOn.yml
688         description: |
689           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
690       members:
691       - test_shared_node_connected_in_nested