[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / securityrulestoportconnection / securityRulesToPortGetResource / out / FEAdd_On_Module_vLBAgentTemplateServiceTemplate.yaml
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:
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
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
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.fixed_ip_0s
245           packet_mirror_network_ip_0:
246           - UNSUPPORTED_ATTRIBUTE_packet_mirror_network_port.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     oam_private_net_network_port:
327       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
328       properties:
329         ip_requirements:
330         - ip_version: 4
331           ip_count_required:
332             is_required: false
333           floating_ip_count_required:
334             is_required: false
335         security_groups:
336         - get_input: security_group
337         mac_requirements:
338           mac_count_required:
339             is_required: false
340         network_role_tag: oam_private
341         network:
342           get_input: oam_private_net_name
343       requirements:
344       - binding:
345           capability: tosca.capabilities.network.Bindable
346           node: vLBAgentInstance
347           relationship: tosca.relationships.network.BindsTo
348     vLBAgent_volume_1:
349       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
350       properties:
351         volume_type:
352           get_input: vLBAgent_volume_type_1
353         size: '(get_input : vLBAgent_volume_size_1) * 1024'
354         description:
355           get_input: vLBAgent_volume_name_1
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
408       - vLBAgentInstance
409       - vLBAgent_volume_0
410       - oam_private_net_network_port
411       - vLBAgent_volume_1
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       disk.device.read.requests_vLBAgentInstance:
418       - vLBAgentInstance
419       - disk.device.read.requests
420       attachment_oam_private_net_network_port:
421       - oam_private_net_network_port
422       - attachment
423       network.incoming.packets_packet_internal_network_port:
424       - packet_internal_network_port
425       - network.incoming.packets
426       disk.device.usage_vLBAgentInstance:
427       - vLBAgentInstance
428       - disk.device.usage
429       network.outgoing.bytes_packet_mirror_network_port:
430       - packet_mirror_network_port
431       - network.outgoing.bytes
432       disk.read.requests_vLBAgentInstance:
433       - vLBAgentInstance
434       - disk.read.requests
435       network.outgoing.bytes.rate_oam_private_net_network_port:
436       - oam_private_net_network_port
437       - network.outgoing.bytes.rate
438       cpu_util_vLBAgentInstance:
439       - vLBAgentInstance
440       - cpu_util
441       network.outpoing.packets_oam_private_net_network_port:
442       - oam_private_net_network_port
443       - network.outpoing.packets
444       feature_vLBAgent_volume_1:
445       - vLBAgent_volume_1
446       - feature
447       feature_vLBAgent_volume_0:
448       - vLBAgent_volume_0
449       - feature
450       feature_vLBAgent_volume_2:
451       - vLBAgent_volume_2
452       - feature
453       network.incoming.bytes.rate_packet_internal_network_port:
454       - packet_internal_network_port
455       - network.incoming.bytes.rate
456       network.outgoing.bytes.rate_packet_mirror_network_port:
457       - packet_mirror_network_port
458       - network.outgoing.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       binding_packet_internal_network_port:
469       - packet_internal_network_port
470       - binding
471       disk.device.write.bytes_vLBAgentInstance:
472       - vLBAgentInstance
473       - disk.device.write.bytes
474       network.incoming.bytes_oam_private_net_network_port:
475       - oam_private_net_network_port
476       - network.incoming.bytes
477       feature_oam_private_net_network_port:
478       - oam_private_net_network_port
479       - feature
480       network.outpoing.packets_packet_mirror_network_port:
481       - packet_mirror_network_port
482       - network.outpoing.packets
483       network.incoming.bytes_packet_mirror_network_port:
484       - packet_mirror_network_port
485       - network.incoming.bytes
486       network.incoming.packets_packet_mirror_network_port:
487       - packet_mirror_network_port
488       - network.incoming.packets
489       endpoint_vLBAgentInstance:
490       - vLBAgentInstance
491       - endpoint
492       binding_vLBAgentInstance:
493       - vLBAgentInstance
494       - binding
495       disk.allocation_vLBAgentInstance:
496       - vLBAgentInstance
497       - disk.allocation
498       memory.resident_vLBAgentInstance:
499       - vLBAgentInstance
500       - memory.resident
501       attachment_packet_internal_network_port:
502       - packet_internal_network_port
503       - attachment
504       network.incoming.packets.rate_packet_mirror_network_port:
505       - packet_mirror_network_port
506       - network.incoming.packets.rate
507       network.outgoing.packets.rate_packet_mirror_network_port:
508       - packet_mirror_network_port
509       - network.outgoing.packets.rate
510       disk.read.bytes_vLBAgentInstance:
511       - vLBAgentInstance
512       - disk.read.bytes
513       memory.usage_vLBAgentInstance:
514       - vLBAgentInstance
515       - memory.usage
516       network.incoming.bytes.rate_oam_private_net_network_port:
517       - oam_private_net_network_port
518       - network.incoming.bytes.rate
519       scalable_vLBAgentInstance:
520       - vLBAgentInstance
521       - scalable
522       disk.latency_vLBAgentInstance:
523       - vLBAgentInstance
524       - disk.latency
525       disk.device.allocation_vLBAgentInstance:
526       - vLBAgentInstance
527       - disk.device.allocation
528       cpu_vLBAgentInstance:
529       - vLBAgentInstance
530       - cpu
531       disk.device.write.requests_vLBAgentInstance:
532       - vLBAgentInstance
533       - disk.device.write.requests
534       disk.write.bytes_vLBAgentInstance:
535       - vLBAgentInstance
536       - disk.write.bytes
537       network.outgoing.bytes_oam_private_net_network_port:
538       - oam_private_net_network_port
539       - network.outgoing.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       instance_vLBAgentInstance:
553       - vLBAgentInstance
554       - instance
555       network.outgoing.bytes_packet_internal_network_port:
556       - packet_internal_network_port
557       - network.outgoing.bytes
558       network.incoming.bytes_packet_internal_network_port:
559       - packet_internal_network_port
560       - network.incoming.bytes
561       disk.device.read.requests.rate_vLBAgentInstance:
562       - vLBAgentInstance
563       - disk.device.read.requests.rate
564       os_vLBAgentInstance:
565       - vLBAgentInstance
566       - os
567       network.incoming.packets.rate_packet_internal_network_port:
568       - packet_internal_network_port
569       - network.incoming.packets.rate
570       attachment_packet_mirror_network_port:
571       - packet_mirror_network_port
572       - attachment
573       disk.write.requests.rate_vLBAgentInstance:
574       - vLBAgentInstance
575       - disk.write.requests.rate
576       attachment_vLBAgent_volume_0:
577       - vLBAgent_volume_0
578       - attachment
579       binding_oam_private_net_network_port:
580       - oam_private_net_network_port
581       - binding
582       disk.device.read.bytes_vLBAgentInstance:
583       - vLBAgentInstance
584       - disk.device.read.bytes
585       attachment_vLBAgent_volume_2:
586       - vLBAgent_volume_2
587       - attachment
588       attachment_vLBAgent_volume_1:
589       - vLBAgent_volume_1
590       - attachment
591       host_vLBAgentInstance:
592       - vLBAgentInstance
593       - host
594       disk.device.write.requests.rate_vLBAgentInstance:
595       - vLBAgentInstance
596       - disk.device.write.requests.rate
597       feature_packet_mirror_network_port:
598       - packet_mirror_network_port
599       - feature
600       binding_packet_mirror_network_port:
601       - packet_mirror_network_port
602       - binding
603       network.incoming.packets_oam_private_net_network_port:
604       - oam_private_net_network_port
605       - network.incoming.packets
606       network.incoming.bytes.rate_packet_mirror_network_port:
607       - packet_mirror_network_port
608       - network.incoming.bytes.rate
609       network.incoming.packets.rate_oam_private_net_network_port:
610       - oam_private_net_network_port
611       - network.incoming.packets.rate
612       disk.device.read.bytes.rate_vLBAgentInstance:
613       - vLBAgentInstance
614       - disk.device.read.bytes.rate
615       cpu.delta_vLBAgentInstance:
616       - vLBAgentInstance
617       - cpu.delta
618       disk.capacity_vLBAgentInstance:
619       - vLBAgentInstance
620       - disk.capacity
621       disk.root.size_vLBAgentInstance:
622       - vLBAgentInstance
623       - disk.root.size
624       network.outgoing.bytes.rate_packet_internal_network_port:
625       - packet_internal_network_port
626       - network.outgoing.bytes.rate
627       disk.ephemeral.size_vLBAgentInstance:
628       - vLBAgentInstance
629       - disk.ephemeral.size
630       feature_vLBAgentInstance:
631       - vLBAgentInstance
632       - feature
633       disk.device.latency_vLBAgentInstance:
634       - vLBAgentInstance
635       - disk.device.latency
636       disk.write.requests_vLBAgentInstance:
637       - vLBAgentInstance
638       - disk.write.requests
639       network.outpoing.packets_packet_internal_network_port:
640       - packet_internal_network_port
641       - network.outpoing.packets
642       vcpus_vLBAgentInstance:
643       - vLBAgentInstance
644       - vcpus
645       disk.read.bytes.rate_vLBAgentInstance:
646       - vLBAgentInstance
647       - disk.read.bytes.rate
648       feature_packet_internal_network_port:
649       - packet_internal_network_port
650       - feature
651       disk.write.bytes.rate_vLBAgentInstance:
652       - vLBAgentInstance
653       - disk.write.bytes.rate
654       network.outgoing.packets.rate_oam_private_net_network_port:
655       - oam_private_net_network_port
656       - network.outgoing.packets.rate
657     requirements:
658       dependency_vLBAgentInstance:
659       - vLBAgentInstance
660       - dependency
661       dependency_packet_internal_network_port:
662       - packet_internal_network_port
663       - dependency
664       link_packet_internal_network_port:
665       - packet_internal_network_port
666       - link
667       dependency_oam_private_net_network_port:
668       - oam_private_net_network_port
669       - dependency
670       dependency_vLBAgent_volume_1:
671       - vLBAgent_volume_1
672       - dependency
673       dependency_vLBAgent_volume_2:
674       - vLBAgent_volume_2
675       - dependency
676       dependency_packet_mirror_network_port:
677       - packet_mirror_network_port
678       - dependency
679       link_oam_private_net_network_port:
680       - oam_private_net_network_port
681       - link
682       dependency_vLBAgent_volume_0:
683       - vLBAgent_volume_0
684       - dependency
685       link_packet_mirror_network_port:
686       - packet_mirror_network_port
687       - link
688       local_storage_vLBAgentInstance:
689       - vLBAgentInstance
690       - local_storage