push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / nested / nested3levels / expectedoutputfiles / nested2levelServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested2level
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_11:
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         - get_input: p2
89         fixed_ips:
90         - ip_address:
91             get_input:
92             - cmaui_oam_ips
93             - 0
94         network:
95           get_input: net
96       requirements:
97       - binding:
98           capability: tosca.capabilities.network.Bindable
99           node: server_cmaui
100           relationship: tosca.relationships.network.BindsTo
101     cmaui_port_22:
102       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
103       properties:
104         replacement_policy: AUTO
105         security_groups:
106         - get_input: shared_security_group_id1
107         fixed_ips:
108         - ip_address:
109             get_input:
110             - cmaui_oam_ips
111             - 0
112         network:
113           get_input: net
114       requirements:
115       - binding:
116           capability: tosca.capabilities.network.Bindable
117           node: server_cmaui
118           relationship: tosca.relationships.network.BindsTo
119     test_nested3:
120       type: org.openecomp.resource.abstract.nodes.heat.nested3level
121       directives:
122       - substitutable
123       properties:
124         service_template_filter:
125           substitute_service_template: nested3levelServiceTemplate.yaml
126         p2:
127           get_input: p2
128         shared_security_group_id1:
129           get_input: shared_security_group_id1
130     server_cmaui:
131       type: org.openecomp.resource.vfc.nodes.heat.cmaui
132       properties:
133         flavor:
134           get_input: cmaui_flavor
135         availability_zone:
136           get_input: availability_zone_0
137         image:
138           get_input: cmaui_image
139         name:
140           get_input:
141           - cmaui_names
142           - 0
143   groups:
144     nested2level:
145       type: org.openecomp.groups.heat.HeatStack
146       properties:
147         heat_file: ../Artifacts/nested2level.yml
148         description: cmaui server template for vMMSC
149       members:
150       - cmaui_port_11
151       - cmaui_port_22
152       - test_nested3
153       - server_cmaui
154   substitution_mappings:
155     node_type: org.openecomp.resource.abstract.nodes.heat.nested2level
156     capabilities:
157       os_server_cmaui:
158       - server_cmaui
159       - os
160       attachment_cmaui_port_22_test_nested3:
161       - test_nested3
162       - attachment_cmaui_port_22
163       attachment_cmaui_port_11_test_nested3:
164       - test_nested3
165       - attachment_cmaui_port_11
166       scalable_server_cmaui:
167       - server_cmaui
168       - scalable
169       host_server_cmaui:
170       - server_cmaui
171       - host
172       attachment_cmaui_port_11:
173       - cmaui_port_11
174       - attachment
175       attachment_cmaui_port_22:
176       - cmaui_port_22
177       - attachment
178       host_server_cmaui_test_nested3:
179       - test_nested3
180       - host_server_cmaui
181       endpoint_server_cmaui:
182       - server_cmaui
183       - endpoint
184       binding_server_cmaui:
185       - server_cmaui
186       - binding
187       endpoint_server_cmaui_test_nested3:
188       - test_nested3
189       - endpoint_server_cmaui
190       os_server_cmaui_test_nested3:
191       - test_nested3
192       - os_server_cmaui
193       binding_server_cmaui_test_nested3:
194       - test_nested3
195       - binding_server_cmaui
196       scalable_server_cmaui_test_nested3:
197       - test_nested3
198       - scalable_server_cmaui
199     requirements:
200       local_storage_server_cmaui_test_nested3:
201       - test_nested3
202       - local_storage_server_cmaui
203       local_storage_server_cmaui:
204       - server_cmaui
205       - local_storage
206       link_cmaui_port_11:
207       - cmaui_port_11
208       - link
209       link_cmaui_port_22:
210       - cmaui_port_22
211       - link
212       link_cmaui_port_22_test_nested3:
213       - test_nested3
214       - link_cmaui_port_22
215       link_cmaui_port_11_test_nested3:
216       - test_nested3
217       - link_cmaui_port_11