e3896b2be60e8ff8b67d6d54b916c75391f0e8df
[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         security_groups:
159         - get_input: security_group
160         mac_requirements:
161           mac_count_required:
162             is_required: false
163         network:
164           get_input: packet_internal_network
165       requirements:
166       - binding:
167           capability: tosca.capabilities.network.Bindable
168           node: vLBInstance
169           relationship: tosca.relationships.network.BindsTo
170     oam_private_net_network_port_2:
171       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
172       properties:
173         ip_requirements:
174         - ip_version: 4
175           ip_count_required:
176             is_required: false
177           floating_ip_count_required:
178             is_required: false
179         security_groups:
180         - get_input: security_group
181         mac_requirements:
182           mac_count_required:
183             is_required: false
184         network_role_tag: oam_private
185         network:
186           get_input: oam_private_net_name
187       requirements:
188       - binding:
189           capability: tosca.capabilities.network.Bindable
190           node: vLBInstance
191           relationship: tosca.relationships.network.BindsTo
192     packet_mirror_network_port:
193       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
194       properties:
195         ip_requirements:
196         - ip_version: 4
197           ip_count_required:
198             is_required: false
199           floating_ip_count_required:
200             is_required: false
201         security_groups:
202         - get_input: security_group
203         mac_requirements:
204           mac_count_required:
205             is_required: false
206         network:
207           get_input: packet_mirror_network
208       requirements:
209       - binding:
210           capability: tosca.capabilities.network.Bindable
211           node: vLBInstance
212           relationship: tosca.relationships.network.BindsTo
213     vLB_volume_1:
214       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
215       properties:
216         volume_type:
217           get_input: vLB_volume_type_1
218         size: '(get_input : vLB_volume_size_1) * 1024'
219     vLB_volume_0:
220       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
221       properties:
222         volume_type:
223           get_input: vLB_volume_type_0
224         size: '(get_input : vLB_volume_size_0) * 1024'
225     vLB_volume_2:
226       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
227       properties:
228         volume_type:
229           get_input: vLB_volume_type_2
230         size: '(get_input : vLB_volume_size_2) * 1024'
231     vLBInstance:
232       type: org.openecomp.resource.vfc.nodes.heat.vLB
233       properties:
234         flavor:
235           get_input: vLB_flavor_name
236         availability_zone:
237           get_input: availability_zone_0
238         image:
239           get_input: vlb_image_name
240         metadata:
241           vf_module_id:
242             get_input: vf_module_id
243           packet_mirror_network_cidr:
244             get_attribute:
245             - packet_mirror_network_port
246             - subnets
247             - 0
248             - cidr
249           packet_internal_network_ip_0:
250           - UNSUPPORTED_ATTRIBUTE_packet_internal_network_port_2.fixed_ip_0s
251           version_number:
252             get_input: vLB_version_name
253           machine_name:
254             get_input:
255             - vLB_names
256             - get_input: vLB_index
257           vf_module_name:
258             get_input: vf_module_name
259           ntp_timezone:
260             get_input: ntp_timezone
261           vnf_id:
262             get_input: vnf_id
263           mount_colon__slash_log: vLB_volume_1
264           mount_colon__slash_config: vLB_volume_2
265           oam_private_network_cidr:
266             get_attribute:
267             - oam_private_net_network_port_2
268             - subnets
269             - 0
270             - cidr
271           tenant:
272             get_input: tenant_name
273           machine_type: vLB
274           cluster_name:
275             get_input: vLB_cluster_name
276           repo_ip_0:
277             get_input: rpmrepository_ip_0
278           mount_colon__slash_data: vLB_volume_0
279           vLBAgentInstance:
280             get_input: vLB_index
281           vLBAgent_id:
282           - UNSUPPORTED_RESOURCE_vLB_id
283           vLBAgent_version_name:
284             get_input: vLB_version_name
285           packet_internal_network_cidr:
286             get_attribute:
287             - packet_internal_network_port_2
288             - subnets
289             - 0
290             - cidr
291           vLBAgent_type:
292             get_input: vLB_type
293           DPDK: DPDK_IP
294           oam_private_network_ip_0:
295           - UNSUPPORTED_ATTRIBUTE_oam_private_net_network_port_2.fixed_ip_0s
296           packet_mirror_network_ip_0:
297           - UNSUPPORTED_ATTRIBUTE_packet_mirror_network_port.fixed_ip_0s
298           vLBAgent_name:
299             get_input:
300             - vLB_names
301             - get_input: vLB_index
302           region:
303             get_input: region_name
304           manager_oam_direct_ip_0:
305             get_input: manager_oam_direct_ip_0
306         config_drive: true
307         personality:
308           /root/RegisterStatus/register_status.py:
309             get_artifact:
310             - SELF
311             - register_status
312           /root/CheckAvailability/check_availability.py:
313             get_artifact:
314             - SELF
315             - check_availability
316           /tmp/wait_for_resources.py:
317             get_artifact:
318             - SELF
319             - wait_for_resources
320           /root/call_home.py:
321             get_artifact:
322             - SELF
323             - call_home
324           /root/dependencies.json:
325             get_artifact:
326             - SELF
327             - vlbdependencies
328         user_data_format: RAW
329         name:
330           get_input:
331           - vLB_names
332           - get_input: vLB_index
333       requirements:
334       - local_storage:
335           capability: tosca.capabilities.Attachment
336           node: vLB_volume_0
337           relationship: vLB_volume_0_att
338       - local_storage:
339           capability: tosca.capabilities.Attachment
340           node: vLB_volume_1
341           relationship: vLB_volume_1_att
342       - local_storage:
343           capability: tosca.capabilities.Attachment
344           node: vLB_volume_2
345           relationship: vLB_volume_2_att
346       artifacts:
347         call_home:
348           type: tosca.artifacts.Deployment
349           file: ../Artifacts/call_home.py
350         check_availability:
351           type: tosca.artifacts.Deployment
352           file: ../Artifacts/check_availability.py
353         vlbdependencies:
354           type: tosca.artifacts.Deployment
355           file: ../Artifacts/vlbdependencies.json
356         wait_for_resources:
357           type: tosca.artifacts.Deployment
358           file: ../Artifacts/wait_for_resources.py
359         register_status:
360           type: tosca.artifacts.Deployment
361           file: ../Artifacts/register_status.py
362   relationship_templates:
363     vLB_volume_2_att:
364       type: org.openecomp.relationships.VolumeAttachesTo
365       properties:
366         volume_id: vLB_volume_2
367         instance_uuid: vLBInstance
368     vLB_volume_1_att:
369       type: org.openecomp.relationships.VolumeAttachesTo
370       properties:
371         volume_id: vLB_volume_1
372         instance_uuid: vLBInstance
373     vLB_volume_0_att:
374       type: org.openecomp.relationships.VolumeAttachesTo
375       properties:
376         volume_id: vLB_volume_0
377         instance_uuid: vLBInstance
378   groups:
379     FEAdd_On_Module_vLBTemplate_group:
380       type: org.openecomp.groups.heat.HeatStack
381       properties:
382         heat_file: ../Artifacts/FEAdd_On_Module_vLBTemplate.yaml
383       members:
384       - packet_internal_network_port_2
385       - oam_private_net_network_port_2
386       - packet_mirror_network_port
387       - vLB_volume_1
388       - vLB_volume_0
389       - vLB_volume_2
390       - vLBInstance
391   substitution_mappings:
392     node_type: org.openecomp.resource.abstract.nodes.heat.FEAdd_On_Module_vLBTemplate
393     capabilities:
394       disk.iops_vLBInstance:
395       - vLBInstance
396       - disk.iops
397       network.incoming.packets_packet_internal_network_port_2:
398       - packet_internal_network_port_2
399       - network.incoming.packets
400       network.outgoing.bytes.rate_oam_private_net_network_port_2:
401       - oam_private_net_network_port_2
402       - network.outgoing.bytes.rate
403       feature_vLBInstance:
404       - vLBInstance
405       - feature
406       vcpus_vLBInstance:
407       - vLBInstance
408       - vcpus
409       os_vLBInstance:
410       - vLBInstance
411       - os
412       network.outgoing.bytes.rate_packet_internal_network_port_2:
413       - packet_internal_network_port_2
414       - network.outgoing.bytes.rate
415       network.incoming.packets_oam_private_net_network_port_2:
416       - oam_private_net_network_port_2
417       - network.incoming.packets
418       disk.device.write.bytes.rate_vLBInstance:
419       - vLBInstance
420       - disk.device.write.bytes.rate
421       network.outgoing.bytes_packet_mirror_network_port:
422       - packet_mirror_network_port
423       - network.outgoing.bytes
424       network.incoming.bytes.rate_oam_private_net_network_port_2:
425       - oam_private_net_network_port_2
426       - network.incoming.bytes.rate
427       disk.write.bytes.rate_vLBInstance:
428       - vLBInstance
429       - disk.write.bytes.rate
430       feature_oam_private_net_network_port_2:
431       - oam_private_net_network_port_2
432       - feature
433       network.outgoing.bytes_packet_internal_network_port_2:
434       - packet_internal_network_port_2
435       - network.outgoing.bytes
436       network.incoming.packets.rate_packet_internal_network_port_2:
437       - packet_internal_network_port_2
438       - network.incoming.packets.rate
439       memory.usage_vLBInstance:
440       - vLBInstance
441       - memory.usage
442       host_vLBInstance:
443       - vLBInstance
444       - host
445       network.outgoing.bytes.rate_packet_mirror_network_port:
446       - packet_mirror_network_port
447       - network.outgoing.bytes.rate
448       network.outpoing.packets_packet_internal_network_port_2:
449       - packet_internal_network_port_2
450       - network.outpoing.packets
451       disk.device.capacity_vLBInstance:
452       - vLBInstance
453       - disk.device.capacity
454       network.outpoing.packets_oam_private_net_network_port_2:
455       - oam_private_net_network_port_2
456       - network.outpoing.packets
457       network.incoming.packets.rate_oam_private_net_network_port_2:
458       - oam_private_net_network_port_2
459       - network.incoming.packets.rate
460       instance_vLBInstance:
461       - vLBInstance
462       - instance
463       binding_vLBInstance:
464       - vLBInstance
465       - binding
466       binding_oam_private_net_network_port_2:
467       - oam_private_net_network_port_2
468       - binding
469       disk.device.latency_vLBInstance:
470       - vLBInstance
471       - disk.device.latency
472       network.outpoing.packets_packet_mirror_network_port:
473       - packet_mirror_network_port
474       - network.outpoing.packets
475       binding_packet_internal_network_port_2:
476       - packet_internal_network_port_2
477       - binding
478       network.incoming.bytes_packet_mirror_network_port:
479       - packet_mirror_network_port
480       - network.incoming.bytes
481       network.incoming.packets_packet_mirror_network_port:
482       - packet_mirror_network_port
483       - network.incoming.packets
484       disk.device.read.requests.rate_vLBInstance:
485       - vLBInstance
486       - disk.device.read.requests.rate
487       network.incoming.packets.rate_packet_mirror_network_port:
488       - packet_mirror_network_port
489       - network.incoming.packets.rate
490       network.outgoing.packets.rate_packet_mirror_network_port:
491       - packet_mirror_network_port
492       - network.outgoing.packets.rate
493       memory_vLBInstance:
494       - vLBInstance
495       - memory
496       network.incoming.bytes.rate_packet_internal_network_port_2:
497       - packet_internal_network_port_2
498       - network.incoming.bytes.rate
499       cpu.delta_vLBInstance:
500       - vLBInstance
501       - cpu.delta
502       disk.write.bytes_vLBInstance:
503       - vLBInstance
504       - disk.write.bytes
505       disk.write.requests_vLBInstance:
506       - vLBInstance
507       - disk.write.requests
508       attachment_vLB_volume_2:
509       - vLB_volume_2
510       - attachment
511       disk.ephemeral.size_vLBInstance:
512       - vLBInstance
513       - disk.ephemeral.size
514       disk.device.iops_vLBInstance:
515       - vLBInstance
516       - disk.device.iops
517       disk.capacity_vLBInstance:
518       - vLBInstance
519       - disk.capacity
520       disk.device.read.bytes_vLBInstance:
521       - vLBInstance
522       - disk.device.read.bytes
523       attachment_packet_internal_network_port_2:
524       - packet_internal_network_port_2
525       - attachment
526       attachment_vLB_volume_0:
527       - vLB_volume_0
528       - attachment
529       network.outgoing.packets.rate_oam_private_net_network_port_2:
530       - oam_private_net_network_port_2
531       - network.outgoing.packets.rate
532       attachment_vLB_volume_1:
533       - vLB_volume_1
534       - attachment
535       disk.root.size_vLBInstance:
536       - vLBInstance
537       - disk.root.size
538       disk.allocation_vLBInstance:
539       - vLBInstance
540       - disk.allocation
541       memory.resident_vLBInstance:
542       - vLBInstance
543       - memory.resident
544       disk.write.requests.rate_vLBInstance:
545       - vLBInstance
546       - disk.write.requests.rate
547       disk.device.write.requests_vLBInstance:
548       - vLBInstance
549       - disk.device.write.requests
550       network.outgoing.packets.rate_packet_internal_network_port_2:
551       - packet_internal_network_port_2
552       - network.outgoing.packets.rate
553       attachment_oam_private_net_network_port_2:
554       - oam_private_net_network_port_2
555       - attachment
556       attachment_packet_mirror_network_port:
557       - packet_mirror_network_port
558       - attachment
559       disk.read.requests_vLBInstance:
560       - vLBInstance
561       - disk.read.requests
562       disk.device.read.requests_vLBInstance:
563       - vLBInstance
564       - disk.device.read.requests
565       disk.latency_vLBInstance:
566       - vLBInstance
567       - disk.latency
568       network.incoming.bytes_packet_internal_network_port_2:
569       - packet_internal_network_port_2
570       - network.incoming.bytes
571       feature_packet_mirror_network_port:
572       - packet_mirror_network_port
573       - feature
574       feature_packet_internal_network_port_2:
575       - packet_internal_network_port_2
576       - feature
577       binding_packet_mirror_network_port:
578       - packet_mirror_network_port
579       - binding
580       network.outgoing.bytes_oam_private_net_network_port_2:
581       - oam_private_net_network_port_2
582       - network.outgoing.bytes
583       network.incoming.bytes_oam_private_net_network_port_2:
584       - oam_private_net_network_port_2
585       - network.incoming.bytes
586       network.incoming.bytes.rate_packet_mirror_network_port:
587       - packet_mirror_network_port
588       - network.incoming.bytes.rate
589       disk.device.write.requests.rate_vLBInstance:
590       - vLBInstance
591       - disk.device.write.requests.rate
592       disk.read.bytes_vLBInstance:
593       - vLBInstance
594       - disk.read.bytes
595       scalable_vLBInstance:
596       - vLBInstance
597       - scalable
598       disk.device.read.bytes.rate_vLBInstance:
599       - vLBInstance
600       - disk.device.read.bytes.rate
601       disk.read.bytes.rate_vLBInstance:
602       - vLBInstance
603       - disk.read.bytes.rate
604       disk.device.write.bytes_vLBInstance:
605       - vLBInstance
606       - disk.device.write.bytes
607       feature_vLB_volume_1:
608       - vLB_volume_1
609       - feature
610       cpu_vLBInstance:
611       - vLBInstance
612       - cpu
613       feature_vLB_volume_2:
614       - vLB_volume_2
615       - feature
616       endpoint_vLBInstance:
617       - vLBInstance
618       - endpoint
619       disk.device.allocation_vLBInstance:
620       - vLBInstance
621       - disk.device.allocation
622       disk.device.usage_vLBInstance:
623       - vLBInstance
624       - disk.device.usage
625       feature_vLB_volume_0:
626       - vLB_volume_0
627       - feature
628       disk.usage_vLBInstance:
629       - vLBInstance
630       - disk.usage
631       cpu_util_vLBInstance:
632       - vLBInstance
633       - cpu_util
634     requirements:
635       dependency_vLB_volume_0:
636       - vLB_volume_0
637       - dependency
638       dependency_vLB_volume_1:
639       - vLB_volume_1
640       - dependency
641       local_storage_vLBInstance:
642       - vLBInstance
643       - local_storage
644       dependency_oam_private_net_network_port_2:
645       - oam_private_net_network_port_2
646       - dependency
647       dependency_vLB_volume_2:
648       - vLB_volume_2
649       - dependency
650       link_oam_private_net_network_port_2:
651       - oam_private_net_network_port_2
652       - link
653       dependency_packet_internal_network_port_2:
654       - packet_internal_network_port_2
655       - dependency
656       dependency_packet_mirror_network_port:
657       - packet_mirror_network_port
658       - dependency
659       dependency_vLBInstance:
660       - vLBInstance
661       - dependency
662       link_packet_mirror_network_port:
663       - packet_mirror_network_port
664       - link
665       link_packet_internal_network_port_2:
666       - packet_internal_network_port_2
667       - link