13f06302f737a5519698f02138f1552a1a5754a2
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: FEAdd_On_Module_vLBAgentTemplate
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.vLBAgent:
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_agent_image_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     vLBAgent_cluster_name:
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     vLBAgent_flavor_name:
83       hidden: false
84       immutable: false
85       type: string
86     security_group:
87       hidden: false
88       immutable: false
89       type: string
90     vLBAgent_version_name:
91       hidden: false
92       immutable: false
93       type: string
94     vLBAgent_type:
95       hidden: false
96       immutable: false
97       type: string
98     vLBAgent_node_count:
99       hidden: false
100       immutable: false
101       type: float
102     vLBAgent_volume_type_0:
103       hidden: false
104       immutable: false
105       type: string
106     vLBAgent_volume_type_1:
107       hidden: false
108       immutable: false
109       type: string
110     vLBAgent_volume_size_1:
111       hidden: false
112       immutable: false
113       type: float
114     vLBAgent_volume_type_2:
115       hidden: false
116       immutable: false
117       type: string
118     vLBAgent_names:
119       hidden: false
120       immutable: false
121       type: list
122       entry_schema:
123         type: string
124     vLBAgent_volume_size_2:
125       hidden: false
126       immutable: false
127       type: float
128     vLBAgent_volume_size_0:
129       hidden: false
130       immutable: false
131       type: float
132     vLBAgent_index:
133       hidden: false
134       immutable: false
135       type: float
136     vLBAgent_volume_name_2:
137       hidden: false
138       immutable: false
139       type: string
140     vLBAgent_volume_name_1:
141       hidden: false
142       immutable: false
143       type: string
144     vLBAgent_volume_name_0:
145       hidden: false
146       immutable: false
147       type: string
148     manager_oam_direct_ip_0:
149       hidden: false
150       immutable: false
151       type: string
152     rpmrepository_ip_0:
153       hidden: false
154       immutable: false
155       type: string
156   node_templates:
157     packet_mirror_network_port_1:
158       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
159       properties:
160         ip_requirements:
161         - ip_version: 4
162           ip_count_required:
163             is_required: false
164           floating_ip_count_required:
165             is_required: false
166         security_groups:
167         - get_input: security_group
168         mac_requirements:
169           mac_count_required:
170             is_required: false
171         network:
172           get_input: packet_mirror_network
173       requirements:
174       - binding:
175           capability: tosca.capabilities.network.Bindable
176           node: vLBAgentInstance
177           relationship: tosca.relationships.network.BindsTo
178     vLBAgentInstance:
179       type: org.openecomp.resource.vfc.nodes.heat.vLBAgent
180       properties:
181         flavor:
182           get_input: vLBAgent_flavor_name
183         availability_zone:
184           get_input: availability_zone_0
185         image:
186           get_input: vlb_agent_image_name
187         metadata:
188           vf_module_id:
189             get_input: vf_module_id
190           packet_mirror_network_cidr:
191             get_attribute:
192             - packet_mirror_network_port_1
193             - subnets
194             - 0
195             - cidr
196           packet_internal_network_ip_0:
197           - UNSUPPORTED_ATTRIBUTE_packet_internal_network_port.fixed_ip_0s
198           version_number:
199             get_input: vLBAgent_version_name
200           machine_name:
201             get_input:
202             - vLBAgent_names
203             - get_input: vLBAgent_index
204           vf_module_name:
205             get_input: vf_module_name
206           vLB_node_count:
207             get_input: vLB_node_count
208           ntp_timezone:
209             get_input: ntp_timezone
210           vnf_id:
211             get_input: vnf_id
212           mount_colon__slash_log: vLBAgent_volume_1
213           mount_colon__slash_config: vLBAgent_volume_2
214           oam_private_network_cidr:
215             get_attribute:
216             - oam_private_net_network_port_3
217             - subnets
218             - 0
219             - cidr
220           tenant:
221             get_input: tenant_name
222           machine_type: vLBAgent
223           cluster_name:
224             get_input: vLBAgent_cluster_name
225           repo_ip_0:
226             get_input: rpmrepository_ip_0
227           mount_colon__slash_data: vLBAgent_volume_0
228           vLBAgentInstance:
229             get_input: vLBAgent_index
230           vLBAgent_id:
231           - UNSUPPORTED_RESOURCE_vLBAgent_id
232           vLBAgent_version_name:
233             get_input: vLBAgent_version_name
234           packet_internal_network_cidr:
235             get_attribute:
236             - packet_internal_network_port
237             - subnets
238             - 0
239             - cidr
240           vLBAgent_type:
241             get_input: vLBAgent_type
242           DPDK: DPDK_IP
243           oam_private_network_ip_0:
244           - UNSUPPORTED_ATTRIBUTE_oam_private_net_network_port_3.fixed_ip_0s
245           packet_mirror_network_ip_0:
246           - UNSUPPORTED_ATTRIBUTE_packet_mirror_network_port_1.fixed_ip_0s
247           vLBAgent_name:
248             get_input:
249             - vLBAgent_names
250             - get_input: vLBAgent_index
251           region:
252             get_input: region_name
253           manager_oam_direct_ip_0:
254             get_input: manager_oam_direct_ip_0
255         config_drive: true
256         personality:
257           /root/RegisterStatus/register_status.py:
258             get_artifact:
259             - SELF
260             - register_status
261           /root/dependencies_with_vLB.json:
262             get_artifact:
263             - SELF
264             - vlbagentdependencies_with_vLB
265           /root/CheckAvailability/check_availability.py:
266             get_artifact:
267             - SELF
268             - check_availability
269           /root/dependencies_without_vLB.json:
270             get_artifact:
271             - SELF
272             - vlbagentdependencies_without_vLB
273           /tmp/wait_for_resources.py:
274             get_artifact:
275             - SELF
276             - wait_for_resources
277           /root/call_home.py:
278             get_artifact:
279             - SELF
280             - call_home
281         user_data_format: RAW
282         name:
283           get_input:
284           - vLBAgent_names
285           - get_input: vLBAgent_index
286       requirements:
287       - local_storage:
288           capability: tosca.capabilities.Attachment
289           node: vLBAgent_volume_0
290           relationship: vLBAgent_volume_0_att
291       - local_storage:
292           capability: tosca.capabilities.Attachment
293           node: vLBAgent_volume_1
294           relationship: vLBAgent_volume_1_att
295       - local_storage:
296           capability: tosca.capabilities.Attachment
297           node: vLBAgent_volume_2
298           relationship: vLBAgent_volume_2_att
299       artifacts:
300         call_home:
301           type: tosca.artifacts.Deployment
302           file: ../Artifacts/call_home.py
303         check_availability:
304           type: tosca.artifacts.Deployment
305           file: ../Artifacts/check_availability.py
306         vlbagentdependencies_without_vLB:
307           type: tosca.artifacts.Deployment
308           file: ../Artifacts/vlbagentdependencies_without_vLB.json
309         vlbagentdependencies_with_vLB:
310           type: tosca.artifacts.Deployment
311           file: ../Artifacts/vlbagentdependencies_with_vLB.json
312         wait_for_resources:
313           type: tosca.artifacts.Deployment
314           file: ../Artifacts/wait_for_resources.py
315         register_status:
316           type: tosca.artifacts.Deployment
317           file: ../Artifacts/register_status.py
318     vLBAgent_volume_0:
319       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
320       properties:
321         volume_type:
322           get_input: vLBAgent_volume_type_0
323         size: '(get_input : vLBAgent_volume_size_0) * 1024'
324         description:
325           get_input: vLBAgent_volume_name_0
326     vLBAgent_volume_1:
327       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
328       properties:
329         volume_type:
330           get_input: vLBAgent_volume_type_1
331         size: '(get_input : vLBAgent_volume_size_1) * 1024'
332         description:
333           get_input: vLBAgent_volume_name_1
334     oam_private_net_network_port_3:
335       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
336       properties:
337         ip_requirements:
338         - ip_version: 4
339           ip_count_required:
340             is_required: false
341           floating_ip_count_required:
342             is_required: false
343         security_groups:
344         - get_input: security_group
345         mac_requirements:
346           mac_count_required:
347             is_required: false
348         network_role_tag: oam_private
349         network:
350           get_input: oam_private_net_name
351       requirements:
352       - binding:
353           capability: tosca.capabilities.network.Bindable
354           node: vLBAgentInstance
355           relationship: tosca.relationships.network.BindsTo
356     vLBAgent_volume_2:
357       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
358       properties:
359         volume_type:
360           get_input: vLBAgent_volume_type_2
361         size: '(get_input : vLBAgent_volume_size_2) * 1024'
362         description:
363           get_input: vLBAgent_volume_name_2
364     packet_internal_network_port:
365       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
366       properties:
367         ip_requirements:
368         - ip_version: 4
369           ip_count_required:
370             is_required: false
371           floating_ip_count_required:
372             is_required: false
373         security_groups:
374         - get_input: security_group
375         mac_requirements:
376           mac_count_required:
377             is_required: false
378         network:
379           get_input: packet_internal_network
380       requirements:
381       - binding:
382           capability: tosca.capabilities.network.Bindable
383           node: vLBAgentInstance
384           relationship: tosca.relationships.network.BindsTo
385   relationship_templates:
386     vLBAgent_volume_0_att:
387       type: org.openecomp.relationships.VolumeAttachesTo
388       properties:
389         volume_id: vLBAgent_volume_0
390         instance_uuid: vLBAgentInstance
391     vLBAgent_volume_2_att:
392       type: org.openecomp.relationships.VolumeAttachesTo
393       properties:
394         volume_id: vLBAgent_volume_2
395         instance_uuid: vLBAgentInstance
396     vLBAgent_volume_1_att:
397       type: org.openecomp.relationships.VolumeAttachesTo
398       properties:
399         volume_id: vLBAgent_volume_1
400         instance_uuid: vLBAgentInstance
401   groups:
402     FEAdd_On_Module_vLBAgentTemplate_group:
403       type: org.openecomp.groups.heat.HeatStack
404       properties:
405         heat_file: ../Artifacts/FEAdd_On_Module_vLBAgentTemplate.yaml
406       members:
407       - packet_mirror_network_port_1
408       - vLBAgentInstance
409       - vLBAgent_volume_0
410       - vLBAgent_volume_1
411       - oam_private_net_network_port_3
412       - vLBAgent_volume_2
413       - packet_internal_network_port
414   substitution_mappings:
415     node_type: org.openecomp.resource.abstract.nodes.heat.FEAdd_On_Module_vLBAgentTemplate
416     capabilities:
417       network.incoming.bytes.rate_packet_mirror_network_port_1:
418       - packet_mirror_network_port_1
419       - network.incoming.bytes.rate
420       disk.device.read.requests_vLBAgentInstance:
421       - vLBAgentInstance
422       - disk.device.read.requests
423       network.incoming.packets_packet_internal_network_port:
424       - packet_internal_network_port
425       - network.incoming.packets
426       network.outgoing.bytes.rate_oam_private_net_network_port_3:
427       - oam_private_net_network_port_3
428       - network.outgoing.bytes.rate
429       disk.device.usage_vLBAgentInstance:
430       - vLBAgentInstance
431       - disk.device.usage
432       network.incoming.bytes.rate_oam_private_net_network_port_3:
433       - oam_private_net_network_port_3
434       - network.incoming.bytes.rate
435       disk.read.requests_vLBAgentInstance:
436       - vLBAgentInstance
437       - disk.read.requests
438       network.incoming.packets_oam_private_net_network_port_3:
439       - oam_private_net_network_port_3
440       - network.incoming.packets
441       cpu_util_vLBAgentInstance:
442       - vLBAgentInstance
443       - cpu_util
444       feature_oam_private_net_network_port_3:
445       - oam_private_net_network_port_3
446       - feature
447       feature_vLBAgent_volume_1:
448       - vLBAgent_volume_1
449       - feature
450       feature_vLBAgent_volume_0:
451       - vLBAgent_volume_0
452       - feature
453       feature_vLBAgent_volume_2:
454       - vLBAgent_volume_2
455       - feature
456       network.incoming.bytes.rate_packet_internal_network_port:
457       - packet_internal_network_port
458       - network.incoming.bytes.rate
459       disk.usage_vLBAgentInstance:
460       - vLBAgentInstance
461       - disk.usage
462       disk.device.capacity_vLBAgentInstance:
463       - vLBAgentInstance
464       - disk.device.capacity
465       disk.device.iops_vLBAgentInstance:
466       - vLBAgentInstance
467       - disk.device.iops
468       network.incoming.packets_packet_mirror_network_port_1:
469       - packet_mirror_network_port_1
470       - network.incoming.packets
471       network.outgoing.bytes.rate_packet_mirror_network_port_1:
472       - packet_mirror_network_port_1
473       - network.outgoing.bytes.rate
474       network.outpoing.packets_oam_private_net_network_port_3:
475       - oam_private_net_network_port_3
476       - network.outpoing.packets
477       forwarder_packet_mirror_network_port_1:
478       - packet_mirror_network_port_1
479       - forwarder
480       binding_packet_internal_network_port:
481       - packet_internal_network_port
482       - binding
483       disk.device.write.bytes_vLBAgentInstance:
484       - vLBAgentInstance
485       - disk.device.write.bytes
486       attachment_packet_mirror_network_port_1:
487       - packet_mirror_network_port_1
488       - attachment
489       network.incoming.packets.rate_oam_private_net_network_port_3:
490       - oam_private_net_network_port_3
491       - network.incoming.packets.rate
492       binding_oam_private_net_network_port_3:
493       - oam_private_net_network_port_3
494       - binding
495       forwarder_packet_internal_network_port:
496       - packet_internal_network_port
497       - forwarder
498       endpoint_vLBAgentInstance:
499       - vLBAgentInstance
500       - endpoint
501       binding_packet_mirror_network_port_1:
502       - packet_mirror_network_port_1
503       - binding
504       binding_vLBAgentInstance:
505       - vLBAgentInstance
506       - binding
507       disk.allocation_vLBAgentInstance:
508       - vLBAgentInstance
509       - disk.allocation
510       memory.resident_vLBAgentInstance:
511       - vLBAgentInstance
512       - memory.resident
513       attachment_packet_internal_network_port:
514       - packet_internal_network_port
515       - attachment
516       disk.read.bytes_vLBAgentInstance:
517       - vLBAgentInstance
518       - disk.read.bytes
519       memory.usage_vLBAgentInstance:
520       - vLBAgentInstance
521       - memory.usage
522       scalable_vLBAgentInstance:
523       - vLBAgentInstance
524       - scalable
525       disk.latency_vLBAgentInstance:
526       - vLBAgentInstance
527       - disk.latency
528       disk.device.allocation_vLBAgentInstance:
529       - vLBAgentInstance
530       - disk.device.allocation
531       cpu_vLBAgentInstance:
532       - vLBAgentInstance
533       - cpu
534       disk.device.write.requests_vLBAgentInstance:
535       - vLBAgentInstance
536       - disk.device.write.requests
537       disk.write.bytes_vLBAgentInstance:
538       - vLBAgentInstance
539       - disk.write.bytes
540       memory_vLBAgentInstance:
541       - vLBAgentInstance
542       - memory
543       disk.device.write.bytes.rate_vLBAgentInstance:
544       - vLBAgentInstance
545       - disk.device.write.bytes.rate
546       network.outgoing.packets.rate_packet_internal_network_port:
547       - packet_internal_network_port
548       - network.outgoing.packets.rate
549       disk.iops_vLBAgentInstance:
550       - vLBAgentInstance
551       - disk.iops
552       network.outgoing.packets.rate_oam_private_net_network_port_3:
553       - oam_private_net_network_port_3
554       - network.outgoing.packets.rate
555       feature_packet_mirror_network_port_1:
556       - packet_mirror_network_port_1
557       - feature
558       instance_vLBAgentInstance:
559       - vLBAgentInstance
560       - instance
561       network.incoming.bytes_packet_mirror_network_port_1:
562       - packet_mirror_network_port_1
563       - network.incoming.bytes
564       attachment_oam_private_net_network_port_3:
565       - oam_private_net_network_port_3
566       - attachment
567       network.outgoing.bytes_packet_internal_network_port:
568       - packet_internal_network_port
569       - network.outgoing.bytes
570       network.outgoing.packets.rate_packet_mirror_network_port_1:
571       - packet_mirror_network_port_1
572       - network.outgoing.packets.rate
573       network.incoming.bytes_packet_internal_network_port:
574       - packet_internal_network_port
575       - network.incoming.bytes
576       network.outpoing.packets_packet_mirror_network_port_1:
577       - packet_mirror_network_port_1
578       - network.outpoing.packets
579       network.outgoing.bytes_packet_mirror_network_port_1:
580       - packet_mirror_network_port_1
581       - network.outgoing.bytes
582       disk.device.read.requests.rate_vLBAgentInstance:
583       - vLBAgentInstance
584       - disk.device.read.requests.rate
585       os_vLBAgentInstance:
586       - vLBAgentInstance
587       - os
588       network.incoming.packets.rate_packet_internal_network_port:
589       - packet_internal_network_port
590       - network.incoming.packets.rate
591       disk.write.requests.rate_vLBAgentInstance:
592       - vLBAgentInstance
593       - disk.write.requests.rate
594       attachment_vLBAgent_volume_0:
595       - vLBAgent_volume_0
596       - attachment
597       disk.device.read.bytes_vLBAgentInstance:
598       - vLBAgentInstance
599       - disk.device.read.bytes
600       attachment_vLBAgent_volume_2:
601       - vLBAgent_volume_2
602       - attachment
603       attachment_vLBAgent_volume_1:
604       - vLBAgent_volume_1
605       - attachment
606       host_vLBAgentInstance:
607       - vLBAgentInstance
608       - host
609       disk.device.write.requests.rate_vLBAgentInstance:
610       - vLBAgentInstance
611       - disk.device.write.requests.rate
612       disk.device.read.bytes.rate_vLBAgentInstance:
613       - vLBAgentInstance
614       - disk.device.read.bytes.rate
615       network.outgoing.bytes_oam_private_net_network_port_3:
616       - oam_private_net_network_port_3
617       - network.outgoing.bytes
618       forwarder_oam_private_net_network_port_3:
619       - oam_private_net_network_port_3
620       - forwarder
621       cpu.delta_vLBAgentInstance:
622       - vLBAgentInstance
623       - cpu.delta
624       network.incoming.bytes_oam_private_net_network_port_3:
625       - oam_private_net_network_port_3
626       - network.incoming.bytes
627       disk.capacity_vLBAgentInstance:
628       - vLBAgentInstance
629       - disk.capacity
630       disk.root.size_vLBAgentInstance:
631       - vLBAgentInstance
632       - disk.root.size
633       network.outgoing.bytes.rate_packet_internal_network_port:
634       - packet_internal_network_port
635       - network.outgoing.bytes.rate
636       disk.ephemeral.size_vLBAgentInstance:
637       - vLBAgentInstance
638       - disk.ephemeral.size
639       feature_vLBAgentInstance:
640       - vLBAgentInstance
641       - feature
642       disk.device.latency_vLBAgentInstance:
643       - vLBAgentInstance
644       - disk.device.latency
645       disk.write.requests_vLBAgentInstance:
646       - vLBAgentInstance
647       - disk.write.requests
648       network.outpoing.packets_packet_internal_network_port:
649       - packet_internal_network_port
650       - network.outpoing.packets
651       network.incoming.packets.rate_packet_mirror_network_port_1:
652       - packet_mirror_network_port_1
653       - network.incoming.packets.rate
654       vcpus_vLBAgentInstance:
655       - vLBAgentInstance
656       - vcpus
657       disk.read.bytes.rate_vLBAgentInstance:
658       - vLBAgentInstance
659       - disk.read.bytes.rate
660       feature_packet_internal_network_port:
661       - packet_internal_network_port
662       - feature
663       disk.write.bytes.rate_vLBAgentInstance:
664       - vLBAgentInstance
665       - disk.write.bytes.rate
666     requirements:
667       dependency_vLBAgentInstance:
668       - vLBAgentInstance
669       - dependency
670       dependency_packet_internal_network_port:
671       - packet_internal_network_port
672       - dependency
673       dependency_oam_private_net_network_port_3:
674       - oam_private_net_network_port_3
675       - dependency
676       link_packet_internal_network_port:
677       - packet_internal_network_port
678       - link
679       link_oam_private_net_network_port_3:
680       - oam_private_net_network_port_3
681       - link
682       dependency_vLBAgent_volume_1:
683       - vLBAgent_volume_1
684       - dependency
685       dependency_vLBAgent_volume_2:
686       - vLBAgent_volume_2
687       - dependency
688       dependency_packet_mirror_network_port_1:
689       - packet_mirror_network_port_1
690       - dependency
691       dependency_vLBAgent_volume_0:
692       - vLBAgent_volume_0
693       - dependency
694       link_packet_mirror_network_port_1:
695       - packet_mirror_network_port_1
696       - link
697       local_storage_vLBAgentInstance:
698       - vLBAgentInstance
699       - local_storage