[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 / resource_group / 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     vnfci:
122       type: org.openecomp.resource.vfc.nodes.heat.vnfci
123       properties:
124         flavor:
125           get_input: flavor
126         key_name:
127           get_input: key_name
128         availability_zone:
129           Fn::Select:
130           - get_input: indx
131           - get_input:
132             - availability_zone_0
133         name:
134           str_replace:
135             template: Z$CLOUD_ZONE_ID$VF_NAME$VF_INSTANCE_NUM$VF_COMPONENT$VM_INSTANCE_NUM
136             params:
137               $VF_NAME:
138                 get_input: vf_name
139               $CLOUD_ZONE_ID:
140                 get_input: cloud_zone_id
141               $VM_INSTANCE_NUM:
142                 Fn::Select:
143                 - get_input: indx
144                 - get_input:
145                   - vm_instance_num
146               $VF_COMPONENT:
147                 get_input: vf_component
148               $VF_INSTANCE_NUM:
149                 get_input: vf_instance_num
150     mgmt_port:
151       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
152       properties:
153         ip_requirements:
154         - ip_version: 4
155           ip_count_required:
156             is_required: false
157           floating_ip_count_required:
158             is_required: true
159         security_groups:
160         - get_input: sec_groups
161         fixed_ips:
162         - ip_address:
163             Fn::Select:
164             - get_input: indx
165             - get_input:
166               - get_input: mvs_mgmt_ip_0
167         mac_requirements:
168           mac_count_required:
169             is_required: false
170         allowed_address_pairs:
171         - ip_address:
172             get_input: virtual_mgmt_ip_0
173         name:
174           str_replace:
175             template: Z$CLOUD_ZONE_ID$VF_NAME$VF_INSTANCE_NUM$VF_COMPONENT$VM_INSTANCE_NUM-mgmt-port
176             params:
177               $VF_NAME:
178                 get_input: vf_name
179               $CLOUD_ZONE_ID:
180                 get_input: cloud_zone_id
181               $VM_INSTANCE_NUM:
182                 Fn::Select:
183                 - get_input: indx
184                 - get_input:
185                   - vm_instance_num
186               $VF_COMPONENT:
187                 get_input: vf_component
188               $VF_INSTANCE_NUM:
189                 get_input: vf_instance_num
190         network_role_tag: mgmt
191         network:
192           get_input: mgmt_net_id
193       requirements:
194       - binding:
195           capability: tosca.capabilities.network.Bindable
196           node: vnfci
197           relationship: tosca.relationships.network.BindsTo
198   groups:
199     mvs.nested.heat_group:
200       type: org.openecomp.groups.heat.HeatStack
201       properties:
202         heat_file: ../Artifacts/mvs.nested.heat.yaml
203         description: |
204           Metaswitch MVS (Metaview Server)
205       members:
206       - vnfci
207       - mgmt_port
208   outputs:
209     vnfci_id_2:
210       value: vnfci
211     vnfci_id_1:
212       value: vnfci
213   substitution_mappings:
214     node_type: org.openecomp.resource.abstract.nodes.heat.mvs.nested.heat
215     capabilities:
216       disk.ephemeral.size_vnfci:
217       - vnfci
218       - disk.ephemeral.size
219       disk.iops_vnfci:
220       - vnfci
221       - disk.iops
222       network.outgoing.bytes.rate_mgmt_port:
223       - mgmt_port
224       - network.outgoing.bytes.rate
225       disk.device.write.bytes_vnfci:
226       - vnfci
227       - disk.device.write.bytes
228       disk.device.iops_vnfci:
229       - vnfci
230       - disk.device.iops
231       cpu_util_vnfci:
232       - vnfci
233       - cpu_util
234       disk.write.bytes.rate_vnfci:
235       - vnfci
236       - disk.write.bytes.rate
237       disk.device.latency_vnfci:
238       - vnfci
239       - disk.device.latency
240       disk.latency_vnfci:
241       - vnfci
242       - disk.latency
243       disk.write.requests_vnfci:
244       - vnfci
245       - disk.write.requests
246       network.outpoing.packets_mgmt_port:
247       - mgmt_port
248       - network.outpoing.packets
249       memory.resident_vnfci:
250       - vnfci
251       - memory.resident
252       os_vnfci:
253       - vnfci
254       - os
255       memory.usage_vnfci:
256       - vnfci
257       - memory.usage
258       attachment_mgmt_port:
259       - mgmt_port
260       - attachment
261       disk.device.write.bytes.rate_vnfci:
262       - vnfci
263       - disk.device.write.bytes.rate
264       disk.root.size_vnfci:
265       - vnfci
266       - disk.root.size
267       disk.device.usage_vnfci:
268       - vnfci
269       - disk.device.usage
270       disk.read.bytes_vnfci:
271       - vnfci
272       - disk.read.bytes
273       disk.device.read.bytes.rate_vnfci:
274       - vnfci
275       - disk.device.read.bytes.rate
276       disk.read.bytes.rate_vnfci:
277       - vnfci
278       - disk.read.bytes.rate
279       cpu_vnfci:
280       - vnfci
281       - cpu
282       disk.device.write.requests.rate_vnfci:
283       - vnfci
284       - disk.device.write.requests.rate
285       network.incoming.bytes_mgmt_port:
286       - mgmt_port
287       - network.incoming.bytes
288       disk.capacity_vnfci:
289       - vnfci
290       - disk.capacity
291       disk.device.read.requests_vnfci:
292       - vnfci
293       - disk.device.read.requests
294       binding_mgmt_port:
295       - mgmt_port
296       - binding
297       network.outgoing.bytes_mgmt_port:
298       - mgmt_port
299       - network.outgoing.bytes
300       network.incoming.packets_mgmt_port:
301       - mgmt_port
302       - network.incoming.packets
303       instance_vnfci:
304       - vnfci
305       - instance
306       feature_mgmt_port:
307       - mgmt_port
308       - feature
309       disk.device.read.bytes_vnfci:
310       - vnfci
311       - disk.device.read.bytes
312       disk.allocation_vnfci:
313       - vnfci
314       - disk.allocation
315       disk.write.requests.rate_vnfci:
316       - vnfci
317       - disk.write.requests.rate
318       disk.write.bytes_vnfci:
319       - vnfci
320       - disk.write.bytes
321       disk.device.write.requests_vnfci:
322       - vnfci
323       - disk.device.write.requests
324       disk.usage_vnfci:
325       - vnfci
326       - disk.usage
327       network.incoming.packets.rate_mgmt_port:
328       - mgmt_port
329       - network.incoming.packets.rate
330       feature_vnfci:
331       - vnfci
332       - feature
333       memory_vnfci:
334       - vnfci
335       - memory
336       endpoint_vnfci:
337       - vnfci
338       - endpoint
339       binding_vnfci:
340       - vnfci
341       - binding
342       scalable_vnfci:
343       - vnfci
344       - scalable
345       disk.device.capacity_vnfci:
346       - vnfci
347       - disk.device.capacity
348       network.outgoing.packets.rate_mgmt_port:
349       - mgmt_port
350       - network.outgoing.packets.rate
351       vcpus_vnfci:
352       - vnfci
353       - vcpus
354       cpu.delta_vnfci:
355       - vnfci
356       - cpu.delta
357       host_vnfci:
358       - vnfci
359       - host
360       disk.device.allocation_vnfci:
361       - vnfci
362       - disk.device.allocation
363       network.incoming.bytes.rate_mgmt_port:
364       - mgmt_port
365       - network.incoming.bytes.rate
366       disk.read.requests_vnfci:
367       - vnfci
368       - disk.read.requests
369       disk.device.read.requests.rate_vnfci:
370       - vnfci
371       - disk.device.read.requests.rate
372     requirements:
373       dependency_mgmt_port:
374       - mgmt_port
375       - dependency
376       dependency_vnfci:
377       - vnfci
378       - dependency
379       local_storage_vnfci:
380       - vnfci
381       - local_storage
382       link_mgmt_port:
383       - mgmt_port
384       - link