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