[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / att-sdc-translator-impl / src / test / resources / mock / services / heattotosca / attValetGroupAssignment / groupNameParameter / 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.vipr_atm:
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 the VF Module instance
17       default: '5678'
18       constraints:
19       - max_length: 255
20       - min_length: 1
21     vipr_atm_ha_two_id:
22       hidden: false
23       immutable: false
24       type: string
25       description: Neutron UUID of the second high availability network for the vIPR-ATM firewal
26       default: b75e27cf-452f-48ef-b107-8777e645c22d
27       constraints: [
28         ]
29     vipr_atm_oam_net_security_groups:
30       hidden: false
31       immutable: false
32       type: list
33       description: List of the security group to apply to the vIPR-ATM firewall management port
34       default:
35       - c2369210-d154-4e4a-984d-047674beb5da
36       entry_schema:
37         type: string
38     vipr_atm_valet_eg_0:
39       hidden: false
40       immutable: false
41       type: string
42       description: The Valet 1.0 Exclusivity Group for the vIPR-ATM firewall virtual machine
43       default: CORE_INFRASTRUCTURE_VNFs
44       constraints:
45       - max_length: 255
46       - min_length: 1
47     vipr_atm_name_0:
48       hidden: false
49       immutable: false
50       type: string
51       description: Name of the vIPR-ATM firewall virtual machine
52       default: zrcs1cctvpr001
53       constraints:
54       - max_length: 255
55       - min_length: 1
56     vipr_atm_image_name:
57       hidden: false
58       immutable: false
59       type: string
60       description: Image name of the vIPR-ATM firewall virtual machine
61       default: vipr-atm-pan7.1
62       constraints: [
63         ]
64     vnf_name:
65       hidden: false
66       immutable: false
67       type: string
68       description: Unique Name for this VF instance
69       default: RD3TX100vfw
70       constraints:
71       - max_length: 255
72       - min_length: 1
73     vipr_atm_service_left_fqdn:
74       hidden: false
75       immutable: false
76       type: string
77       description: FQDN of the Left service network for the vIPR-ATM firewall
78       default: default-domain:vIPR-ATM:vIPR-ATM-service-left
79       constraints:
80       - pattern: ^(?:[^:]{1,64}:){2}(?:[^:]{1,255})$
81     vipr_atm_ha_one_ip_0:
82       hidden: false
83       immutable: false
84       type: string
85       description: Fixed IP to apply to the vIPR-ATM firewall ha0 port
86       default: 192.168.35.1
87       constraints:
88       - pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
89     vipr_atm_ha_one_id:
90       hidden: false
91       immutable: false
92       type: string
93       description: Neutron UUID of the first high availability network for the vIPR-ATM firewall
94       default: 4abaafc8-b8af-40b9-b0d0-32bd91f958ee
95       constraints: [
96         ]
97     vnf_id:
98       hidden: false
99       immutable: false
100       type: string
101       description: Unique ID for this VF instance
102       default: '1234'
103       constraints:
104       - max_length: 255
105       - min_length: 1
106     vipr_atm_flavor_name:
107       hidden: false
108       immutable: false
109       type: string
110       description: Flavor for the vIPR-ATM firewall virtual machine
111       default: m1.vipr-atm-pan
112       constraints: [
113         ]
114     availability_zone_0:
115       hidden: false
116       immutable: false
117       type: string
118       description: Availability Zone for the vIPR-ATM firewall virtual machine
119       default: nova
120       constraints:
121       - max_length: 255
122       - min_length: 1
123     vipr_atm_server_group:
124       hidden: false
125       immutable: false
126       type: string
127       description: Server Group with anti-affinity policy for the vIPR-ATM firewall virtual machine
128       default: 885dbf7f-fcb2-42d2-a694-a5930ce35b71
129       constraints:
130       - max_length: 255
131       - min_length: 1
132     vipr_atm_service_left_ip_prefix:
133       hidden: false
134       immutable: false
135       type: string
136       description: Left vIPR-ATM service network IP address prefix
137       default: 10.254.3.0
138       constraints:
139       - pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
140     vipr_atm_ha_one_cidr:
141       hidden: false
142       immutable: false
143       type: string
144       description: vIPR-ATM private High Availability Network One IP address CIDR
145       default: 192.168.35.0/29
146       constraints:
147       - pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/(?:3[0-2]|[12]?[0-9])$
148     vipr_atm_service_right_fqdn:
149       hidden: false
150       immutable: false
151       type: string
152       description: FQDN of the Right service network for the vIPR-ATM firewall
153       default: default-domain:vIPR-ATM:vIPR-ATM-service-right
154       constraints:
155       - pattern: ^(?:[^:]{1,64}:){2}(?:[^:]{1,255})$
156     vipr_atm_service_right_ip_prefix_len:
157       hidden: false
158       immutable: false
159       type: float
160       description: Right vIPR-ATM service network IP address prefix length
161       default: 24
162       constraints:
163       - in_range:
164         - 0
165         - 32
166     vipr_atm_ha_two_ip_0:
167       hidden: false
168       immutable: false
169       type: string
170       description: Fixed IP to apply to the vIPR-ATM firewall ha1 port
171       default: 192.168.35.9
172       constraints:
173       - pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
174     vipr_atm_ha_two_cidr:
175       hidden: false
176       immutable: false
177       type: string
178       description: vIPR-ATM private High Availability Network Two IP address CIDR
179       default: 192.168.35.8/29
180       constraints:
181       - pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/(?:3[0-2]|[12]?[0-9])$
182     oam_net_id:
183       hidden: false
184       immutable: false
185       type: string
186       description: Neutron UUID for the managemnet network name of the vIPR-ATM firewall
187       default: 1ac9d738-f545-413a-a9a2-b44309edc511
188       constraints: [
189         ]
190     vipr_atm_service_right_ip_prefix:
191       hidden: false
192       immutable: false
193       type: string
194       description: Right vIPR-ATM service network IP address prefix
195       default: 10.254.4.0
196       constraints:
197       - pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
198     vipr_atm_service_left_ip_prefix_len:
199       hidden: false
200       immutable: false
201       type: float
202       description: Left vIPR-ATM service network IP address prefix length
203       default: 24
204       constraints:
205       - in_range:
206         - 0
207         - 32
208     vipr_atm_contrail_service_instance_fqdn:
209       hidden: false
210       immutable: false
211       type: string
212       description: FQDN of the vIPR-ATM firewall Contrail service instance for the port tuple
213       default: default-domain:vIPR-ATM:vIPR-ATM-service-instance
214       constraints:
215       - pattern: ^(?:[^:]{1,64}:){2}(?:[^:]{1,255})$
216     vipr_atm_ha_two_security_groups:
217       hidden: false
218       immutable: false
219       type: list
220       description: List of the security group to apply to the vIPR-ATM firewall ha1 port
221       default:
222       - 29e29a4a-b45d-42c2-ac14-b12a70036ae6
223       entry_schema:
224         type: string
225     vipr_atm_ha_one_security_groups:
226       hidden: false
227       immutable: false
228       type: list
229       description: List of the security group to apply to the vIPR-ATM firewall ha0 port
230       default:
231       - cbf8049e-69e8-48c3-a06f-255634391403
232       entry_schema:
233         type: string
234   node_templates:
235     vIPR_ATM_OAM_SG:
236       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
237       properties:
238         name:
239           str_replace:
240             template: VNF_NAME_VIPR_ATM_OAM_SG
241             params:
242               VNF_NAME:
243                 get_input: vnf_name
244         rules:
245         - protocol: tcp
246           remote_ip_prefix: 0.0.0.0/0
247           port_range_max: 22
248           port_range_min: 22
249         - protocol: tcp
250           remote_ip_prefix: 0.0.0.0/0
251           port_range_max: 443
252           port_range_min: 443
253         - protocol: tcp
254           remote_ip_prefix: 0.0.0.0/0
255           port_range_max: 3978
256           port_range_min: 3978
257         - protocol: icmp
258           remote_ip_prefix: 0.0.0.0/0
259     vIPR_ATM_Left_RVMI:
260       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
261       properties:
262         name:
263           str_replace:
264             template: VM_NAME_PORT_3
265             params:
266               VM_NAME:
267                 get_input: vipr_atm_name_0
268         virtual_network_refs:
269         - get_input: vipr_atm_service_left_fqdn
270         virtual_machine_interface_properties:
271           service_interface_type: left
272         port_tuple_refs:
273         - UNSUPPORTED_RESOURCE_vIPR_ATM_RPT
274       requirements:
275       - link:
276           capability: tosca.capabilities.network.Linkable
277           node: vIPR_ATM_Service_Left
278           relationship: tosca.relationships.network.LinksTo
279       - binding:
280           capability: tosca.capabilities.network.Bindable
281           node: vIPR_ATM_Firewall
282           relationship: tosca.relationships.network.BindsTo
283     vIPR_ATM_Service_Right:
284       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
285       properties:
286         network_ipam_refs_data:
287         - network_ipam_refs_data_ipam_subnets:
288           - network_ipam_refs_data_ipam_subnets_subnet:
289               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
290                 get_input: vipr_atm_service_right_ip_prefix_len
291               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
292                 get_input: vipr_atm_service_right_ip_prefix
293         network_name:
294           str_replace:
295             template: VNF_NAME_VIPR_ATM_SERVICE_RIGHT_NETWORK
296             params:
297               VNF_NAME:
298                 get_input: vnf_name
299         network_ipam_refs:
300         - default-domain:default-project:default-network-ipam
301     vIPR_ATM_Ha_Two:
302       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
303       properties:
304         dhcp_enabled: false
305         network_name:
306           str_replace:
307             template: VNF_NAME_VIPR_ATM_HA_TWO_NETWORK
308             params:
309               VNF_NAME:
310                 get_input: vnf_name
311         subnets:
312           vIPR_ATM_Ha_Two_Subnet:
313             enable_dhcp: false
314             name:
315               str_replace:
316                 template: NET_NAME_SUBNET
317                 params:
318                   NET_NAME:
319                     get_attribute:
320                     - vIPR_ATM_Ha_Two
321                     - network_name
322             cidr:
323               get_input: vipr_atm_ha_two_cidr
324       requirements:
325       - dependency:
326           capability: tosca.capabilities.Node
327           node: vIPR_ATM_Ha_Two
328           relationship: tosca.relationships.DependsOn
329     vIPR_ATM_HA_TWO_SG:
330       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
331       properties:
332         name:
333           str_replace:
334             template: VNF_NAME_VIPR_ATM_HA_TWO_SG
335             params:
336               VNF_NAME:
337                 get_input: vnf_name
338         rules:
339         - remote_mode: remote_group_id
340     vIPR_ATM_HA_ONE_SG:
341       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
342       properties:
343         name:
344           str_replace:
345             template: VNF_NAME_VIPR_ATM_HA_ONE_SG
346             params:
347               VNF_NAME:
348                 get_input: vnf_name
349         rules:
350         - remote_mode: remote_group_id
351     vIPR_ATM_Ha_One:
352       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
353       properties:
354         dhcp_enabled: false
355         network_name:
356           str_replace:
357             template: VNF_NAME_VIPR_ATM_HA_ONE_NETWORK
358             params:
359               VNF_NAME:
360                 get_input: vnf_name
361         subnets:
362           vIPR_ATM_Ha_One_Subnet:
363             enable_dhcp: false
364             name:
365               str_replace:
366                 template: NET_NAME_SUBNET
367                 params:
368                   NET_NAME:
369                     get_attribute:
370                     - vIPR_ATM_Ha_One
371                     - network_name
372             cidr:
373               get_input: vipr_atm_ha_one_cidr
374       requirements:
375       - dependency:
376           capability: tosca.capabilities.Node
377           node: vIPR_ATM_Ha_One
378           relationship: tosca.relationships.DependsOn
379     vIPR_ATM_OAM_0_Port:
380       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
381       properties:
382         ip_requirements:
383         - ip_version: 4
384           ip_count_required:
385             is_required: false
386           floating_ip_count_required:
387             is_required: false
388         security_groups:
389           get_input: vipr_atm_oam_net_security_groups
390         mac_requirements:
391           mac_count_required:
392             is_required: false
393         name:
394           str_replace:
395             template: VM_NAME_PORT_0
396             params:
397               VM_NAME:
398                 get_input: vipr_atm_name_0
399         network_role_tag: oam
400         network:
401           get_input: oam_net_id
402       requirements:
403       - binding:
404           capability: tosca.capabilities.network.Bindable
405           node: vIPR_ATM_Firewall
406           relationship: tosca.relationships.network.BindsTo
407     vIPR_ATM_Service_Left:
408       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
409       properties:
410         network_ipam_refs_data:
411         - network_ipam_refs_data_ipam_subnets:
412           - network_ipam_refs_data_ipam_subnets_subnet:
413               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
414                 get_input: vipr_atm_service_left_ip_prefix_len
415               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
416                 get_input: vipr_atm_service_left_ip_prefix
417         network_name:
418           str_replace:
419             template: VNF_NAME_VIPR_ATM_SERVICE_LEFT_NETWORK
420             params:
421               VNF_NAME:
422                 get_input: vnf_name
423         network_ipam_refs:
424         - default-domain:default-project:default-network-ipam
425     vIPR_ATM_Right_RVMI:
426       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
427       properties:
428         name:
429           str_replace:
430             template: VM_NAME_PORT_4
431             params:
432               VM_NAME:
433                 get_input: vipr_atm_name_0
434         virtual_network_refs:
435         - get_input: vipr_atm_service_right_fqdn
436         virtual_machine_interface_properties:
437           service_interface_type: right
438         port_tuple_refs:
439         - UNSUPPORTED_RESOURCE_vIPR_ATM_RPT
440       requirements:
441       - link:
442           capability: tosca.capabilities.network.Linkable
443           node: vIPR_ATM_Service_Right
444           relationship: tosca.relationships.network.LinksTo
445       - binding:
446           capability: tosca.capabilities.network.Bindable
447           node: vIPR_ATM_Firewall
448           relationship: tosca.relationships.network.BindsTo
449     vIPR_ATM_Ha_Two_0_Port:
450       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
451       properties:
452         ip_requirements:
453         - ip_version: 4
454           ip_count_required:
455             is_required: true
456           floating_ip_count_required:
457             is_required: false
458         security_groups:
459           get_input: vipr_atm_ha_two_security_groups
460         fixed_ips:
461         - ip_address:
462             get_input: vipr_atm_ha_two_ip_0
463         mac_requirements:
464           mac_count_required:
465             is_required: false
466         name:
467           str_replace:
468             template: VM_NAME_PORT_2
469             params:
470               VM_NAME:
471                 get_input: vipr_atm_name_0
472         network:
473           get_input: vipr_atm_ha_two_id
474       requirements:
475       - link:
476           capability: tosca.capabilities.network.Linkable
477           node: vIPR_ATM_Ha_Two
478           relationship: tosca.relationships.network.LinksTo
479       - binding:
480           capability: tosca.capabilities.network.Bindable
481           node: vIPR_ATM_Firewall
482           relationship: tosca.relationships.network.BindsTo
483     vIPR_ATM_Firewall:
484       type: org.openecomp.resource.vfc.nodes.heat.vipr_atm
485       properties:
486         flavor:
487           get_input: vipr_atm_flavor_name
488         availability_zone:
489           get_input: availability_zone_0
490         image:
491           get_input: vipr_atm_image_name
492         metadata:
493           vf_module_id:
494             get_input: vf_module_id
495           vnf_id:
496             get_input: vnf_id
497           vnf_name:
498             get_input: vnf_name
499         contrail_service_instance_ind: true
500         name:
501           get_input: vipr_atm_name_0
502         scheduler_hints:
503           group:
504             get_input: vipr_atm_server_group
505     vIPR_ATM_Ha_One_0_Port:
506       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
507       properties:
508         ip_requirements:
509         - ip_version: 4
510           ip_count_required:
511             is_required: true
512           floating_ip_count_required:
513             is_required: false
514         security_groups:
515           get_input: vipr_atm_ha_one_security_groups
516         fixed_ips:
517         - ip_address:
518             get_input: vipr_atm_ha_one_ip_0
519         mac_requirements:
520           mac_count_required:
521             is_required: false
522         name:
523           str_replace:
524             template: VM_NAME_PORT_1
525             params:
526               VM_NAME:
527                 get_input: vipr_atm_name_0
528         network:
529           get_input: vipr_atm_ha_one_id
530       requirements:
531       - link:
532           capability: tosca.capabilities.network.Linkable
533           node: vIPR_ATM_Ha_One
534           relationship: tosca.relationships.network.LinksTo
535       - binding:
536           capability: tosca.capabilities.network.Bindable
537           node: vIPR_ATM_Firewall
538           relationship: tosca.relationships.network.BindsTo
539   groups:
540     vIPR_ATM_Server_Group_group:
541       type: tosca.groups.Root
542       members:
543       - vIPR_ATM_Firewall
544     vIPR-ATM-Base_group:
545       type: org.openecomp.groups.heat.HeatStack
546       properties:
547         heat_file: ../Artifacts/vIPR-ATM-Base.yaml
548         description: "HOT template to create the vIPR-ATM firwall service template\
549           \ and instance. This template creates the following - Two service virtual\
550           \ networks for each side (left and right) of the vIPR-ATM firewalls - Two\
551           \ virtual networks for high availability between the vIPR-ATM firewalls\
552           \ - A Contrail Service Template for the vIPR-ATM service - A Contrail Service\
553           \ Instance for the vIPR-ATM service\nThe firewall virtual machines connected\
554           \ to these created networks and managed by the vIPR-ATM service instance\
555           \ will be created by the vIPR-ATM-Instance.yaml HOT template.\nNetwork Policy\
556           \ that includes the vIPR-ATM service instance will be created by client\
557           \ specific HOT templates or Contrail APIs. \n"
558       members:
559       - vIPR_ATM_Ha_One
560       - vIPR_ATM_OAM_SG
561       - vIPR_ATM_Service_Left
562       - vIPR_ATM_Service_Right
563       - vIPR_ATM_Ha_Two
564       - vIPR_ATM_HA_TWO_SG
565       - vIPR_ATM_HA_ONE_SG
566     vIPR_ATM_Valet_EG_0_group:
567       type: tosca.groups.Root
568       members:
569       - vIPR_ATM_Firewall
570     vIPR-ATM-Instance_group:
571       type: org.openecomp.groups.heat.HeatStack
572       properties:
573         heat_file: ../Artifacts/vIPR-ATM-Instance.yaml
574         description: |
575           HOT template to create a vIPR-ATM firwall service instance. This template creates the following - Contrail Port Tuple for this firwall service instance - Virtual machine interfaces and IP addresses attached to the two  service virtual networks.  These virtual machine interfaces will be used by the vIPR firewall service instance - Neutron ports for OAM, HA0, and HA1 networks - OS::Nova::Server with the created virtual machine interface and ports. This is the firewall service instance virtual machine.
576       members:
577       - vIPR_ATM_Left_RVMI
578       - vIPR_ATM_OAM_0_Port
579       - vIPR_ATM_Right_RVMI
580       - vIPR_ATM_Ha_Two_0_Port
581       - vIPR_ATM_Firewall
582       - vIPR_ATM_Ha_One_0_Port
583   outputs:
584     vipr_atm_contrail_service_instance_fqdn:
585       description: The FQDN for the Contrail Service Instance that is needed to create tenant OAM network policy to service change through the vIPR-ATM firewall.
586       value:
587         list_join:
588         - ':'
589         - get_attr:
590           - vIPR_ATM_Service_Instance
591           - fq_name
592   policies:
593     vIPR_ATM_Valet_EG_0_policy:
594       type: org.openecomp.policies.placement.valet.Exclusivity
595       properties:
596         level: host
597       targets:
598       - vIPR_ATM_Valet_EG_0_group
599     vIPR_ATM_Server_Group_policy:
600       type: org.openecomp.policies.placement.Antilocate
601       properties:
602         name:
603           str_replace:
604             template: VNF_NAME_VIPR_ATM_SERVER_GROUP
605             params:
606               VNF_NAME:
607                 get_input: vnf_name
608         container_type: host
609       targets:
610       - vIPR_ATM_Server_Group_group