[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / nested / multiple_resource_groups / expectedoutputfiles / mvs.nested.heatServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: mvs.nested.heat
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 node_types:
10   org.openecomp.resource.vfc.nodes.heat.vnfci:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     vf_module_id:
15       hidden: false
16       immutable: false
17       type: string
18       description: Unique ID for this VF_MODULE instance
19     vf_name:
20       hidden: false
21       immutable: false
22       type: string
23       description: The VF Name; defaults to VMVM for the virtual MVM VNF.
24       constraints:
25       - pattern: '[a-zA-Z0-9]+'
26       - max_length: 4
27       - min_length: 4
28     cloud_zone_id:
29       hidden: false
30       immutable: false
31       type: string
32       description: The cloud zone for this VF instance
33     vf_instance_num:
34       hidden: false
35       immutable: false
36       type: string
37       description: The number for this VF instance
38       constraints:
39       - pattern: '[0-9]+'
40       - max_length: 2
41       - min_length: 2
42     virtual_mgmt_ip_0:
43       hidden: false
44       immutable: false
45       type: string
46       description: Virtual management network ip address
47     indx:
48       hidden: false
49       immutable: false
50       type: float
51       description: Index of the current instance
52     mvs_mgmt_ip_0:
53       hidden: false
54       immutable: false
55       type: list
56       description: List of Management network IP addresses for IPv4
57       entry_schema:
58         type: string
59     flavor:
60       hidden: false
61       immutable: false
62       type: string
63       description: Server flavor
64       constraints: [
65         ]
66     key_name:
67       hidden: false
68       immutable: false
69       type: string
70       description: SSH key name
71       constraints: [
72         ]
73     vnf_id:
74       hidden: false
75       immutable: false
76       type: string
77       description: Unique ID for this VF instance
78     availability_zone_0:
79       hidden: false
80       immutable: false
81       type: list
82       description: List of Availability Zone IDs or Names
83       entry_schema:
84         type: string
85     mgmt_net_id:
86       hidden: false
87       immutable: false
88       type: string
89       description: Neutron UUID for the Management network
90       constraints: [
91         ]
92     vm_instance_num:
93       hidden: false
94       immutable: false
95       type: list
96       description: VM instance number list must be a list of three-digit numeric value
97       entry_schema:
98         type: string
99     bootimage:
100       hidden: false
101       immutable: false
102       type: string
103       description: Master bootimage volume id
104     sec_groups:
105       hidden: false
106       immutable: false
107       type: list
108       description: Security groups
109       entry_schema:
110         type: string
111     vf_component:
112       hidden: false
113       immutable: false
114       type: string
115       description: The component that this VF instance is running
116       constraints:
117       - pattern: '[a-zA-Z0-9]+'
118       - max_length: 3
119       - min_length: 3
120   node_templates:
121     boot_volume:
122       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
123       properties:
124         availability_zone:
125           Fn::Select:
126           - get_input: indx
127           - get_input:
128             - availability_zone_0
129         image:
130           get_input: bootimage
131         size: 35*1024
132         name:
133           str_replace:
134             template: Z$CLOUD_ZONE_ID$VF_NAME$VF_INSTANCE_NUM$VF_COMPONENT$VM_INSTANCE_NUM-boot-volume
135             params:
136               $VF_NAME:
137                 get_input: vf_name
138               $CLOUD_ZONE_ID:
139                 get_input: cloud_zone_id
140               $VM_INSTANCE_NUM:
141                 Fn::Select:
142                 - get_input: indx
143                 - get_input:
144                   - vm_instance_num
145               $VF_COMPONENT:
146                 get_input: vf_component
147               $VF_INSTANCE_NUM:
148                 get_input: vf_instance_num
149     vnfci:
150       type: org.openecomp.resource.vfc.nodes.heat.vnfci
151       properties:
152         flavor:
153           get_input: flavor
154         key_name:
155           get_input: key_name
156         availability_zone:
157           Fn::Select:
158           - get_input: indx
159           - get_input:
160             - availability_zone_0
161         name:
162           str_replace:
163             template: Z$CLOUD_ZONE_ID$VF_NAME$VF_INSTANCE_NUM$VF_COMPONENT$VM_INSTANCE_NUM
164             params:
165               $VF_NAME:
166                 get_input: vf_name
167               $CLOUD_ZONE_ID:
168                 get_input: cloud_zone_id
169               $VM_INSTANCE_NUM:
170                 Fn::Select:
171                 - get_input: indx
172                 - get_input:
173                   - vm_instance_num
174               $VF_COMPONENT:
175                 get_input: vf_component
176               $VF_INSTANCE_NUM:
177                 get_input: vf_instance_num
178       requirements:
179       - local_storage:
180           capability: tosca.capabilities.Attachment
181           node: boot_volume
182           relationship: tosca.relationships.AttachesTo
183       - local_storage:
184           capability: tosca.capabilities.Attachment
185           node: data_volume
186           relationship: tosca.relationships.AttachesTo
187     data_volume:
188       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
189       properties:
190         availability_zone:
191           Fn::Select:
192           - get_input: indx
193           - get_input:
194             - availability_zone_0
195         size: 265*1024
196         name:
197           str_replace:
198             template: Z$CLOUD_ZONE_ID$VF_NAME$VF_INSTANCE_NUM$VF_COMPONENT$VM_INSTANCE_NUM-data-volume
199             params:
200               $VF_NAME:
201                 get_input: vf_name
202               $CLOUD_ZONE_ID:
203                 get_input: cloud_zone_id
204               $VM_INSTANCE_NUM:
205                 Fn::Select:
206                 - get_input: indx
207                 - get_input:
208                   - vm_instance_num
209               $VF_COMPONENT:
210                 get_input: vf_component
211               $VF_INSTANCE_NUM:
212                 get_input: vf_instance_num
213     mgmt_port:
214       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
215       properties:
216         ip_requirements:
217         - ip_version: 4
218           ip_count_required:
219             is_required: false
220           floating_ip_count_required:
221             is_required: true
222         security_groups:
223         - get_input: sec_groups
224         fixed_ips:
225         - ip_address:
226             Fn::Select:
227             - get_input: indx
228             - get_input:
229               - get_input: mvs_mgmt_ip_0
230         mac_requirements:
231           mac_count_required:
232             is_required: false
233         allowed_address_pairs:
234         - ip_address:
235             get_input: virtual_mgmt_ip_0
236         name:
237           str_replace:
238             template: Z$CLOUD_ZONE_ID$VF_NAME$VF_INSTANCE_NUM$VF_COMPONENT$VM_INSTANCE_NUM-mgmt-port
239             params:
240               $VF_NAME:
241                 get_input: vf_name
242               $CLOUD_ZONE_ID:
243                 get_input: cloud_zone_id
244               $VM_INSTANCE_NUM:
245                 Fn::Select:
246                 - get_input: indx
247                 - get_input:
248                   - vm_instance_num
249               $VF_COMPONENT:
250                 get_input: vf_component
251               $VF_INSTANCE_NUM:
252                 get_input: vf_instance_num
253         network_role_tag: mgmt
254         network:
255           get_input: mgmt_net_id
256       requirements:
257       - binding:
258           capability: tosca.capabilities.network.Bindable
259           node: vnfci
260           relationship: tosca.relationships.network.BindsTo
261   groups:
262     mvs.nested.heat_group:
263       type: org.openecomp.groups.heat.HeatStack
264       properties:
265         heat_file: ../Artifacts/mvs.nested.heat.yaml
266         description: |
267           Metaswitch MVS (Metaview Server)
268       members:
269       - boot_volume
270       - vnfci
271       - data_volume
272       - mgmt_port
273   substitution_mappings:
274     node_type: org.openecomp.resource.abstract.nodes.heat.mvs.nested.heat
275     capabilities:
276       disk.ephemeral.size_vnfci:
277       - vnfci
278       - disk.ephemeral.size
279       disk.iops_vnfci:
280       - vnfci
281       - disk.iops
282       network.outgoing.bytes.rate_mgmt_port:
283       - mgmt_port
284       - network.outgoing.bytes.rate
285       disk.device.write.bytes_vnfci:
286       - vnfci
287       - disk.device.write.bytes
288       disk.device.iops_vnfci:
289       - vnfci
290       - disk.device.iops
291       cpu_util_vnfci:
292       - vnfci
293       - cpu_util
294       disk.write.bytes.rate_vnfci:
295       - vnfci
296       - disk.write.bytes.rate
297       disk.device.latency_vnfci:
298       - vnfci
299       - disk.device.latency
300       disk.latency_vnfci:
301       - vnfci
302       - disk.latency
303       disk.write.requests_vnfci:
304       - vnfci
305       - disk.write.requests
306       attachment_data_volume:
307       - data_volume
308       - attachment
309       network.outpoing.packets_mgmt_port:
310       - mgmt_port
311       - network.outpoing.packets
312       memory.resident_vnfci:
313       - vnfci
314       - memory.resident
315       os_vnfci:
316       - vnfci
317       - os
318       memory.usage_vnfci:
319       - vnfci
320       - memory.usage
321       attachment_mgmt_port:
322       - mgmt_port
323       - attachment
324       disk.device.write.bytes.rate_vnfci:
325       - vnfci
326       - disk.device.write.bytes.rate
327       attachment_boot_volume:
328       - boot_volume
329       - attachment
330       feature_data_volume:
331       - data_volume
332       - feature
333       disk.root.size_vnfci:
334       - vnfci
335       - disk.root.size
336       disk.device.usage_vnfci:
337       - vnfci
338       - disk.device.usage
339       disk.read.bytes_vnfci:
340       - vnfci
341       - disk.read.bytes
342       disk.device.read.bytes.rate_vnfci:
343       - vnfci
344       - disk.device.read.bytes.rate
345       disk.read.bytes.rate_vnfci:
346       - vnfci
347       - disk.read.bytes.rate
348       cpu_vnfci:
349       - vnfci
350       - cpu
351       disk.device.write.requests.rate_vnfci:
352       - vnfci
353       - disk.device.write.requests.rate
354       network.incoming.bytes_mgmt_port:
355       - mgmt_port
356       - network.incoming.bytes
357       disk.capacity_vnfci:
358       - vnfci
359       - disk.capacity
360       disk.device.read.requests_vnfci:
361       - vnfci
362       - disk.device.read.requests
363       binding_mgmt_port:
364       - mgmt_port
365       - binding
366       network.outgoing.bytes_mgmt_port:
367       - mgmt_port
368       - network.outgoing.bytes
369       network.incoming.packets_mgmt_port:
370       - mgmt_port
371       - network.incoming.packets
372       instance_vnfci:
373       - vnfci
374       - instance
375       feature_mgmt_port:
376       - mgmt_port
377       - feature
378       disk.device.read.bytes_vnfci:
379       - vnfci
380       - disk.device.read.bytes
381       disk.allocation_vnfci:
382       - vnfci
383       - disk.allocation
384       disk.write.requests.rate_vnfci:
385       - vnfci
386       - disk.write.requests.rate
387       disk.write.bytes_vnfci:
388       - vnfci
389       - disk.write.bytes
390       disk.device.write.requests_vnfci:
391       - vnfci
392       - disk.device.write.requests
393       disk.usage_vnfci:
394       - vnfci
395       - disk.usage
396       network.incoming.packets.rate_mgmt_port:
397       - mgmt_port
398       - network.incoming.packets.rate
399       feature_vnfci:
400       - vnfci
401       - feature
402       memory_vnfci:
403       - vnfci
404       - memory
405       endpoint_vnfci:
406       - vnfci
407       - endpoint
408       binding_vnfci:
409       - vnfci
410       - binding
411       scalable_vnfci:
412       - vnfci
413       - scalable
414       disk.device.capacity_vnfci:
415       - vnfci
416       - disk.device.capacity
417       network.outgoing.packets.rate_mgmt_port:
418       - mgmt_port
419       - network.outgoing.packets.rate
420       vcpus_vnfci:
421       - vnfci
422       - vcpus
423       cpu.delta_vnfci:
424       - vnfci
425       - cpu.delta
426       host_vnfci:
427       - vnfci
428       - host
429       disk.device.allocation_vnfci:
430       - vnfci
431       - disk.device.allocation
432       network.incoming.bytes.rate_mgmt_port:
433       - mgmt_port
434       - network.incoming.bytes.rate
435       disk.read.requests_vnfci:
436       - vnfci
437       - disk.read.requests
438       feature_boot_volume:
439       - boot_volume
440       - feature
441       disk.device.read.requests.rate_vnfci:
442       - vnfci
443       - disk.device.read.requests.rate
444     requirements:
445       dependency_mgmt_port:
446       - mgmt_port
447       - dependency
448       dependency_vnfci:
449       - vnfci
450       - dependency
451       local_storage_vnfci:
452       - vnfci
453       - local_storage
454       dependency_data_volume:
455       - data_volume
456       - dependency
457       link_mgmt_port:
458       - mgmt_port
459       - link
460       dependency_boot_volume:
461       - boot_volume
462       - dependency