[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 / heatPseudoParameters / usedFromNestedHeat / expectedoutputfiles / VSR_IOM_template_nestedServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: VSR_IOM_template_nested
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.vm:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     iom_image_name:
15       hidden: false
16       immutable: false
17       type: string
18       description: Image to be used for the instance
19     vf_module_id:
20       hidden: false
21       immutable: false
22       type: string
23       description: VNF Module ID
24     mgt_net_id:
25       hidden: false
26       immutable: false
27       type: string
28       description: Network used by the Management interface
29     data3_subnet_id:
30       hidden: false
31       immutable: false
32       type: string
33       description: Subnet used by the fourth Data interface
34     ctrl_fabric_net_id:
35       hidden: false
36       immutable: false
37       type: string
38       description: Network used by the Control Fabric interface
39     iom_flavor_name:
40       hidden: false
41       immutable: false
42       type: string
43       description: Flavor of the VNF to be used
44     security_group:
45       hidden: false
46       immutable: false
47       type: string
48       description: Security group to be used
49     iom_slot:
50       hidden: false
51       immutable: false
52       type: string
53       description: The slot value assigned to the module eg 1, 2, 3, etc
54     data0_subnet_id:
55       hidden: false
56       immutable: false
57       type: string
58       description: Subnet used by the Data interface
59     data1_net_id:
60       hidden: false
61       immutable: false
62       type: string
63       description: Network used by the second Data interface
64     mgt_subnet_id:
65       hidden: false
66       immutable: false
67       type: string
68       description: Subnet used by the Management interface
69     ctrl_fabric_subnet_id:
70       hidden: false
71       immutable: false
72       type: string
73       description: Subnet used by the Control Fabric interface
74     data0_net_id:
75       hidden: false
76       immutable: false
77       type: string
78       description: Network used by the Data interface
79     data2_net_id:
80       hidden: false
81       immutable: false
82       type: string
83       description: Network used by the third Data interface
84     iom_mtu:
85       hidden: false
86       immutable: false
87       type: string
88       description: MTU size in bytes
89     OS::stack_id:
90       type: string
91       required: false
92     vnf_id:
93       hidden: false
94       immutable: false
95       type: string
96       description: VNF ID
97     availability_zone_0:
98       hidden: false
99       immutable: false
100       type: string
101       description: Availability zone where this component should be instantiated
102     iom_smbios:
103       hidden: false
104       immutable: false
105       type: string
106       description: Parameters to be passed to the VM at boot up as key-value pairs
107     data2_subnet_id:
108       hidden: false
109       immutable: false
110       type: string
111       description: Subnet used by the third Data interface
112     data3_net_id:
113       hidden: false
114       immutable: false
115       type: string
116       description: Network used by the fourth Data interface
117     data1_subnet_id:
118       hidden: false
119       immutable: false
120       type: string
121       description: Subnet used by the second Data interface
122     stack_name:
123       hidden: false
124       immutable: false
125       type: string
126       description: Name of the HEAT stack
127     vm_name:
128       hidden: false
129       immutable: false
130       type: string
131       description: Name of the VM
132   node_templates:
133     iom_data_1_port:
134       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
135       properties:
136         ip_requirements:
137         - ip_version: 4
138           ip_count_required:
139             is_required: false
140           floating_ip_count_required:
141             is_required: false
142         security_groups:
143         - get_input: security_group
144         mac_requirements:
145           mac_count_required:
146             is_required: false
147         binding:vnic_type: direct
148         value_specs:
149           extra_dhcp_opts:
150           - opt_name: interface-mtu
151             opt_value:
152               get_input: iom_mtu
153         network_role_tag: data1
154         network:
155           get_input: data1_net_id
156       requirements:
157       - binding:
158           capability: tosca.capabilities.network.Bindable
159           node: IOM
160           relationship: tosca.relationships.network.BindsTo
161     iom_data_2_port:
162       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
163       properties:
164         ip_requirements:
165         - ip_version: 4
166           ip_count_required:
167             is_required: false
168           floating_ip_count_required:
169             is_required: false
170         security_groups:
171         - get_input: security_group
172         mac_requirements:
173           mac_count_required:
174             is_required: false
175         binding:vnic_type: direct
176         value_specs:
177           extra_dhcp_opts:
178           - opt_name: interface-mtu
179             opt_value:
180               get_input: iom_mtu
181         network_role_tag: data2
182         network:
183           get_input: data2_net_id
184       requirements:
185       - binding:
186           capability: tosca.capabilities.network.Bindable
187           node: IOM
188           relationship: tosca.relationships.network.BindsTo
189     IOM:
190       type: org.openecomp.resource.vfc.nodes.heat.vm
191       properties:
192         flavor:
193           get_input: iom_flavor_name
194         availability_zone:
195           get_input: availability_zone_0
196         image:
197           get_input: iom_image_name
198         metadata:
199           vf_module_id:
200             get_input: vf_module_id
201           vnf_id:
202             get_input: vnf_id
203         config_drive: true
204         user_data_format:
205           get_input: OS::stack_id
206         name:
207           get_input: vm_name
208     iom_data_0_port:
209       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
210       properties:
211         ip_requirements:
212         - ip_version: 4
213           ip_count_required:
214             is_required: false
215           floating_ip_count_required:
216             is_required: false
217         security_groups:
218         - get_input: security_group
219         mac_requirements:
220           mac_count_required:
221             is_required: false
222         binding:vnic_type: direct
223         value_specs:
224           extra_dhcp_opts:
225           - opt_name: interface-mtu
226             opt_value:
227               get_input: iom_mtu
228         network_role_tag: data0
229         network:
230           get_input: data0_net_id
231       requirements:
232       - binding:
233           capability: tosca.capabilities.network.Bindable
234           node: IOM
235           relationship: tosca.relationships.network.BindsTo
236     iom_ctrl_fabric_0_port:
237       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
238       properties:
239         ip_requirements:
240         - ip_version: 4
241           ip_count_required:
242             is_required: false
243           floating_ip_count_required:
244             is_required: false
245         security_groups:
246         - get_input: security_group
247         fixed_ips:
248         - subnet_id:
249             get_input: ctrl_fabric_subnet_id
250         mac_requirements:
251           mac_count_required:
252             is_required: false
253         value_specs:
254           extra_dhcp_opts:
255           - opt_name: interface-mtu
256             opt_value:
257               get_input: iom_mtu
258         network_role_tag: ctrl_fabric
259         network:
260           get_input: ctrl_fabric_net_id
261       requirements:
262       - binding:
263           capability: tosca.capabilities.network.Bindable
264           node: IOM
265           relationship: tosca.relationships.network.BindsTo
266     iom_data_3_port:
267       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
268       properties:
269         ip_requirements:
270         - ip_version: 4
271           ip_count_required:
272             is_required: false
273           floating_ip_count_required:
274             is_required: false
275         security_groups:
276         - get_input: security_group
277         mac_requirements:
278           mac_count_required:
279             is_required: false
280         binding:vnic_type: direct
281         value_specs:
282           extra_dhcp_opts:
283           - opt_name: interface-mtu
284             opt_value:
285               get_input: iom_mtu
286         network_role_tag: data3
287         network:
288           get_input: data3_net_id
289       requirements:
290       - binding:
291           capability: tosca.capabilities.network.Bindable
292           node: IOM
293           relationship: tosca.relationships.network.BindsTo
294     iom_mgt_0_port:
295       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
296       properties:
297         ip_requirements:
298         - ip_version: 4
299           ip_count_required:
300             is_required: false
301           floating_ip_count_required:
302             is_required: false
303         security_groups:
304         - get_input: security_group
305         fixed_ips:
306         - subnet_id:
307             get_input: mgt_subnet_id
308         mac_requirements:
309           mac_count_required:
310             is_required: false
311         network_role_tag: mgt
312         network:
313           get_input: mgt_net_id
314       requirements:
315       - binding:
316           capability: tosca.capabilities.network.Bindable
317           node: IOM
318           relationship: tosca.relationships.network.BindsTo
319   groups:
320     VSR_IOM_template_nested_group:
321       type: org.openecomp.groups.heat.HeatStack
322       properties:
323         heat_file: ../Artifacts/VSR_IOM_template_nested.yaml
324       members:
325       - iom_data_1_port
326       - iom_data_2_port
327       - IOM
328       - iom_data_0_port
329       - iom_ctrl_fabric_0_port
330       - iom_data_3_port
331       - iom_mgt_0_port
332   substitution_mappings:
333     node_type: org.openecomp.resource.abstract.nodes.heat.VSR_IOM_template_nested
334     capabilities:
335       cpu_IOM:
336       - IOM
337       - cpu
338       feature_iom_data_0_port:
339       - iom_data_0_port
340       - feature
341       disk.device.usage_IOM:
342       - IOM
343       - disk.device.usage
344       disk.iops_IOM:
345       - IOM
346       - disk.iops
347       binding_iom_ctrl_fabric_0_port:
348       - iom_ctrl_fabric_0_port
349       - binding
350       disk.read.bytes_IOM:
351       - IOM
352       - disk.read.bytes
353       disk.capacity_IOM:
354       - IOM
355       - disk.capacity
356       disk.device.read.bytes_IOM:
357       - IOM
358       - disk.device.read.bytes
359       feature_iom_data_1_port:
360       - iom_data_1_port
361       - feature
362       disk.usage_IOM:
363       - IOM
364       - disk.usage
365       network.incoming.bytes_iom_data_0_port:
366       - iom_data_0_port
367       - network.incoming.bytes
368       binding_IOM:
369       - IOM
370       - binding
371       disk.device.read.bytes.rate_IOM:
372       - IOM
373       - disk.device.read.bytes.rate
374       network.outgoing.bytes_iom_data_3_port:
375       - iom_data_3_port
376       - network.outgoing.bytes
377       network.outpoing.packets_iom_data_3_port:
378       - iom_data_3_port
379       - network.outpoing.packets
380       attachment_iom_data_3_port:
381       - iom_data_3_port
382       - attachment
383       instance_IOM:
384       - IOM
385       - instance
386       network.incoming.packets_iom_mgt_0_port:
387       - iom_mgt_0_port
388       - network.incoming.packets
389       disk.write.requests_IOM:
390       - IOM
391       - disk.write.requests
392       attachment_iom_data_2_port:
393       - iom_data_2_port
394       - attachment
395       network.incoming.bytes.rate_iom_data_3_port:
396       - iom_data_3_port
397       - network.incoming.bytes.rate
398       disk.ephemeral.size_IOM:
399       - IOM
400       - disk.ephemeral.size
401       binding_iom_data_3_port:
402       - iom_data_3_port
403       - binding
404       network.outgoing.bytes.rate_iom_data_2_port:
405       - iom_data_2_port
406       - network.outgoing.bytes.rate
407       disk.device.capacity_IOM:
408       - IOM
409       - disk.device.capacity
410       network.outgoing.packets.rate_iom_data_3_port:
411       - iom_data_3_port
412       - network.outgoing.packets.rate
413       disk.device.iops_IOM:
414       - IOM
415       - disk.device.iops
416       disk.write.requests.rate_IOM:
417       - IOM
418       - disk.write.requests.rate
419       network.incoming.packets_iom_ctrl_fabric_0_port:
420       - iom_ctrl_fabric_0_port
421       - network.incoming.packets
422       network.outgoing.bytes.rate_iom_data_1_port:
423       - iom_data_1_port
424       - network.outgoing.bytes.rate
425       network.incoming.packets.rate_iom_mgt_0_port:
426       - iom_mgt_0_port
427       - network.incoming.packets.rate
428       network.incoming.bytes_iom_mgt_0_port:
429       - iom_mgt_0_port
430       - network.incoming.bytes
431       attachment_iom_mgt_0_port:
432       - iom_mgt_0_port
433       - attachment
434       network.outgoing.bytes_iom_mgt_0_port:
435       - iom_mgt_0_port
436       - network.outgoing.bytes
437       cpu.delta_IOM:
438       - IOM
439       - cpu.delta
440       network.outgoing.bytes_iom_ctrl_fabric_0_port:
441       - iom_ctrl_fabric_0_port
442       - network.outgoing.bytes
443       disk.write.bytes_IOM:
444       - IOM
445       - disk.write.bytes
446       disk.device.write.bytes_IOM:
447       - IOM
448       - disk.device.write.bytes
449       network.incoming.packets.rate_iom_data_1_port:
450       - iom_data_1_port
451       - network.incoming.packets.rate
452       disk.read.requests_IOM:
453       - IOM
454       - disk.read.requests
455       vcpus_IOM:
456       - IOM
457       - vcpus
458       network.incoming.bytes_iom_data_2_port:
459       - iom_data_2_port
460       - network.incoming.bytes
461       endpoint_IOM:
462       - IOM
463       - endpoint
464       disk.device.read.requests_IOM:
465       - IOM
466       - disk.device.read.requests
467       disk.latency_IOM:
468       - IOM
469       - disk.latency
470       memory.resident_IOM:
471       - IOM
472       - memory.resident
473       network.incoming.packets_iom_data_1_port:
474       - iom_data_1_port
475       - network.incoming.packets
476       disk.device.write.requests_IOM:
477       - IOM
478       - disk.device.write.requests
479       feature_iom_data_2_port:
480       - iom_data_2_port
481       - feature
482       network.outpoing.packets_iom_mgt_0_port:
483       - iom_mgt_0_port
484       - network.outpoing.packets
485       network.outgoing.bytes_iom_data_2_port:
486       - iom_data_2_port
487       - network.outgoing.bytes
488       network.outpoing.packets_iom_data_2_port:
489       - iom_data_2_port
490       - network.outpoing.packets
491       network.incoming.packets_iom_data_0_port:
492       - iom_data_0_port
493       - network.incoming.packets
494       binding_iom_data_0_port:
495       - iom_data_0_port
496       - binding
497       feature_iom_ctrl_fabric_0_port:
498       - iom_ctrl_fabric_0_port
499       - feature
500       network.outgoing.packets.rate_iom_ctrl_fabric_0_port:
501       - iom_ctrl_fabric_0_port
502       - network.outgoing.packets.rate
503       network.outgoing.packets.rate_iom_data_0_port:
504       - iom_data_0_port
505       - network.outgoing.packets.rate
506       network.incoming.packets.rate_iom_ctrl_fabric_0_port:
507       - iom_ctrl_fabric_0_port
508       - network.incoming.packets.rate
509       disk.allocation_IOM:
510       - IOM
511       - disk.allocation
512       network.incoming.packets.rate_iom_data_3_port:
513       - iom_data_3_port
514       - network.incoming.packets.rate
515       network.incoming.bytes.rate_iom_data_0_port:
516       - iom_data_0_port
517       - network.incoming.bytes.rate
518       network.incoming.bytes_iom_ctrl_fabric_0_port:
519       - iom_ctrl_fabric_0_port
520       - network.incoming.bytes
521       scalable_IOM:
522       - IOM
523       - scalable
524       network.incoming.packets.rate_iom_data_2_port:
525       - iom_data_2_port
526       - network.incoming.packets.rate
527       feature_IOM:
528       - IOM
529       - feature
530       network.incoming.bytes.rate_iom_ctrl_fabric_0_port:
531       - iom_ctrl_fabric_0_port
532       - network.incoming.bytes.rate
533       network.incoming.bytes.rate_iom_mgt_0_port:
534       - iom_mgt_0_port
535       - network.incoming.bytes.rate
536       network.outpoing.packets_iom_data_0_port:
537       - iom_data_0_port
538       - network.outpoing.packets
539       disk.device.write.bytes.rate_IOM:
540       - IOM
541       - disk.device.write.bytes.rate
542       attachment_iom_ctrl_fabric_0_port:
543       - iom_ctrl_fabric_0_port
544       - attachment
545       network.outgoing.packets.rate_iom_data_1_port:
546       - iom_data_1_port
547       - network.outgoing.packets.rate
548       disk.device.allocation_IOM:
549       - IOM
550       - disk.device.allocation
551       network.outgoing.bytes_iom_data_0_port:
552       - iom_data_0_port
553       - network.outgoing.bytes
554       network.incoming.bytes.rate_iom_data_1_port:
555       - iom_data_1_port
556       - network.incoming.bytes.rate
557       attachment_iom_data_0_port:
558       - iom_data_0_port
559       - attachment
560       network.incoming.packets_iom_data_2_port:
561       - iom_data_2_port
562       - network.incoming.packets
563       network.incoming.bytes_iom_data_3_port:
564       - iom_data_3_port
565       - network.incoming.bytes
566       binding_iom_data_1_port:
567       - iom_data_1_port
568       - binding
569       network.incoming.packets_iom_data_3_port:
570       - iom_data_3_port
571       - network.incoming.packets
572       network.outgoing.bytes_iom_data_1_port:
573       - iom_data_1_port
574       - network.outgoing.bytes
575       network.incoming.packets.rate_iom_data_0_port:
576       - iom_data_0_port
577       - network.incoming.packets.rate
578       network.outgoing.bytes.rate_iom_mgt_0_port:
579       - iom_mgt_0_port
580       - network.outgoing.bytes.rate
581       host_IOM:
582       - IOM
583       - host
584       feature_iom_data_3_port:
585       - iom_data_3_port
586       - feature
587       feature_iom_mgt_0_port:
588       - iom_mgt_0_port
589       - feature
590       binding_iom_data_2_port:
591       - iom_data_2_port
592       - binding
593       network.outpoing.packets_iom_data_1_port:
594       - iom_data_1_port
595       - network.outpoing.packets
596       network.outgoing.packets.rate_iom_data_2_port:
597       - iom_data_2_port
598       - network.outgoing.packets.rate
599       disk.device.latency_IOM:
600       - IOM
601       - disk.device.latency
602       network.incoming.bytes.rate_iom_data_2_port:
603       - iom_data_2_port
604       - network.incoming.bytes.rate
605       disk.device.write.requests.rate_IOM:
606       - IOM
607       - disk.device.write.requests.rate
608       network.incoming.bytes_iom_data_1_port:
609       - iom_data_1_port
610       - network.incoming.bytes
611       disk.write.bytes.rate_IOM:
612       - IOM
613       - disk.write.bytes.rate
614       cpu_util_IOM:
615       - IOM
616       - cpu_util
617       network.outpoing.packets_iom_ctrl_fabric_0_port:
618       - iom_ctrl_fabric_0_port
619       - network.outpoing.packets
620       disk.device.read.requests.rate_IOM:
621       - IOM
622       - disk.device.read.requests.rate
623       os_IOM:
624       - IOM
625       - os
626       memory.usage_IOM:
627       - IOM
628       - memory.usage
629       attachment_iom_data_1_port:
630       - iom_data_1_port
631       - attachment
632       disk.read.bytes.rate_IOM:
633       - IOM
634       - disk.read.bytes.rate
635       network.outgoing.bytes.rate_iom_ctrl_fabric_0_port:
636       - iom_ctrl_fabric_0_port
637       - network.outgoing.bytes.rate
638       network.outgoing.packets.rate_iom_mgt_0_port:
639       - iom_mgt_0_port
640       - network.outgoing.packets.rate
641       binding_iom_mgt_0_port:
642       - iom_mgt_0_port
643       - binding
644       network.outgoing.bytes.rate_iom_data_3_port:
645       - iom_data_3_port
646       - network.outgoing.bytes.rate
647       memory_IOM:
648       - IOM
649       - memory
650       disk.root.size_IOM:
651       - IOM
652       - disk.root.size
653       network.outgoing.bytes.rate_iom_data_0_port:
654       - iom_data_0_port
655       - network.outgoing.bytes.rate
656     requirements:
657       link_iom_data_2_port:
658       - iom_data_2_port
659       - link
660       dependency_iom_mgt_0_port:
661       - iom_mgt_0_port
662       - dependency
663       dependency_iom_data_3_port:
664       - iom_data_3_port
665       - dependency
666       dependency_IOM:
667       - IOM
668       - dependency
669       dependency_iom_data_0_port:
670       - iom_data_0_port
671       - dependency
672       dependency_iom_ctrl_fabric_0_port:
673       - iom_ctrl_fabric_0_port
674       - dependency
675       dependency_iom_data_2_port:
676       - iom_data_2_port
677       - dependency
678       link_iom_mgt_0_port:
679       - iom_mgt_0_port
680       - link
681       link_iom_ctrl_fabric_0_port:
682       - iom_ctrl_fabric_0_port
683       - link
684       dependency_iom_data_1_port:
685       - iom_data_1_port
686       - dependency
687       link_iom_data_1_port:
688       - iom_data_1_port
689       - link
690       link_iom_data_0_port:
691       - iom_data_0_port
692       - link
693       link_iom_data_3_port:
694       - iom_data_3_port
695       - link
696       local_storage_IOM:
697       - IOM
698       - local_storage