3673d8213b58c90df10feac8b07f304b7aa9f064
[sdc.git] /
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         - ip_version: 6
138           ip_count_required:
139             is_required: false
140           floating_ip_count_required:
141             is_required: false
142         security_groups:
143         - get_input: security_group
144         fixed_ips:
145         - subnet_id:
146             get_input: mgt_subnet_id
147           ip_address:
148             get_input: cpm_mgt_ip
149         mac_requirements:
150           mac_count_required:
151             is_required: false
152         allowed_address_pairs:
153         - ip_address:
154             get_input: cpm_mgt_cidr
155         network_role_tag: mgt
156         network:
157           get_input: mgt_net_id
158       requirements:
159       - binding:
160           capability: tosca.capabilities.network.Bindable
161           node: CPM
162           relationship: tosca.relationships.network.BindsTo
163     cpm_ctrl_fabric_0_port:
164       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
165       properties:
166         ip_requirements:
167         - ip_version: 4
168           ip_count_required:
169             is_required: false
170           floating_ip_count_required:
171             is_required: false
172         - ip_version: 6
173           ip_count_required:
174             is_required: false
175           floating_ip_count_required:
176             is_required: false
177         security_groups:
178         - get_input: security_group
179         fixed_ips:
180         - subnet_id:
181             get_input: ctrl_fabric_subnet_id
182         mac_requirements:
183           mac_count_required:
184             is_required: false
185         value_specs:
186           extra_dhcp_opts:
187           - opt_name: interface-mtu
188             opt_value:
189               get_input: cpm_mtu
190         network_role_tag: ctrl_fabric
191         network:
192           get_input: ctrl_fabric_net_id
193       requirements:
194       - binding:
195           capability: tosca.capabilities.network.Bindable
196           node: CPM
197           relationship: tosca.relationships.network.BindsTo
198   groups:
199     VSR_CPM_base_template_nested_group:
200       type: org.openecomp.groups.heat.HeatStack
201       properties:
202         heat_file: ../Artifacts/VSR_CPM_base_template_nested.yaml
203       members:
204       - CPM
205       - cpm_mgt_0_port
206       - cpm_ctrl_fabric_0_port
207   substitution_mappings:
208     node_type: org.openecomp.resource.abstract.nodes.heat.VSR_CPM_base_template_nested
209     capabilities:
210       disk.device.read.bytes.rate_CPM:
211       - CPM
212       - disk.device.read.bytes.rate
213       network.incoming.packets_cpm_ctrl_fabric_0_port:
214       - cpm_ctrl_fabric_0_port
215       - network.incoming.packets
216       vcpus_CPM:
217       - CPM
218       - vcpus
219       disk.device.write.bytes.rate_CPM:
220       - CPM
221       - disk.device.write.bytes.rate
222       endpoint_CPM:
223       - CPM
224       - endpoint
225       disk.device.usage_CPM:
226       - CPM
227       - disk.device.usage
228       network.outpoing.packets_cpm_ctrl_fabric_0_port:
229       - cpm_ctrl_fabric_0_port
230       - network.outpoing.packets
231       disk.iops_CPM:
232       - CPM
233       - disk.iops
234       disk.device.allocation_CPM:
235       - CPM
236       - disk.device.allocation
237       disk.read.bytes.rate_CPM:
238       - CPM
239       - disk.read.bytes.rate
240       memory_CPM:
241       - CPM
242       - memory
243       disk.write.requests_CPM:
244       - CPM
245       - disk.write.requests
246       disk.read.requests_CPM:
247       - CPM
248       - disk.read.requests
249       network.outgoing.bytes_cpm_ctrl_fabric_0_port:
250       - cpm_ctrl_fabric_0_port
251       - network.outgoing.bytes
252       disk.write.bytes_CPM:
253       - CPM
254       - disk.write.bytes
255       disk.capacity_CPM:
256       - CPM
257       - disk.capacity
258       disk.device.capacity_CPM:
259       - CPM
260       - disk.device.capacity
261       network.outgoing.bytes.rate_cpm_ctrl_fabric_0_port:
262       - cpm_ctrl_fabric_0_port
263       - network.outgoing.bytes.rate
264       cpu_CPM:
265       - CPM
266       - cpu
267       network.incoming.packets.rate_cpm_mgt_0_port:
268       - cpm_mgt_0_port
269       - network.incoming.packets.rate
270       disk.device.latency_CPM:
271       - CPM
272       - disk.device.latency
273       forwarder_cpm_mgt_0_port:
274       - cpm_mgt_0_port
275       - forwarder
276       feature_CPM:
277       - CPM
278       - feature
279       disk.device.read.bytes_CPM:
280       - CPM
281       - disk.device.read.bytes
282       disk.device.write.requests.rate_CPM:
283       - CPM
284       - disk.device.write.requests.rate
285       network.outgoing.packets.rate_cpm_mgt_0_port:
286       - cpm_mgt_0_port
287       - network.outgoing.packets.rate
288       network.incoming.bytes_cpm_ctrl_fabric_0_port:
289       - cpm_ctrl_fabric_0_port
290       - network.incoming.bytes
291       binding_CPM:
292       - CPM
293       - binding
294       binding_cpm_mgt_0_port:
295       - cpm_mgt_0_port
296       - binding
297       cpu_util_CPM:
298       - CPM
299       - cpu_util
300       network.incoming.bytes.rate_cpm_ctrl_fabric_0_port:
301       - cpm_ctrl_fabric_0_port
302       - network.incoming.bytes.rate
303       disk.device.read.requests_CPM:
304       - CPM
305       - disk.device.read.requests
306       disk.device.write.bytes_CPM:
307       - CPM
308       - disk.device.write.bytes
309       network.outgoing.packets.rate_cpm_ctrl_fabric_0_port:
310       - cpm_ctrl_fabric_0_port
311       - network.outgoing.packets.rate
312       disk.latency_CPM:
313       - CPM
314       - disk.latency
315       disk.usage_CPM:
316       - CPM
317       - disk.usage
318       os_CPM:
319       - CPM
320       - os
321       memory.usage_CPM:
322       - CPM
323       - memory.usage
324       network.outpoing.packets_cpm_mgt_0_port:
325       - cpm_mgt_0_port
326       - network.outpoing.packets
327       network.incoming.packets_cpm_mgt_0_port:
328       - cpm_mgt_0_port
329       - network.incoming.packets
330       forwarder_cpm_ctrl_fabric_0_port:
331       - cpm_ctrl_fabric_0_port
332       - forwarder
333       feature_cpm_ctrl_fabric_0_port:
334       - cpm_ctrl_fabric_0_port
335       - feature
336       instance_CPM:
337       - CPM
338       - instance
339       binding_cpm_ctrl_fabric_0_port:
340       - cpm_ctrl_fabric_0_port
341       - binding
342       network.outgoing.bytes.rate_cpm_mgt_0_port:
343       - cpm_mgt_0_port
344       - network.outgoing.bytes.rate
345       disk.device.write.requests_CPM:
346       - CPM
347       - disk.device.write.requests
348       disk.allocation_CPM:
349       - CPM
350       - disk.allocation
351       disk.device.iops_CPM:
352       - CPM
353       - disk.device.iops
354       disk.root.size_CPM:
355       - CPM
356       - disk.root.size
357       disk.ephemeral.size_CPM:
358       - CPM
359       - disk.ephemeral.size
360       memory.resident_CPM:
361       - CPM
362       - memory.resident
363       network.incoming.bytes.rate_cpm_mgt_0_port:
364       - cpm_mgt_0_port
365       - network.incoming.bytes.rate
366       attachment_cpm_mgt_0_port:
367       - cpm_mgt_0_port
368       - attachment
369       attachment_cpm_ctrl_fabric_0_port:
370       - cpm_ctrl_fabric_0_port
371       - attachment
372       disk.write.bytes.rate_CPM:
373       - CPM
374       - disk.write.bytes.rate
375       network.incoming.bytes_cpm_mgt_0_port:
376       - cpm_mgt_0_port
377       - network.incoming.bytes
378       host_CPM:
379       - CPM
380       - host
381       feature_cpm_mgt_0_port:
382       - cpm_mgt_0_port
383       - feature
384       disk.write.requests.rate_CPM:
385       - CPM
386       - disk.write.requests.rate
387       cpu.delta_CPM:
388       - CPM
389       - cpu.delta
390       disk.read.bytes_CPM:
391       - CPM
392       - disk.read.bytes
393       network.incoming.packets.rate_cpm_ctrl_fabric_0_port:
394       - cpm_ctrl_fabric_0_port
395       - network.incoming.packets.rate
396       scalable_CPM:
397       - CPM
398       - scalable
399       network.outgoing.bytes_cpm_mgt_0_port:
400       - cpm_mgt_0_port
401       - network.outgoing.bytes
402       disk.device.read.requests.rate_CPM:
403       - CPM
404       - disk.device.read.requests.rate
405     requirements:
406       dependency_CPM:
407       - CPM
408       - dependency
409       dependency_cpm_ctrl_fabric_0_port:
410       - cpm_ctrl_fabric_0_port
411       - dependency
412       local_storage_CPM:
413       - CPM
414       - local_storage
415       dependency_cpm_mgt_0_port:
416       - cpm_mgt_0_port
417       - dependency
418       link_cpm_mgt_0_port:
419       - cpm_mgt_0_port
420       - link
421       link_cpm_ctrl_fabric_0_port:
422       - cpm_ctrl_fabric_0_port
423       - link