3dd1ec41cd423ff4587628a8bad4682032730df4
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: FEAdd_On_Module_vLBTemplate
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.vLB:
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     packet_mirror_network:
19       hidden: false
20       immutable: false
21       type: string
22     oam_private_net_name:
23       hidden: false
24       immutable: false
25       type: string
26     vProbe_cluster_name:
27       hidden: false
28       immutable: false
29       type: string
30     vLB_version_name:
31       hidden: false
32       immutable: false
33       type: string
34     vf_module_name:
35       hidden: false
36       immutable: false
37       type: string
38     vLB_node_count:
39       hidden: false
40       immutable: false
41       type: float
42     domain_name:
43       hidden: false
44       immutable: false
45       type: string
46     ntp_timezone:
47       hidden: false
48       immutable: false
49       type: string
50     packet_internal_network:
51       hidden: false
52       immutable: false
53       type: string
54     vnf_id:
55       hidden: false
56       immutable: false
57       type: string
58     vLB_type:
59       hidden: false
60       immutable: false
61       type: string
62     availability_zone_0:
63       hidden: false
64       immutable: false
65       type: string
66     region_name:
67       hidden: false
68       immutable: false
69       type: string
70     manager_name_0:
71       hidden: false
72       immutable: false
73       type: string
74     vLB_cluster_name:
75       hidden: false
76       immutable: false
77       type: string
78     tenant_name:
79       hidden: false
80       immutable: false
81       type: string
82     vLB_names:
83       hidden: false
84       immutable: false
85       type: list
86       entry_schema:
87         type: string
88     vLB_index:
89       hidden: false
90       immutable: false
91       type: float
92     security_group:
93       hidden: false
94       immutable: false
95       type: string
96     vLB_volume_name_2:
97       hidden: false
98       immutable: false
99       type: string
100     vLB_volume_name_0:
101       hidden: false
102       immutable: false
103       type: string
104     vLB_volume_type_1:
105       hidden: false
106       immutable: false
107       type: string
108     vLB_flavor_name:
109       hidden: false
110       immutable: false
111       type: string
112     vLB_volume_name_1:
113       hidden: false
114       immutable: false
115       type: string
116     vLB_volume_type_2:
117       hidden: false
118       immutable: false
119       type: string
120     vLB_volume_type_0:
121       hidden: false
122       immutable: false
123       type: string
124     vLB_volume_size_1:
125       hidden: false
126       immutable: false
127       type: float
128     vlb_image_name:
129       hidden: false
130       immutable: false
131       type: string
132     vLB_volume_size_0:
133       hidden: false
134       immutable: false
135       type: float
136     manager_oam_direct_ip_0:
137       hidden: false
138       immutable: false
139       type: string
140     rpmrepository_ip_0:
141       hidden: false
142       immutable: false
143       type: string
144     vLB_volume_size_2:
145       hidden: false
146       immutable: false
147       type: float
148   node_templates:
149     packet_internal_network_port_2:
150       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
151       properties:
152         ip_requirements:
153         - ip_version: 4
154           ip_count_required:
155             is_required: false
156           floating_ip_count_required:
157             is_required: false
158         - ip_version: 6
159           ip_count_required:
160             is_required: false
161           floating_ip_count_required:
162             is_required: false
163         security_groups:
164         - get_input: security_group
165         mac_requirements:
166           mac_count_required:
167             is_required: false
168         network:
169           get_input: packet_internal_network
170       requirements:
171       - binding:
172           capability: tosca.capabilities.network.Bindable
173           node: vLBInstance
174           relationship: tosca.relationships.network.BindsTo
175     oam_private_net_network_port_2:
176       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
177       properties:
178         ip_requirements:
179         - ip_version: 4
180           ip_count_required:
181             is_required: false
182           floating_ip_count_required:
183             is_required: false
184         - ip_version: 6
185           ip_count_required:
186             is_required: false
187           floating_ip_count_required:
188             is_required: false
189         security_groups:
190         - get_input: security_group
191         mac_requirements:
192           mac_count_required:
193             is_required: false
194         network_role_tag: oam_private
195         network:
196           get_input: oam_private_net_name
197       requirements:
198       - binding:
199           capability: tosca.capabilities.network.Bindable
200           node: vLBInstance
201           relationship: tosca.relationships.network.BindsTo
202     packet_mirror_network_port:
203       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
204       properties:
205         ip_requirements:
206         - ip_version: 4
207           ip_count_required:
208             is_required: false
209           floating_ip_count_required:
210             is_required: false
211         - ip_version: 6
212           ip_count_required:
213             is_required: false
214           floating_ip_count_required:
215             is_required: false
216         security_groups:
217         - get_input: security_group
218         mac_requirements:
219           mac_count_required:
220             is_required: false
221         network:
222           get_input: packet_mirror_network
223       requirements:
224       - binding:
225           capability: tosca.capabilities.network.Bindable
226           node: vLBInstance
227           relationship: tosca.relationships.network.BindsTo
228     vLB_volume_1:
229       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
230       properties:
231         volume_type:
232           get_input: vLB_volume_type_1
233         size: '(get_input : vLB_volume_size_1) * 1024'
234     vLB_volume_0:
235       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
236       properties:
237         volume_type:
238           get_input: vLB_volume_type_0
239         size: '(get_input : vLB_volume_size_0) * 1024'
240     vLB_volume_2:
241       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
242       properties:
243         volume_type:
244           get_input: vLB_volume_type_2
245         size: '(get_input : vLB_volume_size_2) * 1024'
246     vLBInstance:
247       type: org.openecomp.resource.vfc.nodes.heat.vLB
248       properties:
249         flavor:
250           get_input: vLB_flavor_name
251         availability_zone:
252           get_input: availability_zone_0
253         image:
254           get_input: vlb_image_name
255         metadata:
256           vf_module_id:
257             get_input: vf_module_id
258           packet_mirror_network_cidr:
259             get_attribute:
260             - packet_mirror_network_port
261             - subnets
262             - 0
263             - cidr
264           packet_internal_network_ip_0:
265           - UNSUPPORTED_ATTRIBUTE_packet_internal_network_port_2.fixed_ip_0s
266           version_number:
267             get_input: vLB_version_name
268           machine_name:
269             get_input:
270             - vLB_names
271             - get_input: vLB_index
272           vf_module_name:
273             get_input: vf_module_name
274           ntp_timezone:
275             get_input: ntp_timezone
276           vnf_id:
277             get_input: vnf_id
278           mount_colon__slash_log: vLB_volume_1
279           mount_colon__slash_config: vLB_volume_2
280           oam_private_network_cidr:
281             get_attribute:
282             - oam_private_net_network_port_2
283             - subnets
284             - 0
285             - cidr
286           tenant:
287             get_input: tenant_name
288           machine_type: vLB
289           cluster_name:
290             get_input: vLB_cluster_name
291           repo_ip_0:
292             get_input: rpmrepository_ip_0
293           mount_colon__slash_data: vLB_volume_0
294           vLBAgentInstance:
295             get_input: vLB_index
296           vLBAgent_id:
297           - UNSUPPORTED_RESOURCE_vLB_id
298           vLBAgent_version_name:
299             get_input: vLB_version_name
300           packet_internal_network_cidr:
301             get_attribute:
302             - packet_internal_network_port_2
303             - subnets
304             - 0
305             - cidr
306           vLBAgent_type:
307             get_input: vLB_type
308           DPDK: DPDK_IP
309           oam_private_network_ip_0:
310           - UNSUPPORTED_ATTRIBUTE_oam_private_net_network_port_2.fixed_ip_0s
311           packet_mirror_network_ip_0:
312           - UNSUPPORTED_ATTRIBUTE_packet_mirror_network_port.fixed_ip_0s
313           vLBAgent_name:
314             get_input:
315             - vLB_names
316             - get_input: vLB_index
317           region:
318             get_input: region_name
319           manager_oam_direct_ip_0:
320             get_input: manager_oam_direct_ip_0
321         config_drive: true
322         personality:
323           /root/RegisterStatus/register_status.py:
324             get_artifact:
325             - SELF
326             - register_status
327           /root/CheckAvailability/check_availability.py:
328             get_artifact:
329             - SELF
330             - check_availability
331           /tmp/wait_for_resources.py:
332             get_artifact:
333             - SELF
334             - wait_for_resources
335           /root/call_home.py:
336             get_artifact:
337             - SELF
338             - call_home
339           /root/dependencies.json:
340             get_artifact:
341             - SELF
342             - vlbdependencies
343         user_data_format: RAW
344         name:
345           get_input:
346           - vLB_names
347           - get_input: vLB_index
348       requirements:
349       - local_storage:
350           capability: tosca.capabilities.Attachment
351           node: vLB_volume_0
352           relationship: vLB_volume_0_att
353       - local_storage:
354           capability: tosca.capabilities.Attachment
355           node: vLB_volume_1
356           relationship: vLB_volume_1_att
357       - local_storage:
358           capability: tosca.capabilities.Attachment
359           node: vLB_volume_2
360           relationship: vLB_volume_2_att
361       artifacts:
362         call_home:
363           type: tosca.artifacts.Deployment
364           file: ../Artifacts/call_home.py
365         check_availability:
366           type: tosca.artifacts.Deployment
367           file: ../Artifacts/check_availability.py
368         vlbdependencies:
369           type: tosca.artifacts.Deployment
370           file: ../Artifacts/vlbdependencies.json
371         wait_for_resources:
372           type: tosca.artifacts.Deployment
373           file: ../Artifacts/wait_for_resources.py
374         register_status:
375           type: tosca.artifacts.Deployment
376           file: ../Artifacts/register_status.py
377   relationship_templates:
378     vLB_volume_2_att:
379       type: org.openecomp.relationships.VolumeAttachesTo
380       properties:
381         volume_id: vLB_volume_2
382         instance_uuid: vLBInstance
383     vLB_volume_1_att:
384       type: org.openecomp.relationships.VolumeAttachesTo
385       properties:
386         volume_id: vLB_volume_1
387         instance_uuid: vLBInstance
388     vLB_volume_0_att:
389       type: org.openecomp.relationships.VolumeAttachesTo
390       properties:
391         volume_id: vLB_volume_0
392         instance_uuid: vLBInstance
393   groups:
394     FEAdd_On_Module_vLBTemplate_group:
395       type: org.openecomp.groups.heat.HeatStack
396       properties:
397         heat_file: ../Artifacts/FEAdd_On_Module_vLBTemplate.yaml
398       members:
399       - packet_internal_network_port_2
400       - oam_private_net_network_port_2
401       - packet_mirror_network_port
402       - vLB_volume_1
403       - vLB_volume_0
404       - vLB_volume_2
405       - vLBInstance
406   substitution_mappings:
407     node_type: org.openecomp.resource.abstract.nodes.heat.FEAdd_On_Module_vLBTemplate
408     capabilities:
409       disk.iops_vLBInstance:
410       - vLBInstance
411       - disk.iops
412       network.incoming.packets_packet_internal_network_port_2:
413       - packet_internal_network_port_2
414       - network.incoming.packets
415       network.outgoing.bytes.rate_oam_private_net_network_port_2:
416       - oam_private_net_network_port_2
417       - network.outgoing.bytes.rate
418       feature_vLBInstance:
419       - vLBInstance
420       - feature
421       vcpus_vLBInstance:
422       - vLBInstance
423       - vcpus
424       os_vLBInstance:
425       - vLBInstance
426       - os
427       network.outgoing.bytes.rate_packet_internal_network_port_2:
428       - packet_internal_network_port_2
429       - network.outgoing.bytes.rate
430       network.incoming.packets_oam_private_net_network_port_2:
431       - oam_private_net_network_port_2
432       - network.incoming.packets
433       disk.device.write.bytes.rate_vLBInstance:
434       - vLBInstance
435       - disk.device.write.bytes.rate
436       network.outgoing.bytes_packet_mirror_network_port:
437       - packet_mirror_network_port
438       - network.outgoing.bytes
439       network.incoming.bytes.rate_oam_private_net_network_port_2:
440       - oam_private_net_network_port_2
441       - network.incoming.bytes.rate
442       disk.write.bytes.rate_vLBInstance:
443       - vLBInstance
444       - disk.write.bytes.rate
445       feature_oam_private_net_network_port_2:
446       - oam_private_net_network_port_2
447       - feature
448       network.outgoing.bytes_packet_internal_network_port_2:
449       - packet_internal_network_port_2
450       - network.outgoing.bytes
451       network.incoming.packets.rate_packet_internal_network_port_2:
452       - packet_internal_network_port_2
453       - network.incoming.packets.rate
454       memory.usage_vLBInstance:
455       - vLBInstance
456       - memory.usage
457       host_vLBInstance:
458       - vLBInstance
459       - host
460       network.outgoing.bytes.rate_packet_mirror_network_port:
461       - packet_mirror_network_port
462       - network.outgoing.bytes.rate
463       network.outpoing.packets_packet_internal_network_port_2:
464       - packet_internal_network_port_2
465       - network.outpoing.packets
466       disk.device.capacity_vLBInstance:
467       - vLBInstance
468       - disk.device.capacity
469       network.outpoing.packets_oam_private_net_network_port_2:
470       - oam_private_net_network_port_2
471       - network.outpoing.packets
472       network.incoming.packets.rate_oam_private_net_network_port_2:
473       - oam_private_net_network_port_2
474       - network.incoming.packets.rate
475       instance_vLBInstance:
476       - vLBInstance
477       - instance
478       binding_vLBInstance:
479       - vLBInstance
480       - binding
481       binding_oam_private_net_network_port_2:
482       - oam_private_net_network_port_2
483       - binding
484       disk.device.latency_vLBInstance:
485       - vLBInstance
486       - disk.device.latency
487       network.outpoing.packets_packet_mirror_network_port:
488       - packet_mirror_network_port
489       - network.outpoing.packets
490       binding_packet_internal_network_port_2:
491       - packet_internal_network_port_2
492       - binding
493       network.incoming.bytes_packet_mirror_network_port:
494       - packet_mirror_network_port
495       - network.incoming.bytes
496       network.incoming.packets_packet_mirror_network_port:
497       - packet_mirror_network_port
498       - network.incoming.packets
499       disk.device.read.requests.rate_vLBInstance:
500       - vLBInstance
501       - disk.device.read.requests.rate
502       network.incoming.packets.rate_packet_mirror_network_port:
503       - packet_mirror_network_port
504       - network.incoming.packets.rate
505       network.outgoing.packets.rate_packet_mirror_network_port:
506       - packet_mirror_network_port
507       - network.outgoing.packets.rate
508       memory_vLBInstance:
509       - vLBInstance
510       - memory
511       network.incoming.bytes.rate_packet_internal_network_port_2:
512       - packet_internal_network_port_2
513       - network.incoming.bytes.rate
514       forwarder_packet_mirror_network_port:
515       - packet_mirror_network_port
516       - forwarder
517       cpu.delta_vLBInstance:
518       - vLBInstance
519       - cpu.delta
520       disk.write.bytes_vLBInstance:
521       - vLBInstance
522       - disk.write.bytes
523       disk.write.requests_vLBInstance:
524       - vLBInstance
525       - disk.write.requests
526       attachment_vLB_volume_2:
527       - vLB_volume_2
528       - attachment
529       disk.ephemeral.size_vLBInstance:
530       - vLBInstance
531       - disk.ephemeral.size
532       disk.device.iops_vLBInstance:
533       - vLBInstance
534       - disk.device.iops
535       disk.capacity_vLBInstance:
536       - vLBInstance
537       - disk.capacity
538       disk.device.read.bytes_vLBInstance:
539       - vLBInstance
540       - disk.device.read.bytes
541       attachment_packet_internal_network_port_2:
542       - packet_internal_network_port_2
543       - attachment
544       attachment_vLB_volume_0:
545       - vLB_volume_0
546       - attachment
547       network.outgoing.packets.rate_oam_private_net_network_port_2:
548       - oam_private_net_network_port_2
549       - network.outgoing.packets.rate
550       attachment_vLB_volume_1:
551       - vLB_volume_1
552       - attachment
553       disk.root.size_vLBInstance:
554       - vLBInstance
555       - disk.root.size
556       disk.allocation_vLBInstance:
557       - vLBInstance
558       - disk.allocation
559       memory.resident_vLBInstance:
560       - vLBInstance
561       - memory.resident
562       disk.write.requests.rate_vLBInstance:
563       - vLBInstance
564       - disk.write.requests.rate
565       disk.device.write.requests_vLBInstance:
566       - vLBInstance
567       - disk.device.write.requests
568       network.outgoing.packets.rate_packet_internal_network_port_2:
569       - packet_internal_network_port_2
570       - network.outgoing.packets.rate
571       attachment_oam_private_net_network_port_2:
572       - oam_private_net_network_port_2
573       - attachment
574       attachment_packet_mirror_network_port:
575       - packet_mirror_network_port
576       - attachment
577       disk.read.requests_vLBInstance:
578       - vLBInstance
579       - disk.read.requests
580       disk.device.read.requests_vLBInstance:
581       - vLBInstance
582       - disk.device.read.requests
583       disk.latency_vLBInstance:
584       - vLBInstance
585       - disk.latency
586       network.incoming.bytes_packet_internal_network_port_2:
587       - packet_internal_network_port_2
588       - network.incoming.bytes
589       feature_packet_mirror_network_port:
590       - packet_mirror_network_port
591       - feature
592       feature_packet_internal_network_port_2:
593       - packet_internal_network_port_2
594       - feature
595       binding_packet_mirror_network_port:
596       - packet_mirror_network_port
597       - binding
598       network.outgoing.bytes_oam_private_net_network_port_2:
599       - oam_private_net_network_port_2
600       - network.outgoing.bytes
601       network.incoming.bytes_oam_private_net_network_port_2:
602       - oam_private_net_network_port_2
603       - network.incoming.bytes
604       network.incoming.bytes.rate_packet_mirror_network_port:
605       - packet_mirror_network_port
606       - network.incoming.bytes.rate
607       disk.device.write.requests.rate_vLBInstance:
608       - vLBInstance
609       - disk.device.write.requests.rate
610       forwarder_packet_internal_network_port_2:
611       - packet_internal_network_port_2
612       - forwarder
613       forwarder_oam_private_net_network_port_2:
614       - oam_private_net_network_port_2
615       - forwarder
616       disk.read.bytes_vLBInstance:
617       - vLBInstance
618       - disk.read.bytes
619       scalable_vLBInstance:
620       - vLBInstance
621       - scalable
622       disk.device.read.bytes.rate_vLBInstance:
623       - vLBInstance
624       - disk.device.read.bytes.rate
625       disk.read.bytes.rate_vLBInstance:
626       - vLBInstance
627       - disk.read.bytes.rate
628       disk.device.write.bytes_vLBInstance:
629       - vLBInstance
630       - disk.device.write.bytes
631       feature_vLB_volume_1:
632       - vLB_volume_1
633       - feature
634       cpu_vLBInstance:
635       - vLBInstance
636       - cpu
637       feature_vLB_volume_2:
638       - vLB_volume_2
639       - feature
640       endpoint_vLBInstance:
641       - vLBInstance
642       - endpoint
643       disk.device.allocation_vLBInstance:
644       - vLBInstance
645       - disk.device.allocation
646       disk.device.usage_vLBInstance:
647       - vLBInstance
648       - disk.device.usage
649       feature_vLB_volume_0:
650       - vLB_volume_0
651       - feature
652       disk.usage_vLBInstance:
653       - vLBInstance
654       - disk.usage
655       cpu_util_vLBInstance:
656       - vLBInstance
657       - cpu_util
658     requirements:
659       dependency_vLB_volume_0:
660       - vLB_volume_0
661       - dependency
662       dependency_vLB_volume_1:
663       - vLB_volume_1
664       - dependency
665       local_storage_vLBInstance:
666       - vLBInstance
667       - local_storage
668       dependency_oam_private_net_network_port_2:
669       - oam_private_net_network_port_2
670       - dependency
671       dependency_vLB_volume_2:
672       - vLB_volume_2
673       - dependency
674       link_oam_private_net_network_port_2:
675       - oam_private_net_network_port_2
676       - link
677       dependency_packet_internal_network_port_2:
678       - packet_internal_network_port_2
679       - dependency
680       dependency_packet_mirror_network_port:
681       - packet_mirror_network_port
682       - dependency
683       dependency_vLBInstance:
684       - vLBInstance
685       - dependency
686       link_packet_mirror_network_port:
687       - packet_mirror_network_port
688       - link
689       link_packet_internal_network_port_2:
690       - packet_internal_network_port_2
691       - link