[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 / getAttrNestedAtt / expectedoutputfiles / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 node_types:
8   org.openecomp.resource.vfc.nodes.heat.cgi_fw:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     vf_module_id:
13       hidden: false
14       immutable: false
15       type: string
16       description: Unique ID for this VF Module instance
17       default: dummy_vf_module_id
18     nimbus_hsl_interface_type:
19       hidden: false
20       immutable: false
21       type: string
22       description: service_interface_type for ServiceInstance
23       default: other
24     cgi_fw_pt_vlan_VM2_name_fqdn:
25       hidden: false
26       immutable: false
27       type: json
28       description: fqdn of the ServiceInstance in PortTuple Resource
29       default: [
30         ]
31     cgi_fw_vmi_ecmp_src_ip:
32       hidden: false
33       immutable: false
34       type: boolean
35       description: source_ip for the VirtualMachineInterface
36       default: true
37     cgi_fw_names:
38       label: Firewall VM Name
39       hidden: false
40       immutable: false
41       type: list
42       description: Comma Delimited List of Names for ServiceInstance VMs
43       default:
44       - zsde1fcgi02fgi001
45       - zsde1fcgi02fgi002
46       entry_schema:
47         type: string
48     cgi_fw_vmi_ecmp_dst_ip:
49       hidden: false
50       immutable: false
51       type: boolean
52       description: destination_ip for the VirtualMachineInterface
53       default: true
54     sgi_direct_interface_type:
55       hidden: false
56       immutable: false
57       type: string
58       description: service_interface_type for ServiceInstance
59       default: right
60     vnf_name:
61       hidden: false
62       immutable: false
63       type: string
64       description: Unique name for this VF instance
65       default: zrdm3firstnetfcgi02
66     cgi_fw_flavor_name:
67       hidden: false
68       immutable: false
69       type: string
70       description: flavor for the ServiceInstance VM
71       default: m1.xlarge
72     vf_module_name:
73       hidden: false
74       immutable: false
75       type: string
76       description: Unique name for this VF Module instance
77       default: zsde1fcgi02
78     cgi_fw_st_type:
79       hidden: false
80       immutable: false
81       type: string
82       description: service_type for the ServiceTemplate
83       default: firewall
84     sgi_protected_net_dummy_fqdn:
85       hidden: false
86       immutable: false
87       type: string
88       description: fq_name for the VirtualNetwork
89       default: default-domain:ALU-L3:firstnet_dummy_net_1
90     cgi_fw_vmi_ecmp_src_port:
91       hidden: false
92       immutable: false
93       type: boolean
94       description: source_port for the VirtualMachineInterface
95       default: false
96     sgi_protected_net_dummy1:
97       hidden: false
98       immutable: false
99       type: string
100       description: name for the VirtualNetwork
101     vnf_id:
102       hidden: false
103       immutable: false
104       type: string
105       description: Unique ID for this VF instance
106       default: dummy_vnf_id
107     sgi_direct_net_fqdn:
108       hidden: false
109       immutable: false
110       type: string
111       description: fq_name for the VirtualNetwork
112       default: default-domain:ALU-L3:fgi_direct
113     sgi_protected_interface_type:
114       hidden: false
115       immutable: false
116       type: string
117       description: service_interface_type for ServiceInstance
118       default: left
119     cgi_fw_vmi_ecmp_dst_port:
120       hidden: false
121       immutable: false
122       type: boolean
123       description: destination_port for the VirtualMachineInterface
124       default: false
125     sgi_direct_family_v6:
126       hidden: false
127       immutable: false
128       type: string
129       description: IP Family Address for InstanceIp
130       default: v6
131     availability_zone_0:
132       hidden: false
133       immutable: false
134       type: string
135       description: availability_zone for the ServiceInstance
136       default: nova
137     availability_zone_1:
138       hidden: false
139       immutable: false
140       type: string
141       description: availability_zone for the ServiceInstance
142       default: nova
143     nimbus_hsl_net_fqdn:
144       hidden: false
145       immutable: false
146       type: string
147       description: fq_name for the VirtualNetwork
148       default: default-domain:ALU-L3:alu-firstnet-net
149     sgi_protected_net_dummy:
150       hidden: false
151       immutable: false
152       type: string
153       description: name for the VirtualNetwork
154       default: firstnet_dummy_net_1
155     cgi_fw_pt_vlan_VM1_name_fqdn:
156       hidden: false
157       immutable: false
158       type: json
159       description: fqdn of the ServiceInstance in PortTuple Resource
160       default: [
161         ]
162     cgi_fw_vmi_ecmp_configured:
163       hidden: false
164       immutable: false
165       type: boolean
166       description: hashing_configured for the VirtualMachineInterface
167       default: true
168     cgi_fw_vmi_ecmp_ip_protocol:
169       hidden: false
170       immutable: false
171       type: boolean
172       description: ip_protocol for the VirtualMachineInterface
173       default: false
174     oam_protected_net_fqdn:
175       hidden: false
176       immutable: false
177       type: string
178       description: fq_name for the VirtualNetwork
179       default: default-domain:ALU-L3:alu_l3_mt_net
180     oam_protected_interface_type:
181       hidden: false
182       immutable: false
183       type: string
184       description: service_interface_type for ServiceInstance
185       default: management
186     cgi_fw_st_mode:
187       hidden: false
188       immutable: false
189       type: string
190       description: service_mode for the ServiceTemplate
191       default: in-network-nat
192     sgi_direct_ipv6_subnet_id:
193       hidden: false
194       immutable: false
195       type: string
196       description: Subnet UUID for InstanceIp
197       default: 4560666e-f306-4d7b-b0ec-a2d4330e9600
198     contrail_vmi_subinterface:
199       hidden: false
200       immutable: false
201       type: string
202     port_name:
203       hidden: false
204       immutable: false
205       type: string
206     cgi_fw_image_name:
207       hidden: false
208       immutable: false
209       type: string
210       description: image_name for the ServiceInstance VM
211       default: F5_LB-FW_F5_12_1_HF1_Startup
212     cgi_fw_oam_protected_ips:
213       hidden: false
214       immutable: false
215       type: list
216       description: the ips of the management network for CGI FW
217       default:
218       - 192.168.50.40
219       - 192.168.50.41
220       entry_schema:
221         type: string
222     sgi_direct_subnet_id:
223       hidden: false
224       immutable: false
225       type: string
226       description: Subnet UUID for InstanceIp
227       default: 63858a9d-696b-4731-b3b3-7c8dfd777b9e
228     domain:
229       hidden: false
230       immutable: false
231       type: string
232       description: domain for the ServiceTemplate
233       default: default-domain
234     cgi_fw_st_version:
235       hidden: false
236       immutable: false
237       type: float
238       description: version for the ServiceTemplate
239       default: 2
240       constraints:
241       - in_range:
242         - 0
243         - 99
244     cgi_fw_st_virtualization_type:
245       hidden: false
246       immutable: false
247       type: string
248       description: service_virtualization_type for the ServiceTemplate
249       default: virtual-machine
250     subinterface_name_prefix:
251       hidden: false
252       immutable: false
253       type: string
254   node_templates:
255     CGI_FW_OAM_PROTECTED_RVMI_2:
256       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
257       properties:
258         name:
259           str_replace:
260             template: VM_NAME_vmi_1
261             params:
262               VM_NAME:
263                 get_input:
264                 - cgi_fw_names
265                 - 1
266         security_group_refs:
267         - CGI_FW_RSG_SI_1
268         virtual_network_refs:
269         - get_input: oam_protected_net_fqdn
270         virtual_machine_interface_properties:
271           service_interface_type:
272             get_input: oam_protected_interface_type
273       requirements:
274       - binding:
275           capability: tosca.capabilities.network.Bindable
276           node: CGI_FW_SERVER_2
277           relationship: tosca.relationships.network.BindsTo
278     CGI_FW_SGI_DIRECT_RVMI_1:
279       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
280       properties:
281         name:
282           str_replace:
283             template: VM_NAME_vmi_3
284             params:
285               VM_NAME:
286                 get_input:
287                 - cgi_fw_names
288                 - 0
289         security_group_refs:
290         - CGI_FW_RSG_SI_1
291         virtual_network_refs:
292         - get_input: sgi_direct_net_fqdn
293         virtual_machine_interface_properties:
294           service_interface_type:
295             get_input: sgi_direct_interface_type
296         port_tuple_refs:
297           get_input: cgi_fw_pt_vlan_VM1_name_fqdn
298       requirements:
299       - binding:
300           capability: tosca.capabilities.network.Bindable
301           node: CGI_FW_SERVER_1
302           relationship: tosca.relationships.network.BindsTo
303     CGI_FW_OAM_PROTECTED_RVMI_1:
304       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
305       properties:
306         name:
307           str_replace:
308             template: VM_NAME_vmi_1
309             params:
310               VM_NAME:
311                 get_input:
312                 - cgi_fw_names
313                 - 0
314         security_group_refs:
315         - CGI_FW_RSG_SI_1
316         virtual_network_refs:
317         - get_input: oam_protected_net_fqdn
318         virtual_machine_interface_properties:
319           service_interface_type:
320             get_input: oam_protected_interface_type
321       requirements:
322       - binding:
323           capability: tosca.capabilities.network.Bindable
324           node: CGI_FW_SERVER_1
325           relationship: tosca.relationships.network.BindsTo
326     CGI_FW_SGI_DIRECT_RVMI_2:
327       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
328       properties:
329         name:
330           str_replace:
331             template: VM_NAME_vmi_3
332             params:
333               VM_NAME:
334                 get_input:
335                 - cgi_fw_names
336                 - 1
337         security_group_refs:
338         - CGI_FW_RSG_SI_1
339         virtual_network_refs:
340         - get_input: sgi_direct_net_fqdn
341         virtual_machine_interface_properties:
342           service_interface_type:
343             get_input: sgi_direct_interface_type
344         port_tuple_refs:
345           get_input: cgi_fw_pt_vlan_VM2_name_fqdn
346       requirements:
347       - binding:
348           capability: tosca.capabilities.network.Bindable
349           node: CGI_FW_SERVER_2
350           relationship: tosca.relationships.network.BindsTo
351     CGI_FW_NIMBUS_HSL_RVMI_2:
352       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
353       properties:
354         name:
355           str_replace:
356             template: VM_NAME_vmi_4
357             params:
358               VM_NAME:
359                 get_input:
360                 - cgi_fw_names
361                 - 1
362         security_group_refs:
363         - CGI_FW_RSG_SI_1
364         virtual_network_refs:
365         - get_input: nimbus_hsl_net_fqdn
366         virtual_machine_interface_properties:
367           service_interface_type:
368             get_input: nimbus_hsl_interface_type
369       requirements:
370       - binding:
371           capability: tosca.capabilities.network.Bindable
372           node: CGI_FW_SERVER_2
373           relationship: tosca.relationships.network.BindsTo
374     CGI_FW_NIMBUS_HSL_RVMI_1:
375       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
376       properties:
377         name:
378           str_replace:
379             template: VM_NAME_vmi_4
380             params:
381               VM_NAME:
382                 get_input:
383                 - cgi_fw_names
384                 - 0
385         security_group_refs:
386         - CGI_FW_RSG_SI_1
387         virtual_network_refs:
388         - get_input: nimbus_hsl_net_fqdn
389         virtual_machine_interface_properties:
390           service_interface_type:
391             get_input: nimbus_hsl_interface_type
392       requirements:
393       - binding:
394           capability: tosca.capabilities.network.Bindable
395           node: CGI_FW_SERVER_1
396           relationship: tosca.relationships.network.BindsTo
397     CGI_FW_SERVER_1:
398       type: org.openecomp.resource.vfc.nodes.heat.cgi_fw
399       properties:
400         flavor:
401           get_input: cgi_fw_flavor_name
402         availability_zone:
403           get_input: availability_zone_0
404         image:
405           get_input: cgi_fw_image_name
406         metadata:
407           vf_module_id:
408             get_input: vf_module_id
409           vnf_id:
410             get_input: vnf_id
411           vnf_name:
412             get_input: vnf_name
413           vf_module_name:
414             get_input: vf_module_name
415         contrail_service_instance_ind: true
416         name:
417           get_input:
418           - cgi_fw_names
419           - 0
420         scheduler_hints:
421           group: CGI_FW_RAG_group
422     CGI_FW_RSG_SI_1:
423       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
424       properties:
425         name:
426           str_replace:
427             template: VNF_NAME_sg_cgi_fw
428             params:
429               VNF_NAME:
430                 get_input: vnf_name
431         description: Security Group of CGI FW ServiceInstance
432         rules:
433         - protocol: tcp
434           ethertype: IPv4
435           remote_ip_prefix: 0.0.0.0/0
436           port_range_max: 65535
437           direction: egress
438           port_range_min: 0
439         - protocol: udp
440           ethertype: IPv4
441           remote_ip_prefix: 0.0.0.0/0
442           port_range_max: 65535
443           direction: egress
444           port_range_min: 0
445         - protocol: '132'
446           ethertype: IPv4
447           remote_ip_prefix: 0.0.0.0/0
448           port_range_max: 65535
449           direction: egress
450           port_range_min: 0
451         - protocol: icmp
452           ethertype: IPv4
453           remote_ip_prefix: 0.0.0.0/0
454           direction: egress
455         - protocol: tcp
456           ethertype: IPv6
457           remote_ip_prefix: ::/0
458           port_range_max: 65535
459           direction: egress
460           port_range_min: 0
461         - protocol: udp
462           ethertype: IPv6
463           remote_ip_prefix: ::/0
464           port_range_max: 65535
465           direction: egress
466           port_range_min: 0
467         - protocol: '132'
468           ethertype: IPv6
469           remote_ip_prefix: ::/0
470           port_range_max: 65535
471           direction: egress
472           port_range_min: 0
473         - protocol: '58'
474           ethertype: IPv6
475           remote_ip_prefix: ::/0
476           direction: egress
477         - protocol: tcp
478           ethertype: IPv4
479           remote_ip_prefix: 0.0.0.0/0
480           port_range_max: 65535
481           direction: ingress
482           port_range_min: 0
483         - protocol: udp
484           ethertype: IPv4
485           remote_ip_prefix: 0.0.0.0/0
486           port_range_max: 65535
487           direction: ingress
488           port_range_min: 0
489         - protocol: '132'
490           ethertype: IPv4
491           remote_ip_prefix: 0.0.0.0/0
492           port_range_max: 65535
493           direction: ingress
494           port_range_min: 0
495         - protocol: icmp
496           ethertype: IPv4
497           remote_ip_prefix: 0.0.0.0/0
498           direction: ingress
499         - protocol: tcp
500           ethertype: IPv6
501           remote_ip_prefix: ::/0
502           port_range_max: 65535
503           direction: ingress
504           port_range_min: 0
505         - protocol: udp
506           ethertype: IPv6
507           remote_ip_prefix: ::/0
508           port_range_max: 65535
509           direction: ingress
510           port_range_min: 0
511         - protocol: '132'
512           ethertype: IPv6
513           remote_ip_prefix: ::/0
514           port_range_max: 65535
515           direction: ingress
516           port_range_min: 0
517         - protocol: '58'
518           ethertype: IPv6
519           remote_ip_prefix: ::/0
520           direction: ingress
521     CGI_FW_SGI_PROTECTED_RVMI_DUMMY_2:
522       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
523       properties:
524         name:
525           str_replace:
526             template: VM_NAME_vmi_dummy
527             params:
528               VM_NAME:
529                 get_input:
530                 - cgi_fw_names
531                 - 1
532         security_group_refs:
533         - CGI_FW_RSG_SI_1
534         virtual_network_refs:
535         - get_input: sgi_protected_net_dummy_fqdn
536       requirements:
537       - binding:
538           capability: tosca.capabilities.network.Bindable
539           node: CGI_FW_SERVER_2
540           relationship: tosca.relationships.network.BindsTo
541     CGI_FW_SGI_PROTECTED_RVMI_DUMMY_1:
542       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
543       properties:
544         name:
545           str_replace:
546             template: VM_NAME_vmi_dummy
547             params:
548               VM_NAME:
549                 get_input:
550                 - cgi_fw_names
551                 - 0
552         security_group_refs:
553         - CGI_FW_RSG_SI_1
554         virtual_network_refs:
555         - get_input: sgi_protected_net_dummy_fqdn
556       requirements:
557       - binding:
558           capability: tosca.capabilities.network.Bindable
559           node: CGI_FW_SERVER_1
560           relationship: tosca.relationships.network.BindsTo
561     CGI_FW_SERVER_2:
562       type: org.openecomp.resource.vfc.nodes.heat.cgi_fw
563       properties:
564         flavor:
565           get_input: cgi_fw_flavor_name
566         availability_zone:
567           get_attribute:
568           - contrail_vmi_subinterface
569           - virtual_machine_interface_allowed_address_pairs
570           - allowed_address_pair
571         image:
572           get_input: cgi_fw_image_name
573         metadata:
574           vf_module_id:
575             get_input: vf_module_id
576           vnf_id:
577             get_input: vnf_id
578           vnf_name:
579             get_input: vnf_name
580           vf_module_name:
581             get_input: vf_module_name
582         contrail_service_instance_ind: true
583         name:
584           get_input:
585           - cgi_fw_names
586           - 1
587         scheduler_hints:
588           group: CGI_FW_RAG_group
589     contrail_vmi_subinterface:
590       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
591       properties:
592         name:
593           str_replace:
594             template: VM_NAME_PORT_3
595             params:
596               VM_NAME:
597                 get_input: vipr_atm_name_0
598         virtual_network_refs:
599         - get_input: oam_protected_net_fqdn
600         virtual_machine_interface_properties:
601           service_interface_type: left
602         port_tuple_refs:
603         - get_input: port_name
604   groups:
605     CGI_FW_RAG_group:
606       type: tosca.groups.Root
607       members:
608       - CGI_FW_SERVER_1
609       - CGI_FW_SERVER_2
610     base_firstnet_fgi_frwl_group:
611       type: org.openecomp.groups.heat.HeatStack
612       properties:
613         heat_file: ../Artifacts/base_firstnet_fgi_frwl.yml
614         description: |
615           HOT template to create SecurityGroup//ServerGroup//ServiceTemplate:
616       members:
617       - CGI_FW_OAM_PROTECTED_RVMI_2
618       - CGI_FW_SGI_DIRECT_RVMI_1
619       - CGI_FW_OAM_PROTECTED_RVMI_1
620       - CGI_FW_SGI_DIRECT_RVMI_2
621       - CGI_FW_NIMBUS_HSL_RVMI_2
622       - CGI_FW_NIMBUS_HSL_RVMI_1
623       - CGI_FW_SERVER_1
624       - CGI_FW_RSG_SI_1
625       - CGI_FW_SGI_PROTECTED_RVMI_DUMMY_2
626       - CGI_FW_SGI_PROTECTED_RVMI_DUMMY_1
627       - CGI_FW_SERVER_2
628       - contrail_vmi_subinterface
629   policies:
630     CGI_FW_RAG_policy:
631       type: org.openecomp.policies.placement.Antilocate
632       properties:
633         name:
634           str_replace:
635             template: VNF_NAME_srg_cgi_fw
636             params:
637               VNF_NAME:
638                 get_input: vnf_name
639         container_type: host
640       targets:
641       - CGI_FW_RAG_group