Nested Dependency issues
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / nestedSingleCompute / nestedNodesConnectedIn / out / 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 - 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         pcm_image_name:
338           get_input: pcm_image_name
339         port_pcm_port_1_mac_requirements:
340           mac_count_required:
341             is_required: false
342         port_pcm_port_1_ip_requirements:
343         - ip_version: 4
344           ip_count_required:
345             is_required: true
346           floating_ip_count_required:
347             is_required: false
348         port_pcm_port_0_network_role_tag: cps
349         port_pcm_port_0_mac_requirements:
350           mac_count_required:
351             is_required: false
352         pcm_server_name:
353           get_input:
354           - pcm_server_names
355           - 0
356     server_oam_001:
357       type: org.openecomp.resource.abstract.nodes.heat.oam_server
358       directives:
359       - substitutable
360       properties:
361         availabilityzone_name:
362           get_input: availabilityzone_name
363         oam_net_gw:
364           get_input: oam_net_gw
365         port_oam_port_0_mac_requirements:
366           mac_count_required:
367             is_required: false
368         oam_flavor_name:
369           get_input: oam_flavor_name
370         cps_net_ip:
371           get_input:
372           - cps_net_ips
373           - 0
374         port_oam_port_1_network_role_tag: oam
375         oam_server_name:
376           get_input:
377           - oam_server_names
378           - 0
379         service_template_filter:
380           substitute_service_template: nested-oam_v0.1ServiceTemplate.yaml
381         port_oam_port_1_ip_requirements:
382         - ip_version: 4
383           ip_count_required:
384             is_required: true
385           floating_ip_count_required:
386             is_required: false
387         port_oam_port_1_mac_requirements:
388           mac_count_required:
389             is_required: false
390         pcm_vol:
391           get_input:
392           - pcm_volumes
393           - 0
394         port_oam_port_0_network_role_tag: cps
395         oam_image_name:
396           get_input: oam_image_name
397         cps_net_name:
398           get_input: cps_net_name
399         cps_net_mask:
400           get_input: cps_net_mask
401         oam_net_ip:
402           get_input:
403           - oam_net_ips
404           - 0
405         oam_net_mask:
406           get_input: oam_net_mask
407         port_oam_port_0_ip_requirements:
408         - ip_version: 4
409           ip_count_required:
410             is_required: true
411           floating_ip_count_required:
412             is_required: false
413         oam_net_name:
414           get_input: oam_net_name
415     server_pcm_001:
416       type: org.openecomp.resource.abstract.nodes.heat.pcm_server
417       directives:
418       - substitutable
419       properties:
420         port_pcm_port_1_network_role_tag: oam
421         availabilityzone_name:
422           get_input: availabilityzone_name
423         port_pcm_port_0_ip_requirements:
424         - ip_version: 4
425           ip_count_required:
426             is_required: true
427           floating_ip_count_required:
428             is_required: false
429         oam_net_gw:
430           get_input: oam_net_gw
431         pcm_image_name:
432           get_input: pcm_image_name
433         security_group_name:
434           get_input: security_group_name
435         cps_net_ip:
436           get_input:
437           - cps_net_ips
438           - 0
439         port_pcm_port_1_mac_requirements:
440           mac_count_required:
441             is_required: false
442         pcm_flavor_name:
443           get_input: pcm_flavor_name
444         service_template_filter:
445           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
446         pcm_vol:
447           get_input:
448           - pcm_volumes
449           - 0
450         port_pcm_port_1_ip_requirements:
451         - ip_version: 4
452           ip_count_required:
453             is_required: true
454           floating_ip_count_required:
455             is_required: false
456         port_pcm_port_0_network_role_tag: cps
457         port_pcm_port_0_mac_requirements:
458           mac_count_required:
459             is_required: false
460         pcm_server_name:
461           get_input:
462           - pcm_server_names
463           - 0
464         cps_net_name:
465           get_input: cps_net_name
466         cps_net_mask:
467           get_input: cps_net_mask
468         oam_net_ip:
469           get_input:
470           - oam_net_ips
471           - 0
472         oam_net_mask:
473           get_input: oam_net_mask
474         oam_net_name:
475           get_input: oam_net_name
476     packet_mirror_network:
477       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
478       properties:
479         network_name:
480           get_input: net_name
481       requirements:
482       - dependency:
483           capability: feature_compute
484           node: abstract_compute
485           relationship: tosca.relationships.DependsOn
486     compute_port_0:
487       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
488       properties:
489         ip_requirements:
490         - ip_version: 4
491           ip_count_required:
492             is_required: false
493           floating_ip_count_required:
494             is_required: false
495         mac_requirements:
496           mac_count_required:
497             is_required: false
498         network:
499           get_input: net_name
500     jsa_security_group1:
501       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
502       properties:
503         name: jsa_security_group1_name
504         description: ems security group
505         rules:
506         - protocol: icmp
507           ethertype: IPv6
508           remote_ip_prefix: ::/0
509           direction: ingress
510       requirements:
511       - port:
512           capability: attachment_pcm_port_0
513           node: server_pcm_002
514           relationship: org.openecomp.relationships.AttachesTo
515       - port:
516           capability: attachment_pcm_port_1
517           node: server_pcm_002
518           relationship: org.openecomp.relationships.AttachesTo
519       - port:
520           capability: attachment_oam_port_1
521           node: test_shared_node_connected_in_nested
522           relationship: org.openecomp.relationships.AttachesTo
523       - port:
524           capability: attachment_oam_port_0
525           node: test_shared_node_connected_in_nested
526           relationship: org.openecomp.relationships.AttachesTo
527     jsa_security_group2:
528       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
529       properties:
530         name: jsa_security_group2_name
531         description: ems security group
532         rules:
533         - protocol: tcp
534           ethertype: IPv4
535           port_range_max: 65535
536           remote_ip_prefix: 0.0.0.0/0
537           direction: egress
538           port_range_min: 1
539       requirements:
540       - port:
541           capability: attachment_pcm_port_0
542           node: server_pcm_002
543           relationship: org.openecomp.relationships.AttachesTo
544     test_shared_node_connected_in_nested:
545       type: org.openecomp.resource.abstract.nodes.heat.oam_server
546       directives:
547       - substitutable
548       properties:
549         service_template_filter:
550           substitute_service_template: nested-oam_v0.1ServiceTemplate.yaml
551         p2:
552           get_input: shared_security_group_id2
553         port_oam_port_1_ip_requirements:
554         - ip_version: 4
555           ip_count_required:
556             is_required: true
557           floating_ip_count_required:
558             is_required: false
559         port_oam_port_1_mac_requirements:
560           mac_count_required:
561             is_required: false
562         port_oam_port_0_mac_requirements:
563           mac_count_required:
564             is_required: false
565         port_oam_port_0_network_role_tag: cps
566         port_oam_port_1_network_role_tag: oam
567         port_oam_port_0_ip_requirements:
568         - ip_version: 4
569           ip_count_required:
570             is_required: true
571           floating_ip_count_required:
572             is_required: false
573         shared_security_group_id1:
574           get_input: shared_security_group_id1
575     abstract_compute:
576       type: org.openecomp.resource.abstract.nodes.compute
577       directives:
578       - substitutable
579       properties:
580         compute_compute_user_data_format:
581         - get_attribute:
582           - server_pcm_001
583           - oam_net_gw
584         vm_image_name:
585           get_input: compute_image_name
586         compute_compute_metadata:
587         - get_attribute:
588           - server_pcm_001
589           - server_pcm_id
590         compute_compute_name:
591         - compute_name: null
592         vm_flavor_name:
593           compute_flavor_name: null
594         compute_compute_config_drive:
595         - get_attribute:
596           - compute_port_0
597           - tenant_id
598           - port_security_enabled
599           - device_id
600           - qos_policy
601           - allowed_address_pairs
602           - show
603           - device_owner
604           - network
605           - security_groups
606           - fixed_ips
607           - mac_address
608           - admin_state_up
609           - name
610           - subnets
611           - status
612         service_template_filter:
613           substitute_service_template: Nested_computeServiceTemplate.yaml
614           count: 1
615         index_value:
616           get_property:
617           - SELF
618           - service_template_filter
619           - index_value
620   groups:
621     hot-nimbus-pcm_v0.4_group:
622       type: org.openecomp.groups.heat.HeatStack
623       properties:
624         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4.yaml
625         description: heat template that creates PCRF Cluman stack
626       members:
627       - server_pcm_002
628       - server_oam_001
629       - server_pcm_001
630       - packet_mirror_network
631       - compute_port_0
632       - jsa_security_group1
633       - jsa_security_group2
634       - abstract_compute
635     addOn_group:
636       type: org.openecomp.groups.heat.HeatStack
637       properties:
638         heat_file: ../Artifacts/addOn.yml
639         description: |
640           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
641       members:
642       - test_shared_node_connected_in_nested