Nested Dependency issues
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / nestedOtherScenarios / oneLevel / nestedTwoSameOneDiffWithConnectivity / 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     security_group_name:
12       hidden: false
13       immutable: false
14       annotations:
15         source:
16           type: org.openecomp.annotations.Source
17           properties:
18             vf_module_label:
19             - main
20             source_type: HEAT
21             param_name: security_group_name
22       type: string
23       description: security_group_name
24     jsa_name:
25       hidden: false
26       immutable: false
27       annotations:
28         source:
29           type: org.openecomp.annotations.Source
30           properties:
31             vf_module_label:
32             - main
33             source_type: HEAT
34             param_name: jsa_name
35       type: string
36       description: network name of jsa log network
37   node_templates:
38     dependsOn_network:
39       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
40       properties:
41         network_name:
42           get_input: jsa_name
43     test_nested_diff_file:
44       type: org.openecomp.resource.abstract.nodes.heat.nested-other-file-1B
45       directives:
46       - substitutable
47       properties:
48         p1: jsa_security_group1
49         service_template_filter:
50           substitute_service_template: nested-other-file-1BServiceTemplate.yaml
51     test_nested_same_file_1:
52       type: org.openecomp.resource.abstract.nodes.heat.nested-same-file-1B
53       directives:
54       - substitutable
55       properties:
56         p1:
57           get_attribute:
58           - test_nested_diff_file
59           - nested_diff_file_attr_1
60         service_template_filter:
61           substitute_service_template: nested-same-file-1BServiceTemplate.yaml
62         p2: jsa_security_group2
63     test_nested_same_file_2:
64       type: org.openecomp.resource.abstract.nodes.heat.nested-same-file-1B
65       directives:
66       - substitutable
67       properties:
68         service_template_filter:
69           substitute_service_template: nested-same-file-1BServiceTemplate.yaml
70         p2:
71           get_attribute:
72           - test_nested_same_file_1
73           - nested_same_file_attr_1
74     jsa_security_group1:
75       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
76       properties:
77         name:
78           get_input: security_group_name
79         description: ems security group
80         rules:
81         - protocol: tcp
82           ethertype: IPv4
83           port_range_max: 65535
84           remote_ip_prefix: 0.0.0.0/0
85           direction: egress
86           port_range_min: 1
87       requirements:
88       - port:
89           capability: attachment_ps_server_port
90           node: test_nested_diff_file
91           relationship: org.openecomp.relationships.AttachesTo
92       - port:
93           capability: attachment_pd_server_port
94           node: test_nested_diff_file
95           relationship: org.openecomp.relationships.AttachesTo
96     jsa_security_group2:
97       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
98       properties:
99         name:
100           get_input: security_group_name
101         description: ems security group
102         rules:
103         - protocol: icmp
104           ethertype: IPv6
105           remote_ip_prefix: ::/0
106           direction: ingress
107       requirements:
108       - port:
109           capability: attachment_sm_server_port
110           node: test_nested_same_file_1
111           relationship: org.openecomp.relationships.AttachesTo
112   groups:
113     main_group:
114       type: org.openecomp.groups.heat.HeatStack
115       properties:
116         heat_file: ../Artifacts/main.yml
117         description: |
118           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
119       members:
120       - dependsOn_network
121       - test_nested_diff_file
122       - test_nested_same_file_1
123       - test_nested_same_file_2
124       - jsa_security_group1
125       - jsa_security_group2