[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / heatPseudoParameters / usedFromNestedHeat / expectedoutputfiles / VSR_CPM_base_template_nestedServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: VSR_CPM_base_template_nested
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.vm:
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: VNF Module ID
19     mgt_net_id:
20       hidden: false
21       immutable: false
22       type: string
23       description: Network used by the Management interface
24     cpm_mgt_ip:
25       hidden: false
26       immutable: false
27       type: string
28       description: Fixed IP that will be used by the primary Management Interface
29     cpm_slot:
30       hidden: false
31       immutable: false
32       type: string
33       description: The slot value assigned to the module eg A and B
34     ctrl_fabric_net_id:
35       hidden: false
36       immutable: false
37       type: string
38       description: Network used by the Control Fabric interface
39     security_group:
40       hidden: false
41       immutable: false
42       type: string
43       description: Security group to be used
44     cpm_mgt_cidr:
45       hidden: false
46       immutable: false
47       type: string
48       description: Fixed IP that will be used by the secondary Management Interface
49     mgt_subnet_id:
50       hidden: false
51       immutable: false
52       type: string
53       description: Subnet used by the Management interface
54     ctrl_fabric_subnet_id:
55       hidden: false
56       immutable: false
57       type: string
58       description: Subnet used by the Control Fabric interface
59     project_id:
60       hidden: false
61       immutable: false
62       type: string
63       description: Id of the HEAT project
64     vnf_id:
65       hidden: false
66       immutable: false
67       type: string
68       description: VNF ID
69     cpm_smbios:
70       hidden: false
71       immutable: false
72       type: string
73       description: Parameters to be passed to the VM at boot up as key-value pairs
74     stack_id:
75       hidden: false
76       immutable: false
77       type: string
78       description: Id of the HEAT stack
79     availability_zone_0:
80       hidden: false
81       immutable: false
82       type: string
83       description: Availability zone where this component should be instantiated
84     cpm_image_name:
85       hidden: false
86       immutable: false
87       type: string
88       description: Image to be used for the instance
89     cpm_flavor_name:
90       hidden: false
91       immutable: false
92       type: string
93       description: Flavor of the VNF to be used
94     cpm_mtu:
95       hidden: false
96       immutable: false
97       type: string
98       description: MTU size in bytes
99     stack_name:
100       hidden: false
101       immutable: false
102       type: string
103       description: Name of the HEAT stack
104     vm_name:
105       hidden: false
106       immutable: false
107       type: string
108       description: Name of the VNF
109   node_templates:
110     CPM:
111       type: org.openecomp.resource.vfc.nodes.heat.vm
112       properties:
113         flavor:
114           get_input: cpm_flavor_name
115         availability_zone:
116           get_input: availability_zone_0
117         image:
118           get_input: cpm_image_name
119         metadata:
120           vf_module_id:
121             get_input: vf_module_id
122           vnf_id:
123             get_input: vnf_id
124         config_drive: true
125         user_data_format: RAW
126         name:
127           get_input: vm_name
128     cpm_mgt_0_port:
129       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
130       properties:
131         ip_requirements:
132         - ip_version: 4
133           ip_count_required:
134             is_required: true
135           floating_ip_count_required:
136             is_required: true
137         security_groups:
138         - get_input: security_group
139         fixed_ips:
140         - subnet_id:
141             get_input: mgt_subnet_id
142           ip_address:
143             get_input: cpm_mgt_ip
144         mac_requirements:
145           mac_count_required:
146             is_required: false
147         allowed_address_pairs:
148         - ip_address:
149             get_input: cpm_mgt_cidr
150         network_role_tag: mgt
151         network:
152           get_input: mgt_net_id
153       requirements:
154       - binding:
155           capability: tosca.capabilities.network.Bindable
156           node: CPM
157           relationship: tosca.relationships.network.BindsTo
158     cpm_ctrl_fabric_0_port:
159       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
160       properties:
161         ip_requirements:
162         - ip_version: 4
163           ip_count_required:
164             is_required: false
165           floating_ip_count_required:
166             is_required: false
167         security_groups:
168         - get_input: security_group
169         fixed_ips:
170         - subnet_id:
171             get_input: ctrl_fabric_subnet_id
172         mac_requirements:
173           mac_count_required:
174             is_required: false
175         value_specs:
176           extra_dhcp_opts:
177           - opt_name: interface-mtu
178             opt_value:
179               get_input: cpm_mtu
180         network_role_tag: ctrl_fabric
181         network:
182           get_input: ctrl_fabric_net_id
183       requirements:
184       - binding:
185           capability: tosca.capabilities.network.Bindable
186           node: CPM
187           relationship: tosca.relationships.network.BindsTo
188   groups:
189     VSR_CPM_base_template_nested_group:
190       type: org.openecomp.groups.heat.HeatStack
191       properties:
192         heat_file: ../Artifacts/VSR_CPM_base_template_nested.yaml
193       members:
194       - CPM
195       - cpm_mgt_0_port
196       - cpm_ctrl_fabric_0_port
197   substitution_mappings:
198     node_type: org.openecomp.resource.abstract.nodes.heat.VSR_CPM_base_template_nested
199     capabilities:
200       disk.device.read.bytes.rate_CPM:
201       - CPM
202       - disk.device.read.bytes.rate
203       network.incoming.packets_cpm_ctrl_fabric_0_port:
204       - cpm_ctrl_fabric_0_port
205       - network.incoming.packets
206       vcpus_CPM:
207       - CPM
208       - vcpus
209       disk.device.write.bytes.rate_CPM:
210       - CPM
211       - disk.device.write.bytes.rate
212       endpoint_CPM:
213       - CPM
214       - endpoint
215       disk.device.usage_CPM:
216       - CPM
217       - disk.device.usage
218       network.outpoing.packets_cpm_ctrl_fabric_0_port:
219       - cpm_ctrl_fabric_0_port
220       - network.outpoing.packets
221       disk.iops_CPM:
222       - CPM
223       - disk.iops
224       disk.device.allocation_CPM:
225       - CPM
226       - disk.device.allocation
227       disk.read.bytes.rate_CPM:
228       - CPM
229       - disk.read.bytes.rate
230       memory_CPM:
231       - CPM
232       - memory
233       disk.write.requests_CPM:
234       - CPM
235       - disk.write.requests
236       disk.read.requests_CPM:
237       - CPM
238       - disk.read.requests
239       network.outgoing.bytes_cpm_ctrl_fabric_0_port:
240       - cpm_ctrl_fabric_0_port
241       - network.outgoing.bytes
242       disk.write.bytes_CPM:
243       - CPM
244       - disk.write.bytes
245       disk.capacity_CPM:
246       - CPM
247       - disk.capacity
248       disk.device.capacity_CPM:
249       - CPM
250       - disk.device.capacity
251       network.outgoing.bytes.rate_cpm_ctrl_fabric_0_port:
252       - cpm_ctrl_fabric_0_port
253       - network.outgoing.bytes.rate
254       cpu_CPM:
255       - CPM
256       - cpu
257       network.incoming.packets.rate_cpm_mgt_0_port:
258       - cpm_mgt_0_port
259       - network.incoming.packets.rate
260       disk.device.latency_CPM:
261       - CPM
262       - disk.device.latency
263       feature_CPM:
264       - CPM
265       - feature
266       disk.device.read.bytes_CPM:
267       - CPM
268       - disk.device.read.bytes
269       disk.device.write.requests.rate_CPM:
270       - CPM
271       - disk.device.write.requests.rate
272       network.outgoing.packets.rate_cpm_mgt_0_port:
273       - cpm_mgt_0_port
274       - network.outgoing.packets.rate
275       network.incoming.bytes_cpm_ctrl_fabric_0_port:
276       - cpm_ctrl_fabric_0_port
277       - network.incoming.bytes
278       binding_CPM:
279       - CPM
280       - binding
281       binding_cpm_mgt_0_port:
282       - cpm_mgt_0_port
283       - binding
284       cpu_util_CPM:
285       - CPM
286       - cpu_util
287       network.incoming.bytes.rate_cpm_ctrl_fabric_0_port:
288       - cpm_ctrl_fabric_0_port
289       - network.incoming.bytes.rate
290       disk.device.read.requests_CPM:
291       - CPM
292       - disk.device.read.requests
293       disk.device.write.bytes_CPM:
294       - CPM
295       - disk.device.write.bytes
296       network.outgoing.packets.rate_cpm_ctrl_fabric_0_port:
297       - cpm_ctrl_fabric_0_port
298       - network.outgoing.packets.rate
299       disk.latency_CPM:
300       - CPM
301       - disk.latency
302       disk.usage_CPM:
303       - CPM
304       - disk.usage
305       os_CPM:
306       - CPM
307       - os
308       memory.usage_CPM:
309       - CPM
310       - memory.usage
311       network.outpoing.packets_cpm_mgt_0_port:
312       - cpm_mgt_0_port
313       - network.outpoing.packets
314       network.incoming.packets_cpm_mgt_0_port:
315       - cpm_mgt_0_port
316       - network.incoming.packets
317       feature_cpm_ctrl_fabric_0_port:
318       - cpm_ctrl_fabric_0_port
319       - feature
320       instance_CPM:
321       - CPM
322       - instance
323       binding_cpm_ctrl_fabric_0_port:
324       - cpm_ctrl_fabric_0_port
325       - binding
326       network.outgoing.bytes.rate_cpm_mgt_0_port:
327       - cpm_mgt_0_port
328       - network.outgoing.bytes.rate
329       disk.device.write.requests_CPM:
330       - CPM
331       - disk.device.write.requests
332       disk.allocation_CPM:
333       - CPM
334       - disk.allocation
335       disk.device.iops_CPM:
336       - CPM
337       - disk.device.iops
338       disk.root.size_CPM:
339       - CPM
340       - disk.root.size
341       disk.ephemeral.size_CPM:
342       - CPM
343       - disk.ephemeral.size
344       memory.resident_CPM:
345       - CPM
346       - memory.resident
347       network.incoming.bytes.rate_cpm_mgt_0_port:
348       - cpm_mgt_0_port
349       - network.incoming.bytes.rate
350       attachment_cpm_mgt_0_port:
351       - cpm_mgt_0_port
352       - attachment
353       attachment_cpm_ctrl_fabric_0_port:
354       - cpm_ctrl_fabric_0_port
355       - attachment
356       disk.write.bytes.rate_CPM:
357       - CPM
358       - disk.write.bytes.rate
359       network.incoming.bytes_cpm_mgt_0_port:
360       - cpm_mgt_0_port
361       - network.incoming.bytes
362       host_CPM:
363       - CPM
364       - host
365       feature_cpm_mgt_0_port:
366       - cpm_mgt_0_port
367       - feature
368       disk.write.requests.rate_CPM:
369       - CPM
370       - disk.write.requests.rate
371       cpu.delta_CPM:
372       - CPM
373       - cpu.delta
374       disk.read.bytes_CPM:
375       - CPM
376       - disk.read.bytes
377       network.incoming.packets.rate_cpm_ctrl_fabric_0_port:
378       - cpm_ctrl_fabric_0_port
379       - network.incoming.packets.rate
380       scalable_CPM:
381       - CPM
382       - scalable
383       network.outgoing.bytes_cpm_mgt_0_port:
384       - cpm_mgt_0_port
385       - network.outgoing.bytes
386       disk.device.read.requests.rate_CPM:
387       - CPM
388       - disk.device.read.requests.rate
389     requirements:
390       dependency_CPM:
391       - CPM
392       - dependency
393       dependency_cpm_ctrl_fabric_0_port:
394       - cpm_ctrl_fabric_0_port
395       - dependency
396       local_storage_CPM:
397       - CPM
398       - local_storage
399       dependency_cpm_mgt_0_port:
400       - cpm_mgt_0_port
401       - dependency
402       link_cpm_mgt_0_port:
403       - cpm_mgt_0_port
404       - link
405       link_cpm_ctrl_fabric_0_port:
406       - cpm_ctrl_fabric_0_port
407       - link