Nested Dependency issues
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / mixPatterns / dependencyConnectivity / 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     pd_flavor_name:
12       label: PD flavor name
13       hidden: false
14       immutable: false
15       annotations:
16         source:
17           type: org.openecomp.annotations.Source
18           properties:
19             vf_module_label:
20             - hot-mog-0108-bs1271
21             source_type: HEAT
22             param_name: pd_flavor_name
23       type: string
24       description: flavor name of PD instance
25     availabilityzone_name:
26       label: availabilityzone name
27       hidden: false
28       immutable: false
29       annotations:
30         source:
31           type: org.openecomp.annotations.Source
32           properties:
33             vf_module_label:
34             - hot-mog-0108-bs1271
35             source_type: HEAT
36             param_name: availabilityzone_name
37       type: string
38       description: availabilityzone name
39     ppds_net_name:
40       hidden: false
41       immutable: false
42       annotations:
43         source:
44           type: org.openecomp.annotations.Source
45           properties:
46             vf_module_label:
47             - hot-mog-0108-bs1271
48             source_type: HEAT
49             param_name: ppds_net_name
50       type: string
51     a_single_1a_names:
52       hidden: false
53       immutable: false
54       annotations:
55         source:
56           type: org.openecomp.annotations.Source
57           properties:
58             vf_module_label:
59             - hot-mog-0108-bs1271
60             source_type: HEAT
61             param_name: a_single_1a_names
62       type: string
63     pcm_server_names:
64       hidden: false
65       immutable: false
66       annotations:
67         source:
68           type: org.openecomp.annotations.Source
69           properties:
70             vf_module_label:
71             - hot-mog-0108-bs1271
72             source_type: HEAT
73             param_name: pcm_server_names
74       type: string
75     pcm_image_name:
76       hidden: false
77       immutable: false
78       annotations:
79         source:
80           type: org.openecomp.annotations.Source
81           properties:
82             vf_module_label:
83             - hot-mog-0108-bs1271
84             source_type: HEAT
85             param_name: pcm_image_name
86       type: string
87     pd_image_name:
88       label: image name
89       hidden: false
90       immutable: false
91       annotations:
92         source:
93           type: org.openecomp.annotations.Source
94           properties:
95             vf_module_label:
96             - hot-mog-0108-bs1271
97             source_type: HEAT
98             param_name: pd_image_name
99       type: string
100       description: PD image name
101     security_group_name:
102       hidden: false
103       immutable: false
104       annotations:
105         source:
106           type: org.openecomp.annotations.Source
107           properties:
108             vf_module_label:
109             - hot-mog-0108-bs1271
110             source_type: HEAT
111             param_name: security_group_name
112       type: string
113     pd_server_names:
114       label: PD server names
115       hidden: false
116       immutable: false
117       annotations:
118         source:
119           type: org.openecomp.annotations.Source
120           properties:
121             vf_module_label:
122             - hot-mog-0108-bs1271
123             source_type: HEAT
124             param_name: pd_server_names
125       type: list
126       description: name of the PD instance
127       entry_schema:
128         type: string
129     1c2_catalog_instance_names:
130       hidden: false
131       immutable: false
132       annotations:
133         source:
134           type: org.openecomp.annotations.Source
135           properties:
136             vf_module_label:
137             - hot-mog-0108-bs1271
138             source_type: HEAT
139             param_name: 1c2_catalog_instance_names
140       type: string
141     pcm_flavor_name:
142       hidden: false
143       immutable: false
144       annotations:
145         source:
146           type: org.openecomp.annotations.Source
147           properties:
148             vf_module_label:
149             - hot-mog-0108-bs1271
150             source_type: HEAT
151             param_name: pcm_flavor_name
152       type: string
153     b_single_1b_names:
154       hidden: false
155       immutable: false
156       annotations:
157         source:
158           type: org.openecomp.annotations.Source
159           properties:
160             vf_module_label:
161             - hot-mog-0108-bs1271
162             source_type: HEAT
163             param_name: b_single_1b_names
164       type: string
165     1c1_scalling_instance_names:
166       hidden: false
167       immutable: false
168       annotations:
169         source:
170           type: org.openecomp.annotations.Source
171           properties:
172             vf_module_label:
173             - hot-mog-0108-bs1271
174             source_type: HEAT
175             param_name: 1c1_scalling_instance_names
176       type: string
177     myIPs:
178       hidden: false
179       immutable: false
180       annotations:
181         source:
182           type: org.openecomp.annotations.Source
183           properties:
184             vf_module_label:
185             - hot-mog-0108-bs1271
186             source_type: HEAT
187             param_name: myIPs
188       type: string
189     net_name:
190       hidden: false
191       immutable: false
192       annotations:
193         source:
194           type: org.openecomp.annotations.Source
195           properties:
196             vf_module_label:
197             - hot-mog-0108-bs1271
198             source_type: HEAT
199             param_name: net_name
200       type: string
201     oam_net_name:
202       hidden: false
203       immutable: false
204       annotations:
205         source:
206           type: org.openecomp.annotations.Source
207           properties:
208             vf_module_label:
209             - hot-mog-0108-bs1271
210             source_type: HEAT
211             param_name: oam_net_name
212       type: string
213   node_templates:
214     nestedNoNestedSingleComputePattern:
215       type: org.openecomp.resource.abstract.nodes.heat.nested-no_vfc_v0.1
216       directives:
217       - substitutable
218       properties:
219         pcm_flavor_name:
220           get_input: pcm_flavor_name
221         service_template_filter:
222           substitute_service_template: nested-no_vfc_v0.1ServiceTemplate.yaml
223         server_group: BE_Affinity_group
224         pcm_image_name:
225           get_input: pcm_image_name
226         security_group_name: jsa_security_group
227         pcm_server_name:
228           get_input:
229           - pcm_server_names
230           - 0
231         cps_net_name: nested_network
232       requirements:
233       - link_pcm_port_2_0:
234           capability: tosca.capabilities.network.Linkable
235           node: nested_network
236           relationship: tosca.relationships.network.LinksTo
237       - link_pcm_port_0_0:
238           capability: tosca.capabilities.network.Linkable
239           node: nested_network
240           relationship: tosca.relationships.network.LinksTo
241     abstract_b_single_1b:
242       type: org.openecomp.resource.abstract.nodes.b_single_1b
243       directives:
244       - substitutable
245       properties:
246         port_1b_t2_port_mac_requirements:
247           mac_count_required:
248             is_required: false
249         compute_b_single_1b_availability_zone:
250         - get_input: availabilityzone_name
251         compute_b_single_1b_scheduler_hints:
252         - group: BE_Affinity_group
253         port_1b_t2_port_ip_requirements:
254         - ip_version: 4
255           ip_count_required:
256             is_required: false
257           floating_ip_count_required:
258             is_required: false
259         vm_flavor_name:
260           get_input: pd_flavor_name
261         port_1b_t1_port_ip_requirements:
262         - ip_version: 4
263           ip_count_required:
264             is_required: false
265           floating_ip_count_required:
266             is_required: false
267         vm_image_name:
268           get_input: pd_image_name
269         port_1b_t1_port_mac_requirements:
270           mac_count_required:
271             is_required: false
272         port_1b_t2_port_network:
273         - b_single_1b_network
274         compute_b_single_1b_user_data_format:
275         - RAW
276         compute_b_single_1b_name:
277         - get_input:
278           - b_single_1b_names
279           - 0
280         service_template_filter:
281           substitute_service_template: Nested_b_single_1bServiceTemplate.yaml
282           count: 1
283         index_value:
284           get_property:
285           - SELF
286           - service_template_filter
287           - index_value
288       requirements:
289       - link_b_single_1b_1b_t2_port:
290           capability: tosca.capabilities.network.Linkable
291           node: b_single_1b_network
292           relationship: tosca.relationships.network.LinksTo
293     abstract_1c1_scalling_instance:
294       type: org.openecomp.resource.abstract.nodes.1c1_scalling_instance
295       directives:
296       - substitutable
297       properties:
298         compute_1c1_scalling_instance_user_data_format:
299         - RAW2
300         - RAW1
301         port_1c1_t2_port_network_role_tag: ppds
302         vm_flavor_name:
303           get_input: pd_flavor_name
304         port_1c1_t1_port_ip_requirements:
305         - ip_version: 4
306           ip_count_required:
307             is_required: true
308           floating_ip_count_required:
309             is_required: false
310         vm_image_name:
311           get_input: pd_image_name
312         compute_1c1_scalling_instance_name:
313         - get_input:
314           - 1c1_scalling_instance_names
315           - 2
316         - get_input:
317           - 1c1_scalling_instance_names
318           - 1
319         port_1c1_t1_port_name:
320         - 1c1_t1_port_1
321         - 1c1_t1_port_0
322         port_1c1_t1_port_network:
323         - 1c1_scalling_instance_network
324         - 1c1_scalling_instance_network
325         port_1c1_t2_port_fixed_ips:
326         - - ip_address:
327               get_input:
328               - myIPs
329               - 1
330         - - ip_address:
331               get_input:
332               - myIPs
333               - 1
334         port_1c1_t2_port_network:
335         - get_input: ppds_net_name
336         - get_input: ppds_net_name
337         port_1c1_t1_port_fixed_ips:
338         - - ip_address:
339               get_input:
340               - myIPs
341               - 1
342         - - ip_address:
343               get_input:
344               - myIPs
345               - 1
346         port_1c1_t2_port_ip_requirements:
347         - ip_version: 4
348           ip_count_required:
349             is_required: true
350           floating_ip_count_required:
351             is_required: false
352         port_1c1_t1_port_mac_requirements:
353           mac_count_required:
354             is_required: false
355         port_1c1_t2_port_mac_requirements:
356           mac_count_required:
357             is_required: false
358         compute_1c1_scalling_instance_availability_zone:
359         - get_input: availabilityzone_name
360         - get_input: availabilityzone_name
361         port_1c1_t2_port_name:
362         - 1c1_t2_port_1
363         - 1c1_t2_port_0
364         compute_1c1_scalling_instance_scheduler_hints:
365         - group: BE_Affinity_group
366         - group: BE_Affinity_group
367         service_template_filter:
368           substitute_service_template: Nested_1c1_scalling_instanceServiceTemplate.yaml
369           count: 2
370         index_value:
371           get_property:
372           - SELF
373           - service_template_filter
374           - index_value
375       requirements:
376       - link_1c1_scalling_instance_1c1_t1_port:
377           capability: tosca.capabilities.network.Linkable
378           node: 1c1_scalling_instance_network
379           relationship: tosca.relationships.network.LinksTo
380     b_single_1b_network:
381       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
382       properties:
383         network_name:
384           get_input: net_name
385     nestedWithNoNovaHadDependencyToIt:
386       type: org.openecomp.resource.abstract.nodes.heat.nested-no-nova
387       directives:
388       - substitutable
389       properties:
390         service_template_filter:
391           substitute_service_template: nested-no-novaServiceTemplate.yaml
392         security_group_name: group1
393         net_name: myNetwork
394     4p_nested:
395       type: org.openecomp.resource.abstract.nodes.heat.pcm_server
396       directives:
397       - substitutable
398       properties:
399         server_group: BE_Affinity_group
400         port_pcm_port_1_network_role_tag: oam
401         port_pcm_port_0_ip_requirements:
402         - ip_version: 4
403           ip_count_required:
404             is_required: true
405           floating_ip_count_required:
406             is_required: false
407         pcm_image_name:
408           get_input: pcm_image_name
409         security_group_name: jsa_security_group
410         port_pcm_port_1_mac_requirements:
411           mac_count_required:
412             is_required: false
413         pcm_flavor_name:
414           get_input: pcm_flavor_name
415         service_template_filter:
416           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
417         port_pcm_port_1_ip_requirements:
418         - ip_version: 4
419           ip_count_required:
420             is_required: true
421           floating_ip_count_required:
422             is_required: false
423         port_pcm_port_0_network_role_tag: cps
424         port_pcm_port_0_mac_requirements:
425           mac_count_required:
426             is_required: false
427         pcm_server_name:
428           get_input:
429           - pcm_server_names
430           - 0
431         cps_net_name: nested_network
432       requirements:
433       - link_pcm_port_0:
434           capability: tosca.capabilities.network.Linkable
435           node: nested_network
436           relationship: tosca.relationships.network.LinksTo
437     abstract_1c2_catalog_instance_0:
438       type: org.openecomp.resource.abstract.nodes.1c2_catalog_instance
439       directives:
440       - substitutable
441       properties:
442         compute_1c2_catalog_instance_availability_zone:
443         - get_input: availabilityzone_name
444         vm_flavor_name:
445           get_input: pd_flavor_name
446         vm_image_name:
447           get_input: pd_image_name
448         port_1c2_t2_port_ip_requirements:
449         - ip_version: 4
450           ip_count_required:
451             is_required: false
452           floating_ip_count_required:
453             is_required: false
454         port_1c2_t1_port_mac_requirements:
455           mac_count_required:
456             is_required: false
457         port_1c2_t2_port_network:
458         - 1c2_catalog_instance_network
459         compute_1c2_catalog_instance_name:
460         - get_input:
461           - 1c2_catalog_instance_names
462           - 1
463         port_1c2_t1_port_network:
464         - get_input: oam_net_name
465         port_1c2_t2_port_mac_requirements:
466           mac_count_required:
467             is_required: false
468         compute_1c2_catalog_instance_user_data_format:
469         - RAW1
470         port_1c2_t1_port_network_role_tag: oam
471         port_1c2_t1_port_ip_requirements:
472         - ip_version: 4
473           ip_count_required:
474             is_required: false
475           floating_ip_count_required:
476             is_required: false
477         compute_1c2_catalog_instance_scheduler_hints:
478         - group: BE_Affinity_group
479         service_template_filter:
480           substitute_service_template: Nested_1c2_catalog_instanceServiceTemplate.yaml
481           count: 1
482         index_value:
483           get_property:
484           - SELF
485           - service_template_filter
486           - index_value
487       requirements:
488       - link_1c2_catalog_instance_1c2_t2_port:
489           capability: tosca.capabilities.network.Linkable
490           node: 1c2_catalog_instance_network
491           relationship: tosca.relationships.network.LinksTo
492     abstract_1c2_catalog_instance_1:
493       type: org.openecomp.resource.abstract.nodes.1c2_catalog_instance
494       directives:
495       - substitutable
496       properties:
497         compute_1c2_catalog_instance_availability_zone:
498         - get_input: availabilityzone_name
499         vm_flavor_name:
500           get_input: pd_flavor_name
501         vm_image_name:
502           get_input: pd_image_name
503         port_1c2_t2_port_ip_requirements:
504         - ip_version: 4
505           ip_count_required:
506             is_required: false
507           floating_ip_count_required:
508             is_required: false
509         port_1c2_t1_port_mac_requirements:
510           mac_count_required:
511             is_required: false
512         port_1c2_t2_port_network:
513         - 1c2_catalog_instance_network
514         compute_1c2_catalog_instance_name:
515         - get_input:
516           - 1c2_catalog_instance_names
517           - 2
518         port_1c2_t1_port_network:
519         - get_input: oam_net_name
520         port_1c2_t2_port_mac_requirements:
521           mac_count_required:
522             is_required: false
523         compute_1c2_catalog_instance_user_data_format:
524         - get_attribute:
525           - abstract_1c2_catalog_instance_0
526           - 1c2_catalog_instance_instance_name
527         port_1c2_t1_port_network_role_tag: oam
528         port_1c2_t1_port_ip_requirements:
529         - ip_version: 4
530           ip_count_required:
531             is_required: false
532           floating_ip_count_required:
533             is_required: false
534         compute_1c2_catalog_instance_scheduler_hints:
535         - group: BE_Affinity_group
536         service_template_filter:
537           substitute_service_template: Nested_1c2_catalog_instanceServiceTemplate.yaml
538           count: 1
539         index_value:
540           get_property:
541           - SELF
542           - service_template_filter
543           - index_value
544       requirements:
545       - link_1c2_catalog_instance_1c2_t2_port:
546           capability: tosca.capabilities.network.Linkable
547           node: 1c2_catalog_instance_network
548           relationship: tosca.relationships.network.LinksTo
549     nestedWithNoNova:
550       type: org.openecomp.resource.abstract.nodes.heat.nested-no-nova
551       directives:
552       - substitutable
553       properties:
554         service_template_filter:
555           substitute_service_template: nested-no-novaServiceTemplate.yaml
556         security_group_name: group1
557         net_name: myNetwork
558     1c1_scalling_instance_network:
559       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
560       properties:
561         network_name:
562           get_input: net_name
563     nodeGetAttIn_network:
564       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
565       properties:
566         dhcp_agent_ids:
567           get_attribute:
568           - abstract_1c2_catalog_instance_1
569           - 1c2_catalog_instance_1c2_t1_port_tenant_id
570           - get_attribute:
571             - abstract_1c2_catalog_instance_0
572             - 1c2_catalog_instance_1c2_t1_port_tenant_id
573             - get_attribute:
574               - abstract_1c2_catalog_instance_0
575               - 1c2_catalog_instance_instance_name
576               - get_attribute:
577                 - abstract_1c2_catalog_instance_1
578                 - 1c2_catalog_instance_instance_name
579         tenant_id:
580           get_attribute:
581           - abstract_1c1_scalling_instance
582           - 1c1_scalling_instance_instance_name
583           - get_attribute:
584             - abstract_1c1_scalling_instance
585             - 1c1_scalling_instance_instance_name
586             - get_attribute:
587               - abstract_1c1_scalling_instance
588               - 1c1_scalling_instance_1c1_t2_port_tenant_id
589               - get_attribute:
590                 - abstract_1c1_scalling_instance
591                 - 1c1_scalling_instance_1c1_t2_port_tenant_id
592         admin_state_up:
593           get_attribute:
594           - abstract_a_single_1a
595           - a_single_1a_1a_t1_port_tenant_id
596         qos_policy:
597           get_attribute:
598           - abstract_a_single_1a
599           - a_single_1a_instance_name
600         network_name:
601           get_attribute:
602           - nestedNoNestedSingleComputePattern
603           - portId
604           - get_attribute:
605             - 4p_nested
606             - server_pcm_id
607         value_specs:
608           get_attribute:
609           - abstract_b_single_1b
610           - b_single_1b_instance_name
611           - get_attribute:
612             - abstract_b_single_1b_1
613             - b_single_1b_instance_name
614             - get_attribute:
615               - abstract_b_single_1b
616               - b_single_1b_1b_t1_port_tenant_id
617               - get_attribute:
618                 - abstract_b_single_1b_1
619                 - b_single_1b_1b_t1_port_tenant_id
620     dependsOn_network:
621       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
622       properties:
623         network_name:
624           get_input: net_name
625       requirements:
626       - dependency:
627           capability: feature_1c2_catalog_instance_1c2_t1_port
628           node: abstract_1c2_catalog_instance_1
629           relationship: tosca.relationships.DependsOn
630       - dependency:
631           capability: feature_1c2_catalog_instance_1c2_t1_port
632           node: abstract_1c2_catalog_instance_0
633           relationship: tosca.relationships.DependsOn
634       - dependency:
635           capability: feature_1c2_catalog_instance
636           node: abstract_1c2_catalog_instance_0
637           relationship: tosca.relationships.DependsOn
638       - dependency:
639           capability: feature_1c2_catalog_instance
640           node: abstract_1c2_catalog_instance_1
641           relationship: tosca.relationships.DependsOn
642       - dependency:
643           capability: feature_1c1_scalling_instance
644           node: abstract_1c1_scalling_instance
645           relationship: tosca.relationships.DependsOn
646       - dependency:
647           capability: feature_1c1_scalling_instance_1c1_t2_port
648           node: abstract_1c1_scalling_instance
649           relationship: tosca.relationships.DependsOn
650       - dependency:
651           capability: feature_b_single_1b
652           node: abstract_b_single_1b
653           relationship: tosca.relationships.DependsOn
654       - dependency:
655           capability: feature_b_single_1b
656           node: abstract_b_single_1b_1
657           relationship: tosca.relationships.DependsOn
658       - dependency:
659           capability: feature_b_single_1b_1b_t1_port
660           node: abstract_b_single_1b
661           relationship: tosca.relationships.DependsOn
662       - dependency:
663           capability: feature_b_single_1b_1b_t1_port
664           node: abstract_b_single_1b_1
665           relationship: tosca.relationships.DependsOn
666       - dependency:
667           capability: feature_a_single_1a
668           node: abstract_a_single_1a
669           relationship: tosca.relationships.DependsOn
670       - dependency:
671           capability: feature_a_single_1a_1a_t1_port
672           node: abstract_a_single_1a
673           relationship: tosca.relationships.DependsOn
674     abstract_a_single_1a:
675       type: org.openecomp.resource.abstract.nodes.a_single_1a
676       directives:
677       - substitutable
678       properties:
679         port_1a_t1_port_ip_requirements:
680         - ip_version: 4
681           ip_count_required:
682             is_required: false
683           floating_ip_count_required:
684             is_required: false
685         port_1a_t2_port_network_role_tag: ppds
686         vm_flavor_name:
687           get_input: pd_flavor_name
688         port_1a_t2_port_network:
689         - get_input: ppds_net_name
690         port_1a_t1_port_mac_requirements:
691           mac_count_required:
692             is_required: false
693         port_1a_t1_port_network:
694         - a_single_1a_network
695         vm_image_name:
696           get_input: pd_image_name
697         port_1a_t2_port_ip_requirements:
698         - ip_version: 4
699           ip_count_required:
700             is_required: false
701           floating_ip_count_required:
702             is_required: false
703         compute_a_single_1a_availability_zone:
704         - get_input: availabilityzone_name
705         compute_a_single_1a_scheduler_hints:
706         - group: BE_Affinity_group
707         compute_a_single_1a_user_data_format:
708         - RAW
709         compute_a_single_1a_name:
710         - get_input:
711           - a_single_1a_names
712           - 0
713         port_1a_t2_port_mac_requirements:
714           mac_count_required:
715             is_required: false
716         service_template_filter:
717           substitute_service_template: Nested_a_single_1aServiceTemplate.yaml
718           count: 1
719         index_value:
720           get_property:
721           - SELF
722           - service_template_filter
723           - index_value
724       requirements:
725       - link_a_single_1a_1a_t1_port:
726           capability: tosca.capabilities.network.Linkable
727           node: a_single_1a_network
728           relationship: tosca.relationships.network.LinksTo
729     nested_network:
730       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
731       properties:
732         network_name:
733           get_input: net_name
734     jsa_security_group:
735       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
736       properties:
737         name:
738           get_input: security_group_name
739         description: ems security group
740         rules:
741         - protocol: tcp
742           ethertype: IPv4
743           port_range_max: 65535
744           remote_ip_prefix: 0.0.0.0/0
745           direction: egress
746           port_range_min: 1
747         - protocol: udp
748           ethertype: IPv4
749           port_range_max: 65535
750           remote_ip_prefix: 0.0.0.0/0
751           direction: egress
752           port_range_min: 1
753         - protocol: icmp
754           ethertype: IPv4
755           remote_ip_prefix: 0.0.0.0/0
756           direction: egress
757         - protocol: tcp
758           ethertype: IPv6
759           port_range_max: 65535
760           remote_ip_prefix: ::/0
761           direction: egress
762           port_range_min: 1
763         - protocol: udp
764           ethertype: IPv6
765           port_range_max: 65535
766           remote_ip_prefix: ::/0
767           direction: egress
768           port_range_min: 1
769         - protocol: icmp
770           ethertype: IPv6
771           remote_ip_prefix: ::/0
772           direction: egress
773         - protocol: tcp
774           ethertype: IPv4
775           port_range_max: 65535
776           remote_ip_prefix: 0.0.0.0/0
777           direction: ingress
778           port_range_min: 1
779         - protocol: udp
780           ethertype: IPv4
781           port_range_max: 65535
782           remote_ip_prefix: 0.0.0.0/0
783           direction: ingress
784           port_range_min: 1
785         - protocol: icmp
786           ethertype: IPv4
787           remote_ip_prefix: 0.0.0.0/0
788           direction: ingress
789         - protocol: tcp
790           ethertype: IPv6
791           port_range_max: 65535
792           remote_ip_prefix: ::/0
793           direction: ingress
794           port_range_min: 1
795         - protocol: udp
796           ethertype: IPv6
797           port_range_max: 65535
798           remote_ip_prefix: ::/0
799           direction: ingress
800           port_range_min: 1
801         - protocol: icmp
802           ethertype: IPv6
803           remote_ip_prefix: ::/0
804           direction: ingress
805       requirements:
806       - port:
807           capability: attachment_pcm_port_0
808           node: 4p_nested
809           relationship: org.openecomp.relationships.AttachesTo
810       - port:
811           capability: attachment_pcm_port_1
812           node: 4p_nested
813           relationship: org.openecomp.relationships.AttachesTo
814       - port:
815           capability: attachment_pcm_port_0_0
816           node: nestedNoNestedSingleComputePattern
817           relationship: org.openecomp.relationships.AttachesTo
818       - port:
819           capability: attachment_pcm_port_3_0
820           node: nestedNoNestedSingleComputePattern
821           relationship: org.openecomp.relationships.AttachesTo
822       - port:
823           capability: attachment_pcm_port_2_0
824           node: nestedNoNestedSingleComputePattern
825           relationship: org.openecomp.relationships.AttachesTo
826       - port:
827           capability: attachment_pcm_port_1_0
828           node: nestedNoNestedSingleComputePattern
829           relationship: org.openecomp.relationships.AttachesTo
830     abstract_b_single_1b_1:
831       type: org.openecomp.resource.abstract.nodes.b_single_1b_1
832       directives:
833       - substitutable
834       properties:
835         vm_flavor_name:
836           get_input: pd_flavor_name
837         port_1b_t1_port_ip_requirements:
838         - ip_version: 4
839           ip_count_required:
840             is_required: false
841           floating_ip_count_required:
842             is_required: false
843         vm_image_name:
844           get_input: pd_image_name
845         compute_b_single_1b_user_data_format:
846         - RAW
847         port_1b_t2_port_mac_requirements:
848           mac_count_required:
849             is_required: false
850         compute_b_single_1b_availability_zone:
851         - get_input: availabilityzone_name
852         compute_b_single_1b_scheduler_hints:
853         - group: BE_Affinity_group
854         port_1b_t2_port_ip_requirements:
855         - ip_version: 4
856           ip_count_required:
857             is_required: false
858           floating_ip_count_required:
859             is_required: false
860         port_1b_t1_port_network_role_tag: oam
861         port_1b_t1_port_mac_requirements:
862           mac_count_required:
863             is_required: false
864         port_1b_t2_port_network:
865         - b_single_1b_network
866         port_1b_t1_port_network:
867         - get_input: oam_net_name
868         compute_b_single_1b_name:
869         - get_input:
870           - b_single_1b_names
871           - 1
872         service_template_filter:
873           substitute_service_template: Nested_b_single_1b_1ServiceTemplate.yaml
874           count: 1
875         index_value:
876           get_property:
877           - SELF
878           - service_template_filter
879           - index_value
880       requirements:
881       - link_b_single_1b_1b_t2_port:
882           capability: tosca.capabilities.network.Linkable
883           node: b_single_1b_network
884           relationship: tosca.relationships.network.LinksTo
885     a_single_1a_network:
886       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
887       properties:
888         network_name:
889           get_input: net_name
890     1c2_catalog_instance_network:
891       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
892       properties:
893         network_name:
894           get_input: net_name
895   groups:
896     hot-mog-0108-bs1271_group:
897       type: org.openecomp.groups.heat.HeatStack
898       properties:
899         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
900         description: heat template that creates MOG stack
901       members:
902       - nestedNoNestedSingleComputePattern
903       - b_single_1b_network
904       - nestedWithNoNovaHadDependencyToIt
905       - 4p_nested
906       - nestedWithNoNova
907       - 1c1_scalling_instance_network
908       - nodeGetAttIn_network
909       - dependsOn_network
910       - nested_network
911       - jsa_security_group
912       - a_single_1a_network
913       - 1c2_catalog_instance_network
914       - abstract_a_single_1a
915       - abstract_b_single_1b
916       - abstract_b_single_1b_1
917       - abstract_1c1_scalling_instance
918       - abstract_1c2_catalog_instance_0
919       - abstract_1c2_catalog_instance_1
920     BE_Affinity_group:
921       type: tosca.groups.Root
922       members:
923       - abstract_a_single_1a
924       - abstract_b_single_1b
925       - abstract_b_single_1b_1
926       - abstract_1c1_scalling_instance
927       - abstract_1c2_catalog_instance_0
928       - abstract_1c2_catalog_instance_1
929   outputs:
930     out2:
931       value:
932         get_attribute:
933         - abstract_1c2_catalog_instance_1
934         - 1c2_catalog_instance_1c2_t1_port_tenant_id
935         - get_attribute:
936           - abstract_1c2_catalog_instance_0
937           - 1c2_catalog_instance_1c2_t1_port_tenant_id
938           - get_attribute:
939             - abstract_1c2_catalog_instance_0
940             - 1c2_catalog_instance_instance_name
941             - get_attribute:
942               - abstract_1c2_catalog_instance_1
943               - 1c2_catalog_instance_instance_name
944     out3:
945       value:
946         get_attribute:
947         - abstract_1c1_scalling_instance
948         - 1c1_scalling_instance_instance_name
949         - get_attribute:
950           - abstract_1c1_scalling_instance
951           - 1c1_scalling_instance_instance_name
952           - get_attribute:
953             - abstract_1c1_scalling_instance
954             - 1c1_scalling_instance_1c1_t2_port_tenant_id
955             - get_attribute:
956               - abstract_1c1_scalling_instance
957               - 1c1_scalling_instance_1c1_t2_port_tenant_id
958     out4:
959       value:
960         get_attribute:
961         - abstract_b_single_1b
962         - b_single_1b_instance_name
963         - get_attribute:
964           - abstract_b_single_1b_1
965           - b_single_1b_instance_name
966           - get_attribute:
967             - abstract_b_single_1b
968             - b_single_1b_1b_t1_port_tenant_id
969             - get_attribute:
970               - abstract_b_single_1b_1
971               - b_single_1b_1b_t1_port_tenant_id
972     out5:
973       value:
974         get_attribute:
975         - abstract_a_single_1a
976         - a_single_1a_instance_name
977     out1:
978       value:
979         get_attribute:
980         - nestedNoNestedSingleComputePattern
981         - portId
982         - get_attribute:
983           - 4p_nested
984           - server_pcm_id
985     out6:
986       value:
987         get_attribute:
988         - abstract_a_single_1a
989         - a_single_1a_1a_t1_port_tenant_id
990     out7:
991       value:
992         get_attribute:
993         - nestedWithNoNovaHadDependencyToIt
994         - output1
995   policies:
996     BE_Affinity_policy:
997       type: org.openecomp.policies.placement.Colocate
998       properties:
999         name: def
1000         affinity: host
1001       targets:
1002       - BE_Affinity_group