push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / VMInterfaceToNettworkConnection / shared / expectedoutputfiles / nested1ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested1
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.abc:
35     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
36   org.openecomp.resource.vfc.nodes.heat.cmaui:
37     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
38 topology_template:
39   inputs:
40     cmaui_names:
41       hidden: false
42       immutable: false
43       type: list
44       description: CMAUI1, CMAUI2 server names
45       entry_schema:
46         type: string
47     p2:
48       hidden: false
49       immutable: false
50       type: string
51       description: UID of OAM network
52     abc_flavor:
53       hidden: false
54       immutable: false
55       type: string
56       description: Flavor for CMAUI server
57     template_PortTuple_LB1:
58       hidden: false
59       immutable: false
60       type: string
61     oam_sec_group_name:
62       hidden: false
63       immutable: false
64       type: string
65     lb_st_interface_type_oam:
66       hidden: false
67       immutable: false
68       type: string
69     abc_names:
70       hidden: false
71       immutable: false
72       type: list
73       description: CMAUI1, CMAUI2 server names
74       entry_schema:
75         type: string
76     security_group_name:
77       hidden: false
78       immutable: false
79       description: not impotrtant
80     shared_network_id1:
81       hidden: false
82       immutable: false
83       type: string
84       description: UID of OAM network
85     cmaui_image:
86       hidden: false
87       immutable: false
88       type: string
89       description: Image for CMAUI server
90     cmaui_flavor:
91       hidden: false
92       immutable: false
93       type: string
94       description: Flavor for CMAUI server
95     availability_zone_0:
96       label: availabilityzone name
97       hidden: false
98       immutable: false
99       type: string
100       description: availabilityzone name
101     abc_oam_ips:
102       hidden: false
103       immutable: false
104       type: string
105     cmaui_oam_ips:
106       hidden: false
107       immutable: false
108       type: string
109     abc_image:
110       hidden: false
111       immutable: false
112       type: string
113       description: Image for CMAUI server
114   node_templates:
115     template_VMInt_OAM_lb_1:
116       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
117       properties:
118         security_group_refs:
119         - get_input: oam_sec_group_name
120         virtual_network_refs:
121         - get_input: shared_network_id1
122         virtual_machine_interface_properties:
123           virtual_machine_interface_properties_service_interface_type:
124             get_input: lb_st_interface_type_oam
125         port_tuple_refs:
126         - get_input: template_PortTuple_LB1
127       requirements:
128       - binding:
129           capability: tosca.capabilities.network.Bindable
130           node: server_cmaui
131           relationship: tosca.relationships.network.BindsTo
132     template_VMInt_OAM_lb_2:
133       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
134       properties:
135         security_group_refs:
136         - get_input: oam_sec_group_name
137         virtual_network_refs:
138         - get_input: p2
139         virtual_machine_interface_properties:
140           virtual_machine_interface_properties_service_interface_type:
141             get_input: lb_st_interface_type_oam
142         port_tuple_refs:
143         - get_input: template_PortTuple_LB1
144       requirements:
145       - binding:
146           capability: tosca.capabilities.network.Bindable
147           node: server_cmaui
148           relationship: tosca.relationships.network.BindsTo
149     template_VMInt_OAM_lb_3:
150       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
151       properties:
152         security_group_refs:
153         - get_input: oam_sec_group_name
154         virtual_network_refs:
155         - get_input: p2
156         - get_input: shared_network_id1
157         virtual_machine_interface_properties:
158           virtual_machine_interface_properties_service_interface_type:
159             get_input: lb_st_interface_type_oam
160         port_tuple_refs:
161         - get_input: template_PortTuple_LB1
162       requirements:
163       - binding:
164           capability: tosca.capabilities.network.Bindable
165           node: server_cmaui
166           relationship: tosca.relationships.network.BindsTo
167     server_cmaui:
168       type: org.openecomp.resource.vfc.nodes.heat.cmaui
169       properties:
170         flavor:
171           get_input: cmaui_flavor
172         availability_zone:
173           get_input: availability_zone_0
174         image:
175           get_input: cmaui_image
176         contrail_service_instance_ind: true
177         name:
178           get_input:
179           - cmaui_names
180           - 0
181     server_abc:
182       type: org.openecomp.resource.vfc.nodes.heat.abc
183       properties:
184         flavor:
185           get_input: abc_flavor
186         availability_zone:
187           get_input: availability_zone_0
188         image:
189           get_input: abc_image
190         name:
191           get_input:
192           - abc_names
193           - 0
194     abc_port_1:
195       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
196       properties:
197         replacement_policy: AUTO
198         security_groups:
199         - get_input: security_group_name
200         fixed_ips:
201         - ip_address:
202             get_input:
203             - abc_oam_ips
204             - 0
205         network:
206           get_input: p2
207       requirements:
208       - binding:
209           capability: tosca.capabilities.network.Bindable
210           node: server_abc
211           relationship: tosca.relationships.network.BindsTo
212   groups:
213     nested1:
214       type: org.openecomp.groups.heat.HeatStack
215       properties:
216         heat_file: ../Artifacts/nested1.yml
217         description: cmaui server template for vMMSC
218       members:
219       - template_VMInt_OAM_lb_1
220       - template_VMInt_OAM_lb_2
221       - template_VMInt_OAM_lb_3
222       - server_cmaui
223       - server_abc
224       - abc_port_1
225   substitution_mappings:
226     node_type: org.openecomp.resource.abstract.nodes.heat.nested1
227     capabilities:
228       scalable_server_abc:
229       - server_abc
230       - scalable
231       host_server_cmaui:
232       - server_cmaui
233       - host
234       os_server_cmaui:
235       - server_cmaui
236       - os
237       binding_server_abc:
238       - server_abc
239       - binding
240       endpoint_server_cmaui:
241       - server_cmaui
242       - endpoint
243       attachment_abc_port_1:
244       - abc_port_1
245       - attachment
246       binding_server_cmaui:
247       - server_cmaui
248       - binding
249       endpoint_server_abc:
250       - server_abc
251       - endpoint
252       scalable_server_cmaui:
253       - server_cmaui
254       - scalable
255       host_server_abc:
256       - server_abc
257       - host
258       os_server_abc:
259       - server_abc
260       - os
261     requirements:
262       link_template_VMInt_OAM_lb_1:
263       - template_VMInt_OAM_lb_1
264       - link
265       local_storage_server_cmaui:
266       - server_cmaui
267       - local_storage
268       link_template_VMInt_OAM_lb_3:
269       - template_VMInt_OAM_lb_3
270       - link
271       link_template_VMInt_OAM_lb_2:
272       - template_VMInt_OAM_lb_2
273       - link
274       link_abc_port_1:
275       - abc_port_1
276       - link
277       local_storage_server_abc:
278       - server_abc
279       - local_storage