push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / nested / nested2levels / 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       scalable_server_cmaui:
161       - server_cmaui
162       - scalable
163       host_server_cmaui:
164       - server_cmaui
165       - host
166       endpoint_server_cmaui:
167       - server_cmaui
168       - endpoint
169       attachment_cmaui_port_11_test_nested2:
170       - test_nested2
171       - attachment_cmaui_port_11
172       binding_server_cmaui:
173       - server_cmaui
174       - binding
175       attachment_cmaui_port_2:
176       - cmaui_port_2
177       - attachment
178       endpoint_server_cmaui_test_nested2:
179       - test_nested2
180       - endpoint_server_cmaui
181       host_server_cmaui_test_nested2:
182       - test_nested2
183       - host_server_cmaui
184       binding_server_cmaui_test_nested2:
185       - test_nested2
186       - binding_server_cmaui
187       scalable_server_cmaui_test_nested2:
188       - test_nested2
189       - scalable_server_cmaui
190       os_server_cmaui_test_nested2:
191       - test_nested2
192       - os_server_cmaui
193       attachment_cmaui_port_22_test_nested2:
194       - test_nested2
195       - attachment_cmaui_port_22
196       attachment_cmaui_port_1:
197       - cmaui_port_1
198       - attachment
199     requirements:
200       local_storage_server_cmaui_test_nested2:
201       - test_nested2
202       - local_storage_server_cmaui
203       local_storage_server_cmaui:
204       - server_cmaui
205       - local_storage
206       link_cmaui_port_22_test_nested2:
207       - test_nested2
208       - link_cmaui_port_22
209       link_cmaui_port_2:
210       - cmaui_port_2
211       - link
212       link_cmaui_port_11_test_nested2:
213       - test_nested2
214       - link_cmaui_port_11
215       link_cmaui_port_1:
216       - cmaui_port_1
217       - link