[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 / fulltest / mixPatterns / duplicateResourceIdsInDiffAddOnFiles / in / base_vota.yml
1 heat_template_version: 2015-04-30
2
3 description: >
4   HOT template to create network stack
5
6 parameters:
7 ####
8
9  int_oam_int_net_cidr:
10     type: string
11     description: int oam network
12  int_oam_int_net_gateway:
13     type: string
14     description: gateway for int oam
15  int_oam_int_net_dhcp:
16     type: string
17     description: int oam dhcp
18
19 #####
20
21  apps_db_int_net_cidr:
22     type: string
23     description: apps db int cidr
24  apps_db_int_net_gateway:
25     type: string
26     description: apps db int gateway
27  apps_db_int_net_dhcp:
28     type: string
29     description: apps db int dhcp
30 ###
31  lb3_kms_int_net_cidr:
32     type: string
33     description: lb3 network
34  lb3_kms_int_net_gateway:
35     type: string
36     description: lb3 gateway
37  lb3_kms_int_net_dhcp:
38     type: string
39     description: lb3 kms dhcp
40 ###
41
42  app1_kms_int_net_cidr:
43     type: string
44     description: app1_kms network
45  app1_kms_int_net_gateway:
46     type: string
47     description: app1_kms gateway
48  app1_kms_int_net_dhcp:
49     type: string
50     description: app1_kms dhcp
51 ####
52
53  apps_int_net_cidr:
54     type: string
55     description: apps int net
56  apps_int_net_gateway:
57     type: string
58     description: apps int gateway
59  apps_int_net_dhcp:
60     type: string
61     description: apps int dhcp
62 ####
63
64  lb1_gwaf_int_net_cidr:
65     type: string
66     description: lb1 gwaf
67  lb1_gwaf_int_net_gateway: 
68     type: string
69     description: lb1 gwaf gateway
70  lb_gwaf_int_net_dhcp: 
71     type: string
72     description: lb1 gwaf description
73 ####
74  gwaf_lb2_int_net_cird:
75     type: string
76     description: epc_sctp_a subnet
77  gwaf_lb2_int_net_gateway:
78     type: string
79     description: GWAF_LB2 network gateway
80  gwaf_lb2_int_net_pool_start:
81     type: string
82     description: GWAF_LB2 network ip pool start IP address
83  gwaf_lb2_int_net_pool_end:
84     type: string
85     description: GWAF_LB2 network ip pool end IP address
86
87 ####
88  vnf_name: 
89     type: string
90     description: vnf name 
91
92 resources:
93
94   apps_db_int_net:
95     type: OS::Neutron::Net
96     properties:
97       name: 
98         str_replace:
99             template: VF_NAME_apps_db_int_net
100             params:
101                 VF_NAME:    {get_param: vnf_name}
102
103   apps_db_int_subnet:
104     type: OS::Neutron::Subnet
105     properties:
106       network: { get_resource: apps_db_int_net }
107       cidr: { get_param: apps_db_int_net_cidr }
108       gateway_ip: { get_param: apps_db_int_net_gateway}
109       enable_dhcp: { get_param: apps_db_int_net_dhcp }
110
111
112   app1_kms_int_net:
113     type: OS::Neutron::Net
114     properties:
115      name: 
116         str_replace:
117             template: VF_NAME_app1_kms_int_net
118             params:
119                 VF_NAME:    {get_param: vnf_name}
120
121
122   app1_kms_int_subnet:
123     type: OS::Neutron::Subnet
124     properties:
125       network: { get_resource: app1_kms_int_net }
126       cidr: { get_param: app1_kms_int_net_cidr }
127       gateway_ip: { get_param: app1_kms_int_net_gateway}
128       enable_dhcp: { get_param: app1_kms_int_net_dhcp }
129
130
131
132   apps_int_net:
133     type: OS::Neutron::Net
134     properties:
135      name: 
136         str_replace:
137             template: VF_NAME_apps_int_net
138             params:
139                 VF_NAME:    {get_param: vnf_name}
140
141
142   apps_int_subnet:
143     type: OS::Neutron::Subnet
144     properties:
145       network: { get_resource:  apps_int_net }
146       cidr: { get_param: apps_int_net_cidr }
147       gateway_ip: { get_param: apps_int_net_gateway }
148       enable_dhcp: { get_param: apps_int_net_dhcp }
149
150   lb1_gwaf_int_net:
151     type: OS::Neutron::Net
152     properties:
153      name: 
154         str_replace:
155             template: VF_NAME_lb1_gwaf_int_net
156             params:
157                 VF_NAME:    {get_param: vnf_name}
158
159
160   lb1_gwaf_subnet:
161     type: OS::Neutron::Subnet
162     properties:
163       network: { get_resource: lb1_gwaf_int_net } 
164       cidr: { get_param: lb1_gwaf_int_net_cidr }
165       gateway_ip: { get_param: lb1_gwaf_int_net_gateway }
166       enable_dhcp: { get_param: lb_gwaf_int_net_dhcp }
167
168
169   gwaf_lb2_int_net:
170     type:  OS::Neutron::Net
171     properties:
172      name: 
173         str_replace:
174             template: VF_NAME_gwaf_lb2_int_net
175             params:
176                 VF_NAME:    {get_param: vnf_name}
177
178
179   gwaf_lb2_subnet:
180     type: OS::Neutron::Subnet
181     properties:
182       network: { get_resource: gwaf_lb2_int_net }
183       cidr: { get_param: gwaf_lb2_int_net_cird }
184       gateway_ip: { get_param: gwaf_lb2_int_net_gateway }
185       allocation_pools:
186         - start: { get_param: gwaf_lb2_int_net_pool_start }
187           end: { get_param: gwaf_lb2_int_net_pool_end }
188
189
190   lb3_kms_int_net:
191     type: OS::Neutron::Net
192     properties:
193      name: 
194         str_replace:
195             template: VF_NAME_lb3_kms_int_net
196             params:
197                 VF_NAME:    {get_param: vnf_name}
198
199
200   LB3_KMS_subnet:
201     type: OS::Neutron::Subnet
202     properties:
203       network: { get_resource: lb3_kms_int_net } 
204       cidr: { get_param: lb3_kms_int_net_cidr }
205       enable_dhcp: { get_param: lb3_kms_int_net_dhcp }
206       gateway_ip: { get_param: lb3_kms_int_net_gateway }
207
208   int_oam_int_net:
209     type: OS::Neutron::Net
210     properties:
211      name: 
212         str_replace:
213             template: VF_NAME_int_oam_int_net
214             params:
215                 VF_NAME:    {get_param: vnf_name}
216
217
218   int_oam_subnet:
219     type: OS::Neutron::Subnet
220     properties:
221       network: { get_resource: int_oam_int_net } 
222       cidr: { get_param: int_oam_int_net_cidr }
223       enable_dhcp: { get_param: int_oam_int_net_dhcp }
224       gateway_ip: { get_param: int_oam_int_net_gateway }
225
226
227
228   oam_sec_group:
229     type: OS::Neutron::SecurityGroup
230     properties:
231       description: oam security group
232       name: 
233         str_replace:
234             template: VF_NAME-oam_sec_group
235             params:
236                 VF_NAME:    {get_param: vnf_name}
237       rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
238               {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
239               {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0},
240               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
241               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
242               {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}
243               ]
244
245   int_oam_int_sec_group:
246     type: OS::Neutron::SecurityGroup
247     properties:
248       description: oam security group
249       name: 
250         str_replace:
251             template: VF_NAME-int_oam_sec_group
252             params:
253                 VF_NAME:    {get_param: vnf_name}
254       rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
255               {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
256               {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0},
257               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
258               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
259               {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}
260               ]
261
262
263   db_core_sec_group:
264     type: OS::Neutron::SecurityGroup
265     properties:
266       description: db core security group
267       name: 
268         str_replace:
269             template: VF_NAME-db_core_sec_group
270             params:
271                 VF_NAME:    {get_param: vnf_name}
272       rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
273               {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
274               {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0},
275               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
276               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
277               {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}
278               ]
279
280   otacs_core_sec_group:
281     type: OS::Neutron::SecurityGroup
282     properties:
283       description: otacs core security group
284       name: 
285         str_replace:
286             template: VF_NAME-otacs_core_sec_group
287             params:
288                 VF_NAME:    {get_param: vnf_name}
289       rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
290               {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
291               {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0},
292               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
293               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
294               {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}
295               ]
296
297
298   apps_int_sec_group:
299     type: OS::Neutron::SecurityGroup
300     properties:
301       description: apps security group
302       name: 
303         str_replace:
304             template: VF_NAME-apps_int_sec_group
305             params:
306                 VF_NAME:    {get_param: vnf_name}
307       rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
308               {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
309               {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0},
310               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
311               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
312               {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}
313               ]
314
315   apps_db_int_sec_group:
316     type: OS::Neutron::SecurityGroup
317     properties:
318       description: apps db security group
319       name: 
320         str_replace:
321             template: VF_NAME-apps_db_int_sec_group
322             params:
323                 VF_NAME:    {get_param: vnf_name}
324       rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
325               {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
326               {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0},
327               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
328               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
329               {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}
330               ]
331
332
333   lb1_gwaf_int_sec_group: 
334     type: OS::Neutron::SecurityGroup
335     properties:
336       description: fromexternal gwaf  security group
337       name: 
338         str_replace:
339             template: VF_NAME-lb1_gwaf_int_sec_group
340             params:
341                 VF_NAME:    {get_param: vnf_name}
342       rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
343               {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
344               {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0},
345               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
346               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
347               {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}
348               ]
349  
350
351   gwaf_lb2_sec_group: 
352     type: OS::Neutron::SecurityGroup
353     properties:
354       description: gwaf1_app1 security group
355       name: 
356         str_replace:
357             template: VF_NAME-gwaf_lb2_sec_group
358             params:
359                 VF_NAME:    {get_param: vnf_name}
360       rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
361               {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
362               {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0},
363               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
364               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
365               {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}
366               ]
367
368   app1_kms_int_sec_group:
369     type: OS::Neutron::SecurityGroup
370     properties:
371       description: app1 kms security group
372       name: 
373         str_replace:
374             template: VF_NAME-app1_kms_int_sec_group
375             params:
376                 VF_NAME:    {get_param: vnf_name}
377       rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
378               {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
379               {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0},
380               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
381               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
382               {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}
383               ]
384
385
386   lb1_oam_sec_group:
387     type: OS::Neutron::SecurityGroup
388     properties:
389       description: LB1 all security group
390       name: 
391         str_replace:
392             template: VF_NAME-lb1_oam_sec_group
393             params:
394                 VF_NAME:    {get_param: vnf_name}
395       rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
396               {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
397               {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0},
398               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
399               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
400               {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}
401               ]
402
403   lb3_kms_int_sec_group: 
404     type: OS::Neutron::SecurityGroup
405     properties:
406       description: lb3_kms_int_sec_group
407       name: 
408         str_replace:
409             template: VF_NAME-lb3_kms_int_sec_group
410             params:
411                 VF_NAME:    {get_param: vnf_name}
412       rules: [{"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
413               {"direction": egress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
414               {"direction": egress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0},
415               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": tcp, "remote_ip_prefix": 0.0.0.0/0},
416               {"direction": ingress, "ethertype": IPv4, "port_range_min": 1, "port_range_max": 65535, "protocol": udp, "remote_ip_prefix": 0.0.0.0/0},
417               {"direction": ingress, "ethertype": IPv4, "protocol": icmp, "remote_ip_prefix": 0.0.0.0/0}
418               ]
419
420
421 outputs:
422
423   apps_db_int_net_id:
424     description:  uuid of the network
425     value: {get_resource:   apps_db_int_net }
426
427   app1_kms_int_net_id:
428     description:  uuid of the network
429     value: {get_resource:   app1_kms_int_net }
430
431   apps_int_net_id:
432     description:  uuid of the network
433     value: {get_resource:   apps_int_net }
434
435   lb1_gwaf_int_net_id:
436     description:  uuid of the network
437     value: {get_resource:   lb1_gwaf_int_net }
438
439   gwaf_lb2_int_net_id:
440     description:  uuid of the network
441     value: {get_resource:   gwaf_lb2_int_net }
442
443   lb3_kms_int_net_id:
444     description:  uuid of the network
445     value: {get_resource:   lb3_kms_int_net }
446
447   int_oam_int_net_id:
448     description:  uuid of the network
449     value: {get_resource:   int_oam_int_net }
450
451   oam_protected_sec_group_id:
452     description:  uuid of the security group
453     value: {get_resource:   oam_sec_group }
454
455   int_oam_int_sec_group_id:
456     description:  uuid of the security group
457     value: {get_resource:   int_oam_int_sec_group }
458
459   db_core_sec_group_id:
460     description:  uuid of the security group
461     value: {get_resource:   db_core_sec_group }
462
463   otacs_core_sec_group_id:
464     description:  uuid of the security group
465     value: {get_resource:   otacs_core_sec_group }
466
467   apps_int_sec_group_id:
468     description:  uuid of the security group
469     value: {get_resource:   apps_int_sec_group }
470
471   apps_db_int_sec_group_id:
472     description:  uuid of the security group
473     value: {get_resource:   apps_db_int_sec_group }
474
475   lb1_gwaf_int_sec_group_id: 
476     description:  uuid of the security group
477     value: {get_resource:   lb1_gwaf_int_sec_group } 
478
479   gwaf_lb2_int_sec_group_id: 
480     description:  uuid of the security group
481     value: {get_resource:   gwaf_lb2_sec_group }
482
483   app1_kms_int_sec_group_id:
484     description:  uuid of the security group
485     value: {get_resource:   app1_kms_int_sec_group }
486
487   lb1_oam_protected_sec_group_id:
488     description:  uuid of the security group
489     value: {get_resource:   lb1_oam_sec_group }
490
491   lb3_kms_int_sec_group_id:
492     description:  uuid of the security group
493     value: {get_resource:   lb3_kms_int_sec_group }
494
495