push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / novatovolumeconnection / multinotconnected / expectedoutputfiles / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
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   NeutronPortGlobalTypes:
16     file: NeutronPortGlobalTypesServiceTemplate.yaml
17   NeutronNetGlobalTypes:
18     file: NeutronNetGlobalTypesServiceTemplate.yaml
19   CommonGlobalTypes:
20     file: CommonGlobalTypesServiceTemplate.yaml
21   ContrailAbstractSubstituteGlobalTypes:
22     file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
23   ContrailNetworkRuleGlobalType:
24     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
25   NeutronSecurityRulesGlobalTypes:
26     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
27   NovaServerGlobalTypes:
28     file: NovaServerGlobalTypesServiceTemplate.yaml
29   ContrailV2VirtualMachineInterfaceGlobalType:
30     file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
31 node_types:
32   org.openecomp.resource.vfc.nodes.heat.cmaui:
33     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
34 topology_template:
35   inputs:
36     cmaui_names:
37       hidden: false
38       immutable: false
39       type: list
40       description: CMAUI1, CMAUI2 server names
41       entry_schema:
42         type: string
43     availability_zone_10:
44       label: availabilityzone name
45       hidden: false
46       immutable: false
47       type: string
48       description: availabilityzone name
49     cmaui_cinder_volume_size:
50       label: CMAUI Cinder volume size
51       hidden: false
52       immutable: false
53       type: float
54       description: the size of the CMAUI Cinder volume
55     timezone:
56       label: timezone
57       hidden: false
58       immutable: false
59       type: string
60       description: timezone
61     security_group_name:
62       label: security group name
63       hidden: false
64       immutable: false
65       type: string
66       description: the name of security group
67     cmaui_volume:
68       label: CMAUI vm volume type
69       hidden: false
70       immutable: false
71       type: string
72       description: the name of the target volume backend
73     oam_network_netmask:
74       label: oam network netmask
75       hidden: false
76       immutable: false
77       type: string
78       description: oam network gateway
79     cmaui_image:
80       hidden: false
81       immutable: false
82       type: string
83       description: Image for CMAUI server
84     cmaui_volume_param1:
85       hidden: false
86       immutable: false
87       type: string
88       description: nova server id
89     vnf_id:
90       hidden: false
91       immutable: false
92       type: string
93       description: Unique ID for this VNF instance
94       default: This_is_ths_MMSC-CMAUI_id
95     cmaui_flavor:
96       hidden: false
97       immutable: false
98       type: string
99       description: Flavor for CMAUI server
100     oam_network_gateway:
101       label: oam network gateway
102       hidden: false
103       immutable: false
104       type: string
105       description: oam network gateway
106     cmaui_volume_param2:
107       hidden: false
108       immutable: false
109       type: string
110       description: nova server id
111     availability_zone_0:
112       label: availabilityzone name
113       hidden: false
114       immutable: false
115       type: string
116       description: availabilityzone name
117     cmaui_oam_ips:
118       label: CMAUI oam_net IP addresses
119       hidden: false
120       immutable: false
121       type: list
122       description: CMAUI oam_net IP addresses
123       entry_schema:
124         type: string
125     external_dns:
126       label: dns server
127       hidden: false
128       immutable: false
129       type: string
130       description: dns server
131     server_cmaui21:
132       hidden: false
133       immutable: false
134       type: string
135       description: nova server id
136     oam_net_name:
137       hidden: false
138       immutable: false
139       type: string
140       description: UID of OAM network
141     CMAUI_volume_type:
142       label: CMAUI vm volume type
143       hidden: false
144       immutable: false
145       type: string
146       description: the name of the target volume backend
147     external_ntp:
148       label: ntp server
149       hidden: false
150       immutable: false
151       type: string
152       description: ntp server
153   node_templates:
154     cmaui_port_2:
155       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
156       properties:
157         replacement_policy: AUTO
158         security_groups:
159         - get_input: security_group_name
160         fixed_ips:
161         - ip_address:
162             get_input:
163             - cmaui_oam_ips
164             - 0
165         network:
166           get_input: oam_net_name
167       requirements:
168       - binding:
169           capability: tosca.capabilities.network.Bindable
170           node: server_cmaui2
171           relationship: tosca.relationships.network.BindsTo
172     cmaui_port_11:
173       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
174       properties:
175         replacement_policy: AUTO
176         security_groups:
177         - get_input: security_group_name
178         fixed_ips:
179         - ip_address:
180             get_input:
181             - cmaui_oam_ips
182             - 0
183         network:
184           get_input: oam_net_name
185       requirements:
186       - binding:
187           capability: tosca.capabilities.network.Bindable
188           node: server_cmaui21
189           relationship: tosca.relationships.network.BindsTo
190     server_cmaui2:
191       type: org.openecomp.resource.vfc.nodes.heat.cmaui
192       properties:
193         flavor:
194           get_input: cmaui_flavor
195         availability_zone:
196           get_input: availability_zone_0
197         image:
198           get_input: cmaui_image
199         metadata:
200           vnf_id:
201             get_input: vnf_id
202         user_data_format: RAW
203         name:
204           get_input:
205           - cmaui_names
206           - 0
207       requirements:
208       - local_storage:
209           capability: tosca.capabilities.Attachment
210           node: cmaui_volume2
211           relationship: cmaui_volume_attachment3
212     server_cmaui1:
213       type: org.openecomp.resource.vfc.nodes.heat.cmaui
214       properties:
215         flavor:
216           get_input: cmaui_flavor
217         availability_zone:
218           get_input: availability_zone_0
219         image:
220           get_input: cmaui_image
221         metadata:
222           vnf_id:
223             get_input: vnf_id
224         user_data_format: RAW
225         name:
226           get_input:
227           - cmaui_names
228           - 0
229       requirements:
230       - local_storage:
231           capability: tosca.capabilities.Attachment
232           node: cmaui_volume2
233           relationship: cmaui_volume_attachment2
234     cmaui_volume1:
235       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
236       properties:
237         volume_type:
238           get_input: CMAUI_volume_type
239         size: '(get_input : cmaui_cinder_volume_size) * 1024'
240     server_cmaui21:
241       type: org.openecomp.resource.vfc.nodes.heat.cmaui
242       properties:
243         flavor:
244           get_input: cmaui_flavor
245         availability_zone:
246           get_input: availability_zone_10
247         image:
248           get_input: cmaui_image
249         metadata:
250           vnf_id:
251             get_input: vnf_id
252         user_data_format: RAW
253         name:
254           get_input:
255           - cmaui_names
256           - 0
257     cmaui_volume2:
258       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
259       properties:
260         volume_type:
261           get_input: CMAUI_volume_type
262         size: '(get_input : cmaui_cinder_volume_size) * 1024'
263     cmaui_port_1:
264       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
265       properties:
266         replacement_policy: AUTO
267         security_groups:
268         - get_input: security_group_name
269         fixed_ips:
270         - ip_address:
271             get_input:
272             - cmaui_oam_ips
273             - 0
274         network:
275           get_input: oam_net_name
276       requirements:
277       - binding:
278           capability: tosca.capabilities.network.Bindable
279           node: server_cmaui1
280           relationship: tosca.relationships.network.BindsTo
281   relationship_templates:
282     cmaui_volume_attachment2:
283       type: org.openecomp.relationships.heat.cinder.VolumeAttachesTo
284       properties:
285         volume_id:
286           get_input: cmaui_volume_param2
287         instance_uuid: server_cmaui1
288     cmaui_volume_attachment3:
289       type: org.openecomp.relationships.heat.cinder.VolumeAttachesTo
290       properties:
291         volume_id:
292           get_input: cmaui_volume_param2
293         instance_uuid: server_cmaui2
294   groups:
295     addOn:
296       type: org.openecomp.groups.heat.HeatStack
297       properties:
298         heat_file: ../Artifacts/addOn.yml
299         description: cmaui server template for vMMSC
300       members:
301       - cmaui_port_2
302       - server_cmaui2
303       - server_cmaui1
304       - cmaui_port_1
305     main:
306       type: org.openecomp.groups.heat.HeatStack
307       properties:
308         heat_file: ../Artifacts/main.yml
309         description: volume
310       members:
311       - cmaui_port_11
312       - cmaui_volume1
313       - server_cmaui21
314       - cmaui_volume2