[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_vLBTemplateServiceTemplate.yaml
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_mirror_network_port:
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_mirror_network
165       requirements:
166       - binding:
167           capability: tosca.capabilities.network.Bindable
168           node: vLBInstance
169           relationship: tosca.relationships.network.BindsTo
170     vLB_volume_1:
171       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
172       properties:
173         volume_type:
174           get_input: vLB_volume_type_1
175         size: '(get_input : vLB_volume_size_1) * 1024'
176     vLB_volume_0:
177       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
178       properties:
179         volume_type:
180           get_input: vLB_volume_type_0
181         size: '(get_input : vLB_volume_size_0) * 1024'
182     vLB_volume_2:
183       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
184       properties:
185         volume_type:
186           get_input: vLB_volume_type_2
187         size: '(get_input : vLB_volume_size_2) * 1024'
188     oam_private_net_network_port:
189       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
190       properties:
191         ip_requirements:
192         - ip_version: 4
193           ip_count_required:
194             is_required: false
195           floating_ip_count_required:
196             is_required: false
197         security_groups:
198         - get_input: security_group
199         mac_requirements:
200           mac_count_required:
201             is_required: false
202         network_role_tag: oam_private
203         network:
204           get_input: oam_private_net_name
205       requirements:
206       - binding:
207           capability: tosca.capabilities.network.Bindable
208           node: vLBInstance
209           relationship: tosca.relationships.network.BindsTo
210     packet_internal_network_port:
211       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
212       properties:
213         ip_requirements:
214         - ip_version: 4
215           ip_count_required:
216             is_required: false
217           floating_ip_count_required:
218             is_required: false
219         security_groups:
220         - get_input: security_group
221         mac_requirements:
222           mac_count_required:
223             is_required: false
224         network:
225           get_input: packet_internal_network
226       requirements:
227       - binding:
228           capability: tosca.capabilities.network.Bindable
229           node: vLBInstance
230           relationship: tosca.relationships.network.BindsTo
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.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
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
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.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_mirror_network_port
385       - vLB_volume_1
386       - vLB_volume_0
387       - vLB_volume_2
388       - oam_private_net_network_port
389       - packet_internal_network_port
390       - vLBInstance
391   substitution_mappings:
392     node_type: org.openecomp.resource.abstract.nodes.heat.FEAdd_On_Module_vLBTemplate
393     capabilities:
394       attachment_oam_private_net_network_port:
395       - oam_private_net_network_port
396       - attachment
397       network.incoming.packets_packet_internal_network_port:
398       - packet_internal_network_port
399       - network.incoming.packets
400       disk.iops_vLBInstance:
401       - vLBInstance
402       - disk.iops
403       feature_vLBInstance:
404       - vLBInstance
405       - feature
406       vcpus_vLBInstance:
407       - vLBInstance
408       - vcpus
409       os_vLBInstance:
410       - vLBInstance
411       - os
412       disk.device.write.bytes.rate_vLBInstance:
413       - vLBInstance
414       - disk.device.write.bytes.rate
415       network.outgoing.bytes_packet_mirror_network_port:
416       - packet_mirror_network_port
417       - network.outgoing.bytes
418       network.outgoing.bytes.rate_oam_private_net_network_port:
419       - oam_private_net_network_port
420       - network.outgoing.bytes.rate
421       disk.write.bytes.rate_vLBInstance:
422       - vLBInstance
423       - disk.write.bytes.rate
424       network.outpoing.packets_oam_private_net_network_port:
425       - oam_private_net_network_port
426       - network.outpoing.packets
427       memory.usage_vLBInstance:
428       - vLBInstance
429       - memory.usage
430       host_vLBInstance:
431       - vLBInstance
432       - host
433       network.incoming.bytes.rate_packet_internal_network_port:
434       - packet_internal_network_port
435       - network.incoming.bytes.rate
436       network.outgoing.bytes.rate_packet_mirror_network_port:
437       - packet_mirror_network_port
438       - network.outgoing.bytes.rate
439       disk.device.capacity_vLBInstance:
440       - vLBInstance
441       - disk.device.capacity
442       binding_packet_internal_network_port:
443       - packet_internal_network_port
444       - binding
445       instance_vLBInstance:
446       - vLBInstance
447       - instance
448       network.incoming.bytes_oam_private_net_network_port:
449       - oam_private_net_network_port
450       - network.incoming.bytes
451       binding_vLBInstance:
452       - vLBInstance
453       - binding
454       feature_oam_private_net_network_port:
455       - oam_private_net_network_port
456       - feature
457       disk.device.latency_vLBInstance:
458       - vLBInstance
459       - disk.device.latency
460       network.outpoing.packets_packet_mirror_network_port:
461       - packet_mirror_network_port
462       - network.outpoing.packets
463       network.incoming.bytes_packet_mirror_network_port:
464       - packet_mirror_network_port
465       - network.incoming.bytes
466       network.incoming.packets_packet_mirror_network_port:
467       - packet_mirror_network_port
468       - network.incoming.packets
469       disk.device.read.requests.rate_vLBInstance:
470       - vLBInstance
471       - disk.device.read.requests.rate
472       attachment_packet_internal_network_port:
473       - packet_internal_network_port
474       - attachment
475       network.incoming.packets.rate_packet_mirror_network_port:
476       - packet_mirror_network_port
477       - network.incoming.packets.rate
478       network.outgoing.packets.rate_packet_mirror_network_port:
479       - packet_mirror_network_port
480       - network.outgoing.packets.rate
481       network.incoming.bytes.rate_oam_private_net_network_port:
482       - oam_private_net_network_port
483       - network.incoming.bytes.rate
484       memory_vLBInstance:
485       - vLBInstance
486       - memory
487       cpu.delta_vLBInstance:
488       - vLBInstance
489       - cpu.delta
490       disk.write.bytes_vLBInstance:
491       - vLBInstance
492       - disk.write.bytes
493       network.outgoing.bytes_oam_private_net_network_port:
494       - oam_private_net_network_port
495       - network.outgoing.bytes
496       disk.write.requests_vLBInstance:
497       - vLBInstance
498       - disk.write.requests
499       attachment_vLB_volume_2:
500       - vLB_volume_2
501       - attachment
502       disk.ephemeral.size_vLBInstance:
503       - vLBInstance
504       - disk.ephemeral.size
505       disk.device.iops_vLBInstance:
506       - vLBInstance
507       - disk.device.iops
508       network.outgoing.packets.rate_packet_internal_network_port:
509       - packet_internal_network_port
510       - network.outgoing.packets.rate
511       disk.capacity_vLBInstance:
512       - vLBInstance
513       - disk.capacity
514       disk.device.read.bytes_vLBInstance:
515       - vLBInstance
516       - disk.device.read.bytes
517       attachment_vLB_volume_0:
518       - vLB_volume_0
519       - attachment
520       attachment_vLB_volume_1:
521       - vLB_volume_1
522       - attachment
523       disk.root.size_vLBInstance:
524       - vLBInstance
525       - disk.root.size
526       disk.allocation_vLBInstance:
527       - vLBInstance
528       - disk.allocation
529       memory.resident_vLBInstance:
530       - vLBInstance
531       - memory.resident
532       network.outgoing.bytes_packet_internal_network_port:
533       - packet_internal_network_port
534       - network.outgoing.bytes
535       disk.write.requests.rate_vLBInstance:
536       - vLBInstance
537       - disk.write.requests.rate
538       disk.device.write.requests_vLBInstance:
539       - vLBInstance
540       - disk.device.write.requests
541       network.incoming.bytes_packet_internal_network_port:
542       - packet_internal_network_port
543       - network.incoming.bytes
544       network.incoming.packets.rate_packet_internal_network_port:
545       - packet_internal_network_port
546       - network.incoming.packets.rate
547       attachment_packet_mirror_network_port:
548       - packet_mirror_network_port
549       - attachment
550       disk.read.requests_vLBInstance:
551       - vLBInstance
552       - disk.read.requests
553       binding_oam_private_net_network_port:
554       - oam_private_net_network_port
555       - binding
556       disk.device.read.requests_vLBInstance:
557       - vLBInstance
558       - disk.device.read.requests
559       disk.latency_vLBInstance:
560       - vLBInstance
561       - disk.latency
562       feature_packet_mirror_network_port:
563       - packet_mirror_network_port
564       - feature
565       binding_packet_mirror_network_port:
566       - packet_mirror_network_port
567       - binding
568       network.incoming.packets_oam_private_net_network_port:
569       - oam_private_net_network_port
570       - network.incoming.packets
571       network.incoming.bytes.rate_packet_mirror_network_port:
572       - packet_mirror_network_port
573       - network.incoming.bytes.rate
574       network.incoming.packets.rate_oam_private_net_network_port:
575       - oam_private_net_network_port
576       - network.incoming.packets.rate
577       disk.device.write.requests.rate_vLBInstance:
578       - vLBInstance
579       - disk.device.write.requests.rate
580       disk.read.bytes_vLBInstance:
581       - vLBInstance
582       - disk.read.bytes
583       scalable_vLBInstance:
584       - vLBInstance
585       - scalable
586       disk.device.read.bytes.rate_vLBInstance:
587       - vLBInstance
588       - disk.device.read.bytes.rate
589       disk.read.bytes.rate_vLBInstance:
590       - vLBInstance
591       - disk.read.bytes.rate
592       disk.device.write.bytes_vLBInstance:
593       - vLBInstance
594       - disk.device.write.bytes
595       feature_vLB_volume_1:
596       - vLB_volume_1
597       - feature
598       network.outgoing.bytes.rate_packet_internal_network_port:
599       - packet_internal_network_port
600       - network.outgoing.bytes.rate
601       cpu_vLBInstance:
602       - vLBInstance
603       - cpu
604       feature_vLB_volume_2:
605       - vLB_volume_2
606       - feature
607       endpoint_vLBInstance:
608       - vLBInstance
609       - endpoint
610       network.outpoing.packets_packet_internal_network_port:
611       - packet_internal_network_port
612       - network.outpoing.packets
613       disk.device.allocation_vLBInstance:
614       - vLBInstance
615       - disk.device.allocation
616       disk.device.usage_vLBInstance:
617       - vLBInstance
618       - disk.device.usage
619       feature_vLB_volume_0:
620       - vLB_volume_0
621       - feature
622       disk.usage_vLBInstance:
623       - vLBInstance
624       - disk.usage
625       feature_packet_internal_network_port:
626       - packet_internal_network_port
627       - feature
628       cpu_util_vLBInstance:
629       - vLBInstance
630       - cpu_util
631       network.outgoing.packets.rate_oam_private_net_network_port:
632       - oam_private_net_network_port
633       - network.outgoing.packets.rate
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_packet_internal_network_port:
645       - packet_internal_network_port
646       - dependency
647       link_packet_internal_network_port:
648       - packet_internal_network_port
649       - link
650       dependency_vLB_volume_2:
651       - vLB_volume_2
652       - dependency
653       dependency_oam_private_net_network_port:
654       - oam_private_net_network_port
655       - dependency
656       dependency_packet_mirror_network_port:
657       - packet_mirror_network_port
658       - dependency
659       link_oam_private_net_network_port:
660       - oam_private_net_network_port
661       - link
662       dependency_vLBInstance:
663       - vLBInstance
664       - dependency
665       link_packet_mirror_network_port:
666       - packet_mirror_network_port
667       - link