push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / nested / nested3levels / expectedoutputfiles / nestedServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested
4 imports:
5   ContrailComputeGlobalTypes:
6     file: ContrailComputeGlobalTypesServiceTemplate.yaml
7   CinderVolumeGlobalTypes:
8     file: CinderVolumeGlobalTypesServiceTemplate.yaml
9   ContrailVirtualNetworkGlobalType:
10     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
11   AbstractSubstituteGlobalTypes:
12     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
13   ContrailPortGlobalTypes:
14     file: ContrailPortGlobalTypesServiceTemplate.yaml
15   GlobalSubstitutionTypes:
16     file: GlobalSubstitutionTypesServiceTemplate.yaml
17   NeutronPortGlobalTypes:
18     file: NeutronPortGlobalTypesServiceTemplate.yaml
19   NeutronNetGlobalTypes:
20     file: NeutronNetGlobalTypesServiceTemplate.yaml
21   CommonGlobalTypes:
22     file: CommonGlobalTypesServiceTemplate.yaml
23   ContrailAbstractSubstituteGlobalTypes:
24     file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
25   ContrailNetworkRuleGlobalType:
26     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
27   NeutronSecurityRulesGlobalTypes:
28     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
29   NovaServerGlobalTypes:
30     file: NovaServerGlobalTypesServiceTemplate.yaml
31   ContrailV2VirtualMachineInterfaceGlobalType:
32     file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
33 node_types:
34   org.openecomp.resource.vfc.nodes.heat.cmaui:
35     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
36 topology_template:
37   inputs:
38     cmaui_names:
39       hidden: false
40       immutable: false
41       type: list
42       description: CMAUI1, CMAUI2 server names
43       entry_schema:
44         type: string
45     p2:
46       hidden: false
47       immutable: false
48       type: string
49       description: UID of OAM network
50     cmaui_image:
51       hidden: false
52       immutable: false
53       type: string
54       description: Image for CMAUI server
55     cmaui_flavor:
56       hidden: false
57       immutable: false
58       type: string
59       description: Flavor for CMAUI server
60     availability_zone_0:
61       label: availabilityzone name
62       hidden: false
63       immutable: false
64       type: string
65       description: availabilityzone name
66     cmaui_oam_ips:
67       hidden: false
68       immutable: false
69       type: string
70       description: cmaui_port_1
71     net:
72       hidden: false
73       immutable: false
74       type: string
75       description: UID of OAM network
76     shared_security_group_id1:
77       hidden: false
78       immutable: false
79       type: string
80       description: UID of OAM network
81   node_templates:
82     cmaui_port_2:
83       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
84       properties:
85         replacement_policy: AUTO
86         security_groups:
87         - get_input: shared_security_group_id1
88         fixed_ips:
89         - ip_address:
90             get_input:
91             - cmaui_oam_ips
92             - 0
93         network:
94           get_input: net
95       requirements:
96       - binding:
97           capability: tosca.capabilities.network.Bindable
98           node: server_cmaui
99           relationship: tosca.relationships.network.BindsTo
100     test_nested2:
101       type: org.openecomp.resource.abstract.nodes.heat.nested2level
102       directives:
103       - substitutable
104       properties:
105         service_template_filter:
106           substitute_service_template: nested2levelServiceTemplate.yaml
107         p2:
108           get_input: p2
109         shared_security_group_id1:
110           get_input: shared_security_group_id1
111     server_cmaui:
112       type: org.openecomp.resource.vfc.nodes.heat.cmaui
113       properties:
114         flavor:
115           get_input: cmaui_flavor
116         availability_zone:
117           get_input: availability_zone_0
118         image:
119           get_input: cmaui_image
120         name:
121           get_input:
122           - cmaui_names
123           - 0
124     cmaui_port_1:
125       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
126       properties:
127         replacement_policy: AUTO
128         security_groups:
129         - get_input: shared_security_group_id1
130         - get_input: p2
131         fixed_ips:
132         - ip_address:
133             get_input:
134             - cmaui_oam_ips
135             - 0
136         network:
137           get_input: net
138       requirements:
139       - binding:
140           capability: tosca.capabilities.network.Bindable
141           node: server_cmaui
142           relationship: tosca.relationships.network.BindsTo
143   groups:
144     nested:
145       type: org.openecomp.groups.heat.HeatStack
146       properties:
147         heat_file: ../Artifacts/nested.yml
148         description: cmaui server template for vMMSC
149       members:
150       - cmaui_port_2
151       - test_nested2
152       - server_cmaui
153       - cmaui_port_1
154   substitution_mappings:
155     node_type: org.openecomp.resource.abstract.nodes.heat.nested
156     capabilities:
157       os_server_cmaui:
158       - server_cmaui
159       - os
160       binding_server_cmaui_test_nested3_test_nested2:
161       - test_nested2
162       - binding_server_cmaui_test_nested3
163       scalable_server_cmaui_test_nested3_test_nested2:
164       - test_nested2
165       - scalable_server_cmaui_test_nested3
166       host_server_cmaui_test_nested3_test_nested2:
167       - test_nested2
168       - host_server_cmaui_test_nested3
169       scalable_server_cmaui:
170       - server_cmaui
171       - scalable
172       attachment_cmaui_port_22_test_nested3_test_nested2:
173       - test_nested2
174       - attachment_cmaui_port_22_test_nested3
175       host_server_cmaui:
176       - server_cmaui
177       - host
178       attachment_cmaui_port_11_test_nested3_test_nested2:
179       - test_nested2
180       - attachment_cmaui_port_11_test_nested3
181       endpoint_server_cmaui:
182       - server_cmaui
183       - endpoint
184       attachment_cmaui_port_11_test_nested2:
185       - test_nested2
186       - attachment_cmaui_port_11
187       binding_server_cmaui:
188       - server_cmaui
189       - binding
190       attachment_cmaui_port_2:
191       - cmaui_port_2
192       - attachment
193       endpoint_server_cmaui_test_nested2:
194       - test_nested2
195       - endpoint_server_cmaui
196       endpoint_server_cmaui_test_nested3_test_nested2:
197       - test_nested2
198       - endpoint_server_cmaui_test_nested3
199       scalable_server_cmaui_test_nested2:
200       - test_nested2
201       - scalable_server_cmaui
202       host_server_cmaui_test_nested2:
203       - test_nested2
204       - host_server_cmaui
205       binding_server_cmaui_test_nested2:
206       - test_nested2
207       - binding_server_cmaui
208       os_server_cmaui_test_nested2:
209       - test_nested2
210       - os_server_cmaui
211       attachment_cmaui_port_22_test_nested2:
212       - test_nested2
213       - attachment_cmaui_port_22
214       os_server_cmaui_test_nested3_test_nested2:
215       - test_nested2
216       - os_server_cmaui_test_nested3
217       attachment_cmaui_port_1:
218       - cmaui_port_1
219       - attachment
220     requirements:
221       local_storage_server_cmaui_test_nested2:
222       - test_nested2
223       - local_storage_server_cmaui
224       local_storage_server_cmaui:
225       - server_cmaui
226       - local_storage
227       link_cmaui_port_11_test_nested3_test_nested2:
228       - test_nested2
229       - link_cmaui_port_11_test_nested3
230       link_cmaui_port_22_test_nested2:
231       - test_nested2
232       - link_cmaui_port_22
233       link_cmaui_port_22_test_nested3_test_nested2:
234       - test_nested2
235       - link_cmaui_port_22_test_nested3
236       local_storage_server_cmaui_test_nested3_test_nested2:
237       - test_nested2
238       - local_storage_server_cmaui_test_nested3
239       link_cmaui_port_2:
240       - cmaui_port_2
241       - link
242       link_cmaui_port_11_test_nested2:
243       - test_nested2
244       - link_cmaui_port_11
245       link_cmaui_port_1:
246       - cmaui_port_1
247       - link