b384057c2aef840d59220a5cc7422a66694efba9
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: VSR_IOM_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     iom_image_name:
15       hidden: false
16       immutable: false
17       type: string
18       description: Image to be used for the instance
19     vf_module_id:
20       hidden: false
21       immutable: false
22       type: string
23       description: VNF Module ID
24     mgt_net_id:
25       hidden: false
26       immutable: false
27       type: string
28       description: Network used by the Management interface
29     data3_subnet_id:
30       hidden: false
31       immutable: false
32       type: string
33       description: Subnet used by the fourth Data interface
34     ctrl_fabric_net_id:
35       hidden: false
36       immutable: false
37       type: string
38       description: Network used by the Control Fabric interface
39     iom_flavor_name:
40       hidden: false
41       immutable: false
42       type: string
43       description: Flavor of the VNF to be used
44     security_group:
45       hidden: false
46       immutable: false
47       type: string
48       description: Security group to be used
49     iom_slot:
50       hidden: false
51       immutable: false
52       type: string
53       description: The slot value assigned to the module eg 1, 2, 3, etc
54     data0_subnet_id:
55       hidden: false
56       immutable: false
57       type: string
58       description: Subnet used by the Data interface
59     data1_net_id:
60       hidden: false
61       immutable: false
62       type: string
63       description: Network used by the second Data interface
64     mgt_subnet_id:
65       hidden: false
66       immutable: false
67       type: string
68       description: Subnet used by the Management interface
69     ctrl_fabric_subnet_id:
70       hidden: false
71       immutable: false
72       type: string
73       description: Subnet used by the Control Fabric interface
74     data0_net_id:
75       hidden: false
76       immutable: false
77       type: string
78       description: Network used by the Data interface
79     data2_net_id:
80       hidden: false
81       immutable: false
82       type: string
83       description: Network used by the third Data interface
84     iom_mtu:
85       hidden: false
86       immutable: false
87       type: string
88       description: MTU size in bytes
89     vnf_id:
90       hidden: false
91       immutable: false
92       type: string
93       description: VNF ID
94     availability_zone_0:
95       hidden: false
96       immutable: false
97       type: string
98       description: Availability zone where this component should be instantiated
99     iom_smbios:
100       hidden: false
101       immutable: false
102       type: string
103       description: Parameters to be passed to the VM at boot up as key-value pairs
104     data2_subnet_id:
105       hidden: false
106       immutable: false
107       type: string
108       description: Subnet used by the third Data interface
109     data3_net_id:
110       hidden: false
111       immutable: false
112       type: string
113       description: Network used by the fourth Data interface
114     data1_subnet_id:
115       hidden: false
116       immutable: false
117       type: string
118       description: Subnet used by the second Data interface
119     stack_name:
120       hidden: false
121       immutable: false
122       type: string
123       description: Name of the HEAT stack
124     vm_name:
125       hidden: false
126       immutable: false
127       type: string
128       description: Name of the VM
129   node_templates:
130     iom_data_1_port:
131       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
132       properties:
133         ip_requirements:
134         - ip_version: 4
135           ip_count_required:
136             is_required: false
137           floating_ip_count_required:
138             is_required: false
139         security_groups:
140         - get_input: security_group
141         mac_requirements:
142           mac_count_required:
143             is_required: false
144         binding:vnic_type: direct
145         value_specs:
146           extra_dhcp_opts:
147           - opt_name: interface-mtu
148             opt_value:
149               get_input: iom_mtu
150         network_role_tag: data1
151         network:
152           get_input: data1_net_id
153       requirements:
154       - binding:
155           capability: tosca.capabilities.network.Bindable
156           node: IOM
157           relationship: tosca.relationships.network.BindsTo
158     iom_data_2_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         mac_requirements:
170           mac_count_required:
171             is_required: false
172         binding:vnic_type: direct
173         value_specs:
174           extra_dhcp_opts:
175           - opt_name: interface-mtu
176             opt_value:
177               get_input: iom_mtu
178         network_role_tag: data2
179         network:
180           get_input: data2_net_id
181       requirements:
182       - binding:
183           capability: tosca.capabilities.network.Bindable
184           node: IOM
185           relationship: tosca.relationships.network.BindsTo
186     IOM:
187       type: org.openecomp.resource.vfc.nodes.heat.vm
188       properties:
189         flavor:
190           get_input: iom_flavor_name
191         availability_zone:
192           get_input: availability_zone_0
193         image:
194           get_input: iom_image_name
195         metadata:
196           vf_module_id:
197             get_input: vf_module_id
198           vnf_id:
199             get_input: vnf_id
200         config_drive: true
201         user_data_format: RAW
202         name:
203           get_input: vm_name
204     iom_data_0_port:
205       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
206       properties:
207         ip_requirements:
208         - ip_version: 4
209           ip_count_required:
210             is_required: false
211           floating_ip_count_required:
212             is_required: false
213         security_groups:
214         - get_input: security_group
215         mac_requirements:
216           mac_count_required:
217             is_required: false
218         binding:vnic_type: direct
219         value_specs:
220           extra_dhcp_opts:
221           - opt_name: interface-mtu
222             opt_value:
223               get_input: iom_mtu
224         network_role_tag: data0
225         network:
226           get_input: data0_net_id
227       requirements:
228       - binding:
229           capability: tosca.capabilities.network.Bindable
230           node: IOM
231           relationship: tosca.relationships.network.BindsTo
232     iom_ctrl_fabric_0_port:
233       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
234       properties:
235         ip_requirements:
236         - ip_version: 4
237           ip_count_required:
238             is_required: false
239           floating_ip_count_required:
240             is_required: false
241         security_groups:
242         - get_input: security_group
243         fixed_ips:
244         - subnet_id:
245             get_input: ctrl_fabric_subnet_id
246         mac_requirements:
247           mac_count_required:
248             is_required: false
249         value_specs:
250           extra_dhcp_opts:
251           - opt_name: interface-mtu
252             opt_value:
253               get_input: iom_mtu
254         network_role_tag: ctrl_fabric
255         network:
256           get_input: ctrl_fabric_net_id
257       requirements:
258       - binding:
259           capability: tosca.capabilities.network.Bindable
260           node: IOM
261           relationship: tosca.relationships.network.BindsTo
262     iom_data_3_port:
263       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
264       properties:
265         ip_requirements:
266         - ip_version: 4
267           ip_count_required:
268             is_required: false
269           floating_ip_count_required:
270             is_required: false
271         security_groups:
272         - get_input: security_group
273         mac_requirements:
274           mac_count_required:
275             is_required: false
276         binding:vnic_type: direct
277         value_specs:
278           extra_dhcp_opts:
279           - opt_name: interface-mtu
280             opt_value:
281               get_input: iom_mtu
282         network_role_tag: data3
283         network:
284           get_input: data3_net_id
285       requirements:
286       - binding:
287           capability: tosca.capabilities.network.Bindable
288           node: IOM
289           relationship: tosca.relationships.network.BindsTo
290     iom_mgt_0_port:
291       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
292       properties:
293         ip_requirements:
294         - ip_version: 4
295           ip_count_required:
296             is_required: false
297           floating_ip_count_required:
298             is_required: false
299         security_groups:
300         - get_input: security_group
301         fixed_ips:
302         - subnet_id:
303             get_input: mgt_subnet_id
304         mac_requirements:
305           mac_count_required:
306             is_required: false
307         network_role_tag: mgt
308         network:
309           get_input: mgt_net_id
310       requirements:
311       - binding:
312           capability: tosca.capabilities.network.Bindable
313           node: IOM
314           relationship: tosca.relationships.network.BindsTo
315   groups:
316     VSR_IOM_template_nested_group:
317       type: org.openecomp.groups.heat.HeatStack
318       properties:
319         heat_file: ../Artifacts/VSR_IOM_template_nested.yaml
320       members:
321       - iom_data_1_port
322       - iom_data_2_port
323       - IOM
324       - iom_data_0_port
325       - iom_ctrl_fabric_0_port
326       - iom_data_3_port
327       - iom_mgt_0_port
328   substitution_mappings:
329     node_type: org.openecomp.resource.abstract.nodes.heat.VSR_IOM_template_nested
330     capabilities:
331       cpu_IOM:
332       - IOM
333       - cpu
334       feature_iom_data_0_port:
335       - iom_data_0_port
336       - feature
337       disk.device.usage_IOM:
338       - IOM
339       - disk.device.usage
340       disk.iops_IOM:
341       - IOM
342       - disk.iops
343       binding_iom_ctrl_fabric_0_port:
344       - iom_ctrl_fabric_0_port
345       - binding
346       forwarder_iom_data_0_port:
347       - iom_data_0_port
348       - forwarder
349       disk.read.bytes_IOM:
350       - IOM
351       - disk.read.bytes
352       disk.capacity_IOM:
353       - IOM
354       - disk.capacity
355       disk.device.read.bytes_IOM:
356       - IOM
357       - disk.device.read.bytes
358       feature_iom_data_1_port:
359       - iom_data_1_port
360       - feature
361       disk.usage_IOM:
362       - IOM
363       - disk.usage
364       network.incoming.bytes_iom_data_0_port:
365       - iom_data_0_port
366       - network.incoming.bytes
367       binding_IOM:
368       - IOM
369       - binding
370       disk.device.read.bytes.rate_IOM:
371       - IOM
372       - disk.device.read.bytes.rate
373       network.outgoing.bytes_iom_data_3_port:
374       - iom_data_3_port
375       - network.outgoing.bytes
376       network.outpoing.packets_iom_data_3_port:
377       - iom_data_3_port
378       - network.outpoing.packets
379       attachment_iom_data_3_port:
380       - iom_data_3_port
381       - attachment
382       instance_IOM:
383       - IOM
384       - instance
385       network.incoming.packets_iom_mgt_0_port:
386       - iom_mgt_0_port
387       - network.incoming.packets
388       disk.write.requests_IOM:
389       - IOM
390       - disk.write.requests
391       attachment_iom_data_2_port:
392       - iom_data_2_port
393       - attachment
394       network.incoming.bytes.rate_iom_data_3_port:
395       - iom_data_3_port
396       - network.incoming.bytes.rate
397       disk.ephemeral.size_IOM:
398       - IOM
399       - disk.ephemeral.size
400       binding_iom_data_3_port:
401       - iom_data_3_port
402       - binding
403       network.outgoing.bytes.rate_iom_data_2_port:
404       - iom_data_2_port
405       - network.outgoing.bytes.rate
406       disk.device.capacity_IOM:
407       - IOM
408       - disk.device.capacity
409       network.outgoing.packets.rate_iom_data_3_port:
410       - iom_data_3_port
411       - network.outgoing.packets.rate
412       disk.device.iops_IOM:
413       - IOM
414       - disk.device.iops
415       disk.write.requests.rate_IOM:
416       - IOM
417       - disk.write.requests.rate
418       forwarder_iom_data_1_port:
419       - iom_data_1_port
420       - forwarder
421       network.incoming.packets_iom_ctrl_fabric_0_port:
422       - iom_ctrl_fabric_0_port
423       - network.incoming.packets
424       network.outgoing.bytes.rate_iom_data_1_port:
425       - iom_data_1_port
426       - network.outgoing.bytes.rate
427       network.incoming.packets.rate_iom_mgt_0_port:
428       - iom_mgt_0_port
429       - network.incoming.packets.rate
430       network.incoming.bytes_iom_mgt_0_port:
431       - iom_mgt_0_port
432       - network.incoming.bytes
433       attachment_iom_mgt_0_port:
434       - iom_mgt_0_port
435       - attachment
436       network.outgoing.bytes_iom_mgt_0_port:
437       - iom_mgt_0_port
438       - network.outgoing.bytes
439       cpu.delta_IOM:
440       - IOM
441       - cpu.delta
442       network.outgoing.bytes_iom_ctrl_fabric_0_port:
443       - iom_ctrl_fabric_0_port
444       - network.outgoing.bytes
445       disk.write.bytes_IOM:
446       - IOM
447       - disk.write.bytes
448       disk.device.write.bytes_IOM:
449       - IOM
450       - disk.device.write.bytes
451       network.incoming.packets.rate_iom_data_1_port:
452       - iom_data_1_port
453       - network.incoming.packets.rate
454       disk.read.requests_IOM:
455       - IOM
456       - disk.read.requests
457       vcpus_IOM:
458       - IOM
459       - vcpus
460       network.incoming.bytes_iom_data_2_port:
461       - iom_data_2_port
462       - network.incoming.bytes
463       endpoint_IOM:
464       - IOM
465       - endpoint
466       disk.device.read.requests_IOM:
467       - IOM
468       - disk.device.read.requests
469       disk.latency_IOM:
470       - IOM
471       - disk.latency
472       memory.resident_IOM:
473       - IOM
474       - memory.resident
475       network.incoming.packets_iom_data_1_port:
476       - iom_data_1_port
477       - network.incoming.packets
478       disk.device.write.requests_IOM:
479       - IOM
480       - disk.device.write.requests
481       feature_iom_data_2_port:
482       - iom_data_2_port
483       - feature
484       network.outpoing.packets_iom_mgt_0_port:
485       - iom_mgt_0_port
486       - network.outpoing.packets
487       network.outgoing.bytes_iom_data_2_port:
488       - iom_data_2_port
489       - network.outgoing.bytes
490       network.outpoing.packets_iom_data_2_port:
491       - iom_data_2_port
492       - network.outpoing.packets
493       network.incoming.packets_iom_data_0_port:
494       - iom_data_0_port
495       - network.incoming.packets
496       binding_iom_data_0_port:
497       - iom_data_0_port
498       - binding
499       feature_iom_ctrl_fabric_0_port:
500       - iom_ctrl_fabric_0_port
501       - feature
502       network.outgoing.packets.rate_iom_ctrl_fabric_0_port:
503       - iom_ctrl_fabric_0_port
504       - network.outgoing.packets.rate
505       network.outgoing.packets.rate_iom_data_0_port:
506       - iom_data_0_port
507       - network.outgoing.packets.rate
508       network.incoming.packets.rate_iom_ctrl_fabric_0_port:
509       - iom_ctrl_fabric_0_port
510       - network.incoming.packets.rate
511       disk.allocation_IOM:
512       - IOM
513       - disk.allocation
514       network.incoming.packets.rate_iom_data_3_port:
515       - iom_data_3_port
516       - network.incoming.packets.rate
517       network.incoming.bytes.rate_iom_data_0_port:
518       - iom_data_0_port
519       - network.incoming.bytes.rate
520       network.incoming.bytes_iom_ctrl_fabric_0_port:
521       - iom_ctrl_fabric_0_port
522       - network.incoming.bytes
523       scalable_IOM:
524       - IOM
525       - scalable
526       network.incoming.packets.rate_iom_data_2_port:
527       - iom_data_2_port
528       - network.incoming.packets.rate
529       feature_IOM:
530       - IOM
531       - feature
532       network.incoming.bytes.rate_iom_ctrl_fabric_0_port:
533       - iom_ctrl_fabric_0_port
534       - network.incoming.bytes.rate
535       network.incoming.bytes.rate_iom_mgt_0_port:
536       - iom_mgt_0_port
537       - network.incoming.bytes.rate
538       network.outpoing.packets_iom_data_0_port:
539       - iom_data_0_port
540       - network.outpoing.packets
541       forwarder_iom_mgt_0_port:
542       - iom_mgt_0_port
543       - forwarder
544       disk.device.write.bytes.rate_IOM:
545       - IOM
546       - disk.device.write.bytes.rate
547       attachment_iom_ctrl_fabric_0_port:
548       - iom_ctrl_fabric_0_port
549       - attachment
550       network.outgoing.packets.rate_iom_data_1_port:
551       - iom_data_1_port
552       - network.outgoing.packets.rate
553       forwarder_iom_data_3_port:
554       - iom_data_3_port
555       - forwarder
556       disk.device.allocation_IOM:
557       - IOM
558       - disk.device.allocation
559       network.outgoing.bytes_iom_data_0_port:
560       - iom_data_0_port
561       - network.outgoing.bytes
562       network.incoming.bytes.rate_iom_data_1_port:
563       - iom_data_1_port
564       - network.incoming.bytes.rate
565       attachment_iom_data_0_port:
566       - iom_data_0_port
567       - attachment
568       network.incoming.packets_iom_data_2_port:
569       - iom_data_2_port
570       - network.incoming.packets
571       network.incoming.bytes_iom_data_3_port:
572       - iom_data_3_port
573       - network.incoming.bytes
574       binding_iom_data_1_port:
575       - iom_data_1_port
576       - binding
577       network.incoming.packets_iom_data_3_port:
578       - iom_data_3_port
579       - network.incoming.packets
580       network.outgoing.bytes_iom_data_1_port:
581       - iom_data_1_port
582       - network.outgoing.bytes
583       network.incoming.packets.rate_iom_data_0_port:
584       - iom_data_0_port
585       - network.incoming.packets.rate
586       network.outgoing.bytes.rate_iom_mgt_0_port:
587       - iom_mgt_0_port
588       - network.outgoing.bytes.rate
589       host_IOM:
590       - IOM
591       - host
592       feature_iom_data_3_port:
593       - iom_data_3_port
594       - feature
595       feature_iom_mgt_0_port:
596       - iom_mgt_0_port
597       - feature
598       binding_iom_data_2_port:
599       - iom_data_2_port
600       - binding
601       network.outpoing.packets_iom_data_1_port:
602       - iom_data_1_port
603       - network.outpoing.packets
604       network.outgoing.packets.rate_iom_data_2_port:
605       - iom_data_2_port
606       - network.outgoing.packets.rate
607       disk.device.latency_IOM:
608       - IOM
609       - disk.device.latency
610       network.incoming.bytes.rate_iom_data_2_port:
611       - iom_data_2_port
612       - network.incoming.bytes.rate
613       disk.device.write.requests.rate_IOM:
614       - IOM
615       - disk.device.write.requests.rate
616       forwarder_iom_ctrl_fabric_0_port:
617       - iom_ctrl_fabric_0_port
618       - forwarder
619       network.incoming.bytes_iom_data_1_port:
620       - iom_data_1_port
621       - network.incoming.bytes
622       disk.write.bytes.rate_IOM:
623       - IOM
624       - disk.write.bytes.rate
625       cpu_util_IOM:
626       - IOM
627       - cpu_util
628       network.outpoing.packets_iom_ctrl_fabric_0_port:
629       - iom_ctrl_fabric_0_port
630       - network.outpoing.packets
631       disk.device.read.requests.rate_IOM:
632       - IOM
633       - disk.device.read.requests.rate
634       os_IOM:
635       - IOM
636       - os
637       memory.usage_IOM:
638       - IOM
639       - memory.usage
640       attachment_iom_data_1_port:
641       - iom_data_1_port
642       - attachment
643       disk.read.bytes.rate_IOM:
644       - IOM
645       - disk.read.bytes.rate
646       network.outgoing.bytes.rate_iom_ctrl_fabric_0_port:
647       - iom_ctrl_fabric_0_port
648       - network.outgoing.bytes.rate
649       network.outgoing.packets.rate_iom_mgt_0_port:
650       - iom_mgt_0_port
651       - network.outgoing.packets.rate
652       binding_iom_mgt_0_port:
653       - iom_mgt_0_port
654       - binding
655       network.outgoing.bytes.rate_iom_data_3_port:
656       - iom_data_3_port
657       - network.outgoing.bytes.rate
658       forwarder_iom_data_2_port:
659       - iom_data_2_port
660       - forwarder
661       memory_IOM:
662       - IOM
663       - memory
664       disk.root.size_IOM:
665       - IOM
666       - disk.root.size
667       network.outgoing.bytes.rate_iom_data_0_port:
668       - iom_data_0_port
669       - network.outgoing.bytes.rate
670     requirements:
671       link_iom_data_2_port:
672       - iom_data_2_port
673       - link
674       dependency_iom_mgt_0_port:
675       - iom_mgt_0_port
676       - dependency
677       dependency_iom_data_3_port:
678       - iom_data_3_port
679       - dependency
680       dependency_IOM:
681       - IOM
682       - dependency
683       dependency_iom_data_0_port:
684       - iom_data_0_port
685       - dependency
686       dependency_iom_ctrl_fabric_0_port:
687       - iom_ctrl_fabric_0_port
688       - dependency
689       dependency_iom_data_2_port:
690       - iom_data_2_port
691       - dependency
692       link_iom_mgt_0_port:
693       - iom_mgt_0_port
694       - link
695       link_iom_ctrl_fabric_0_port:
696       - iom_ctrl_fabric_0_port
697       - link
698       dependency_iom_data_1_port:
699       - iom_data_1_port
700       - dependency
701       link_iom_data_1_port:
702       - iom_data_1_port
703       - link
704       link_iom_data_0_port:
705       - iom_data_0_port
706       - link
707       link_iom_data_3_port:
708       - iom_data_3_port
709       - link
710       local_storage_IOM:
711       - IOM
712       - local_storage