[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 / singleSubstitution / generalVf / in / vmme_small.yml
1 heat_template_version: 2013-05-23
2
3 description: HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc
4
5 parameters:
6   fsb1-oam-ip:
7     type: string
8   fsb2-oam-ip:
9     type: string
10   vlc1-oam-ip:
11     type: string
12   vlc2-oam-ip:
13     type: string
14   Internal1_net_pool_start:
15     type: string
16   Internal1_net_pool_end:
17     type: string
18   Internal2_net_pool_start:
19     type: string
20   Internal2_net_pool_end:
21     type: string
22   Internal1_default_gateway:
23     type: string
24   Internal2_default_gateway:
25     type: string
26   Internal1_shared:
27     type: string
28   Internal1_external:
29     type: string
30   Internal1_net_name:
31     type: string
32   Internal1_subnet_name:
33     type: string
34   Internal1_ipam_name:
35     type: string
36   Internal1_cidr:
37     type: string
38   Internal1_forwarding_mode:
39     type: string
40   Internal1_dhcp:
41     type: string
42   Internal1_name:
43     type: string
44   Internal2_net_name:
45     type: string
46   Internal2_subnet_name:
47     type: string
48   Internal2_ipam_name:
49     type: string
50   Internal2_cidr:
51     type: string
52   Internal2_forwarding_mode:
53     type: string
54   Internal2_dhcp:
55     type: string
56   Internal2_name:
57     type: string
58   Internal2_shared:
59     type: string
60   Internal2_external:
61     type: string
62   vlc1-sctp-a-ip:
63     type: string
64   vlc1-sctp-b-ip:
65     type: string
66   vlc1-gtp-ip:
67     type: string
68   vlc2-sctp-a-ip:
69     type: string
70   vlc2-sctp-b-ip:
71     type: string
72   vlc2-gtp-ip:
73     type: string
74   fsb1-name:
75     type: string
76     description: Name of fsb1
77   fsb2-name:
78     type: string
79     description: Name of fsb1
80   ncb1-name:
81     type: string
82     description: Name of ncb1
83   ncb2-name:
84     type: string
85     description: Name of ncb2
86   vlc1-name:
87     type: string
88     description: Name of vlc1
89   vlc2-name:
90     type: string
91     description: Name of vlc2
92   gpb1-name:
93     type: string
94     description: Name of gpb1
95   gpb2-name:
96     type: string
97     description: Name of gpb2
98   fsb_zone:
99     type: string
100     description: cluster for spawnning fsb instances
101   fsb1-image:
102     type: string
103     description: Name of image to use for server fsb1
104   fsb1-flavor:
105     type: string
106     description: Flavor to use for servers  fsb1
107   oam_net_id:
108     type: string
109     description: uuid of oam network
110   fsb1-Internal1-mac:
111     type: string
112     description: static mac address assigned to fsb1-Internal1
113   fsb1-Internal2-mac:
114     type: string
115     description: static mac address assigned to fsb1-Internal2
116   fsb2-image:
117     type: string
118     description: Name of image to use for server fsb2
119   fsb2-flavor:
120     type: string
121     description: Flavor to use for servers  fsb2
122   fsb2-Internal1-mac:
123     type: string
124     description: static mac address assigned to fsb2-Internal1
125   fsb2-Internal2-mac:
126     type: string
127     description: static mac address assigned to fsb2-Internal2
128   pxe-image:
129     type: string
130     description: Name of image to use for server ncb
131   ncb-flavor:
132     type: string
133     description: Flavor to use for servers ncb
134   ncb_zone:
135     type: string
136     description: cluster for spawnning ncb instances
137   ncb1-Internal1-mac:
138     type: string
139     description: static mac address assigned to ncb1-Internal1
140   ncb1-Internal2-mac:
141     type: string
142     description: static mac address assigned to ncb1-Internal2
143   ncb2-Internal1-mac:
144     type: string
145     description: static mac address assigned to ncb2-Internal1
146   ncb2-Internal2-mac:
147     type: string
148     description: static mac address assigned to ncb2-Internal2
149   gpb-flavor:
150     type: string
151     description: Flavor to use for servers gpb
152   gpb_zone:
153     type: string
154     description: cluster for spawnning gpb instances
155   gpb1-Internal1-ip:
156     type: string
157   gpb1-Internal1-mac:
158     type: string
159     description: static mac address assigned to gpb1-Internal1
160   gpb1-Internal2-mac:
161     type: string
162     description: static mac address assigned to gpb1-Internal2
163   gpb2-Internal1-mac:
164     type: string
165     description: static mac address assigned to gpb2-Internal1
166   gpb2-Internal2-mac:
167     type: string
168     description: static mac address assigned to gpb2-Internal2
169   vlc-flavor:
170     type: string
171     description: Flavor to use for servers vlc
172   vlc_zone:
173     type: string
174     description: cluster for spawnning vlc instances
175   vlc1-Internal1-mac:
176     type: string
177     description: static mac address assigned to vlc1-Internal1
178   vlc1-Internal2-mac:
179     type: string
180     description: static mac address assigned to vlc1-Internal2
181   vlc2-Internal1-mac:
182     type: string
183     description: static mac address assigned to vlc2-Internal1
184   vlc2-Internal2-mac:
185     type: string
186     description: static mac address assigned to vlc2-Internal2
187   epc-sctp-a-net-name:
188     type: string
189     description: epc-sctp-a net name
190   epc-sctp-a-net-rt:
191     type: string
192     description: epc-sctp-a route target
193   epc-sctp-a-net-cidr:
194     type: string
195     description: epc-sctp-a subnet
196   epc-sctp-a-net-gateway:
197     type: string
198     description: epc-sctp-a-net network gateway
199   epc-sctp-a-pool-start:
200     type: string
201     description: epc-sctp-a-net network ip pool start IP address
202   epc-sctp-a-pool-end:
203     type: string
204     description: epc-sctp-a-net network ip pool end IP address
205   epc-sctp-b-net-name:
206     type: string
207     description: epc-sctp-b net name
208   epc-sctp-b-net-rt:
209     type: string
210     description: epc-sctp-b route target
211   epc-sctp-b-net-cidr:
212     type: string
213     description: epc-sctp-b subnet
214   epc-sctp-b-net-gateway:
215     type: string
216     description: epc-sctp-b-net network gateway
217   epc-sctp-b-pool-start:
218     type: string
219     description: epc-sctp-b-net network ip pool start IP address
220   epc-sctp-b-pool-end:
221     type: string
222     description: epc-sctp-b-net network ip pool end IP address
223   epc-gtp-net-name:
224     type: string
225     description:  gtp net name
226   epc-gtp-net-rt:
227     type: string
228     description:  gtp route target
229   epc-gtp-net-cidr:
230     type: string
231     description:  gtp stubnet
232   epc-gtp-net-gateway:
233     type: string
234     description:  gtp network gateway
235   epc-gtp-pool-start:
236     type: string
237     description:  gtp network ip pool start IP address
238   epc-gtp-pool-end:
239     type: string
240     description: gtp network ip pool end IP address
241   static_prefix_sctp_a_1:
242     type: string
243     description: Static Prefix
244   static_prefix_sctp_b_1:
245     type: string
246     description: Static Prefix
247   static_prefix_gtp_1:
248     type: string
249     description: Static Prefix
250   VMME_FSB1_boot_volume:
251     type: string
252   VMME_FSB2_boot_volume:
253     type: string 
254
255 resources:
256
257   Internal1_ipam:
258     type: OS::Contrail::NetworkIpam
259     properties:
260       name: { get_param: Internal1_ipam_name }
261
262   Internal2_ipam:
263     type: OS::Contrail::NetworkIpam
264     properties:
265       name: { get_param: Internal2_ipam_name }
266
267   Internal1-net:
268     type: OS::Contrail::VirtualNetwork
269     properties:
270       name: { get_param: Internal1_net_name }
271       forwarding_mode: { get_param: Internal1_forwarding_mode }
272       shared: { get_param: Internal1_shared }
273       external: { get_param: Internal1_external }
274 #      route_targets: { "Fn::Split" : [ ",", Ref: route_targets ] }
275
276   Internal1-subnet:
277     type: OS::Neutron::Subnet
278     properties:
279       network_id: { get_resource: Internal1-net }
280       cidr: { get_param: Internal1_cidr }
281       gateway_ip: { get_param: Internal1_default_gateway }
282       enable_dhcp: { get_param: Internal1_dhcp }
283
284
285 #  Internal1-subnet:
286 #    type: OS::Contrail::VnSubnet
287 #    properties:
288 #      name: { get_param: Internal1_subnet_name  }
289 #      network: { get_resource: Internal1-net }
290 #      ip_prefix: { get_param: Internal1_cidr }
291  #     ipam: { get_resource: Internal1_ipam }
292  #     enable_dhcp: { get_param: Internal1_dhcp }
293  #     default_gateway: { get_param: Internal1_default_gateway }
294  #     allocation_pools:
295   #      - start: { get_param: Internal1_net_pool_start }
296   #        end: { get_param: Internal1_net_pool_end }
297
298
299
300   Internal2-net:
301     type: OS::Contrail::VirtualNetwork
302     properties:
303       name: { get_param: Internal2_name }
304       forwarding_mode: { get_param: Internal2_forwarding_mode }
305       shared: { get_param: Internal2_shared }
306       external: { get_param: Internal2_external }
307 #      route_targets: { "Fn::Split" : [ ",", Ref: route_targets ] }
308
309 #  Internal2-subnet:
310 #    type: OS::Contrail::VnSubnet
311 #    properties:
312 #      name: { get_param: Internal2_subnet_name  }
313 #      network: { get_resource: Internal2-net }
314 #      ip_prefix: { get_param: Internal2_cidr }
315 #      ipam: { get_resource: Internal2_ipam }
316 #      enable_dhcp: { get_param: Internal2_dhcp }
317 #      default_gateway: { get_param: Internal2_default_gateway }
318 #      allocation_pools:
319 #        - start: { get_param: Internal2_net_pool_start }
320 #          end: { get_param: Internal2_net_pool_end }
321
322   Internal2-subnet:
323     type: OS::Neutron::Subnet
324     properties:
325       network_id: { get_resource: Internal2-net }
326       cidr: { get_param: Internal2_cidr }
327       gateway_ip: { get_param: Internal2_default_gateway }
328       enable_dhcp: { get_param: Internal2_dhcp }
329
330   epc-sctp-a-net:
331     type: OS::Contrail::VirtualNetwork
332     properties:
333       name: { get_param: epc-sctp-a-net-name }
334       route_targets: [ get_param: epc-sctp-a-net-rt ]
335
336
337   epc-sctp-a-subnet:
338     type: OS::Neutron::Subnet
339     properties:
340       network_id: { get_resource: epc-sctp-a-net }
341       cidr: { get_param: epc-sctp-a-net-cidr }
342       gateway_ip: { get_param: epc-sctp-a-net-gateway }
343       allocation_pools:
344         - start: { get_param: epc-sctp-a-pool-start }
345           end: { get_param: epc-sctp-a-pool-end }
346
347   epc-sctp-b-net:
348     type: OS::Contrail::VirtualNetwork
349     properties:
350       name: { get_param: epc-sctp-b-net-name }
351       route_targets: [ get_param: epc-sctp-b-net-rt ]
352
353   epc-sctp-b-subnet:
354     type: OS::Neutron::Subnet
355     properties:
356       network_id: { get_resource: epc-sctp-b-net }
357       cidr: { get_param: epc-sctp-b-net-cidr }
358       gateway_ip: { get_param: epc-sctp-b-net-gateway }
359       allocation_pools:
360         - start: { get_param: epc-sctp-b-pool-start }
361           end: { get_param: epc-sctp-b-pool-end }
362
363   epc-gtp-net:
364     type: OS::Contrail::VirtualNetwork
365     properties:
366       name: { get_param: epc-gtp-net-name }
367       route_targets: [ get_param: epc-gtp-net-rt ]
368
369   epc-gtp-subnet:
370     type: OS::Neutron::Subnet
371     properties:
372       network_id: { get_resource: epc-gtp-net }
373       cidr: { get_param: epc-gtp-net-cidr }
374       gateway_ip: { get_param: epc-gtp-net-gateway }
375       allocation_pools:
376         - start: { get_param: epc-gtp-pool-start }
377           end: { get_param: epc-gtp-pool-end }
378
379   FSB1:
380     type: OS::Nova::Server
381     properties:
382       name: { get_param: fsb1-name }
383       block_device_mapping: [{device_name: "vda", volume_id : {get_param: VMME_FSB1_boot_volume }, delete_on_termination: "false" }]
384       flavor: { get_param: fsb1-flavor }
385       availability_zone: { get_param: fsb_zone }
386       networks:
387         - port: { get_resource: FSB1_Internal1 }
388         - port: { get_resource: FSB1_Internal2 }
389         - port: { get_resource: FSB1_OAM }
390
391   FSB1_Internal1:
392     type: OS::Neutron::Port
393     properties:
394       network_id: { get_resource: Internal1-net }
395       mac_address: { get_param: fsb1-Internal1-mac }
396
397   FSB1_Internal2:
398     type: OS::Neutron::Port
399     properties:
400       network: { get_resource: Internal2-net }
401       mac_address: { get_param: fsb1-Internal2-mac }
402
403   FSB1_OAM:
404     type: OS::Neutron::Port
405     properties:
406       network: { get_param: oam_net_id }
407       fixed_ips:
408         - ip_address: { get_param: fsb1-oam-ip }
409
410   FSB2:
411     type: OS::Nova::Server
412     properties:
413       name: { get_param: fsb2-name }
414       block_device_mapping: [{device_name: "vda", volume_id : {get_param: VMME_FSB2_boot_volume }, delete_on_termination: "false" }]
415       flavor: { get_param: fsb2-flavor }
416       availability_zone: { get_param: fsb_zone }
417       networks:
418         - port: { get_resource: FSB2_Internal1 }
419         - port: { get_resource: FSB2_Internal2 }
420         - port: { get_resource: FSB2_OAM }
421
422   FSB2_Internal1:
423     type: OS::Neutron::Port
424     properties:
425       network: { get_resource: Internal1-net }
426       mac_address: { get_param: fsb2-Internal1-mac }
427
428
429   FSB2_Internal2:
430     type: OS::Neutron::Port
431     properties:
432       network: { get_resource: Internal2-net }
433       mac_address: { get_param: fsb2-Internal2-mac }
434
435   FSB2_OAM:
436     type: OS::Neutron::Port
437     properties:
438       network: { get_param: oam_net_id }
439       fixed_ips:
440         - ip_address: { get_param: fsb2-oam-ip }
441
442   NCB1:
443     type: OS::Nova::Server
444     properties:
445       name: { get_param: ncb1-name }
446       image: { get_param: pxe-image }
447       flavor: { get_param: ncb-flavor }
448       availability_zone: { get_param: ncb_zone }
449       networks:
450         - port: { get_resource: NCB1_Internal1 }
451         - port: { get_resource: NCB1_Internal2 }
452
453   NCB1_Internal1:
454     type: OS::Neutron::Port
455     properties:
456       network: { get_resource: Internal1-net }
457       mac_address: { get_param: ncb1-Internal1-mac }
458
459   NCB1_Internal2:
460     type: OS::Neutron::Port
461     properties:
462       network: { get_resource: Internal2-net }
463       mac_address: { get_param: ncb1-Internal2-mac }
464
465   NCB2:
466     type: OS::Nova::Server
467     properties:
468       name: { get_param: ncb2-name }
469       image: { get_param: pxe-image }
470       flavor: { get_param: ncb-flavor }
471       availability_zone: { get_param: ncb_zone }
472       networks:
473         - port: { get_resource: NCB2_Internal1 }
474         - port: { get_resource: NCB2_Internal2 }
475
476   NCB2_Internal1:
477     type: OS::Neutron::Port
478     properties:
479       network: { get_resource: Internal1-net }
480       mac_address: { get_param: ncb2-Internal1-mac }
481
482   NCB2_Internal2:
483     type: OS::Neutron::Port
484     properties:
485       network: { get_resource: Internal2-net }
486       mac_address: { get_param: ncb2-Internal2-mac }
487
488   GPB1:
489     type: OS::Nova::Server
490     properties:
491       name: { get_param: gpb1-name }
492       image: { get_param: pxe-image }
493       flavor: { get_param: gpb-flavor }
494       availability_zone: { get_param: gpb_zone }
495       networks:
496         - port: { get_resource: GPB1_Internal1 }
497         - port: { get_resource: GPB1_Internal2 }
498
499   GPB1_Internal1:
500     type: OS::Neutron::Port
501     properties:
502       network: { get_resource: Internal1-net }
503       mac_address: { get_param: gpb1-Internal1-mac }
504
505   GPB1_Internal2:
506     type: OS::Neutron::Port
507     properties:
508       network: { get_resource: Internal2-net }
509       mac_address: { get_param: gpb1-Internal2-mac }
510
511   GPB2:
512     type: OS::Nova::Server
513     properties:
514       name: { get_param: gpb2-name }
515       image: { get_param: pxe-image }
516       flavor: { get_param: gpb-flavor }
517       availability_zone: { get_param: gpb_zone }
518       networks:
519         - port: { get_resource: GPB2_Internal1 }
520         - port: { get_resource: GPB2_Internal2 }
521
522   GPB2_Internal1:
523     type: OS::Neutron::Port
524     properties:
525       network: { get_resource: Internal1-net }
526       mac_address: { get_param: gpb2-Internal1-mac }
527
528   GPB2_Internal2:
529     type: OS::Neutron::Port
530     properties:
531       network: { get_resource: Internal2-net }
532       mac_address: { get_param: gpb2-Internal2-mac }
533
534   VLC1:
535     type: OS::Nova::Server
536     properties:
537       name: { get_param: vlc1-name }
538       image: { get_param: pxe-image }
539       flavor: { get_param: vlc-flavor }
540       availability_zone: { get_param: vlc_zone }
541       networks:
542         - port: { get_resource: VLC1_Internal1 }
543         - port: { get_resource: VLC1_Internal2 }
544         - port: { get_resource: VLC1_OAM }
545         - port: { get_resource: VLC1_SCTP_A }
546         - port: { get_resource: VLC1_SCTP_B }
547         - port: { get_resource: VLC1_GTP }
548
549   VLC1_Internal1:
550     type: OS::Neutron::Port
551     properties:
552       network: { get_resource: Internal1-net }
553       mac_address: { get_param: vlc1-Internal1-mac }
554
555   VLC1_Internal2:
556     type: OS::Neutron::Port
557     properties:
558       network: { get_resource: Internal2-net }
559       mac_address: { get_param: vlc1-Internal2-mac }
560
561   VLC1_OAM:
562     type: OS::Neutron::Port
563     properties:
564       network: { get_param: oam_net_id }
565       fixed_ips:
566         - ip_address: { get_param: vlc1-oam-ip }
567
568   VLC1_SCTP_A:
569     type: OS::Neutron::Port
570     properties:
571       network: { get_resource: epc-sctp-a-net }
572       fixed_ips:
573         - ip_address: { get_param: vlc1-sctp-a-ip }
574
575   VLC1_SCTP_B:
576     type: OS::Neutron::Port
577     properties:
578       network: { get_resource: epc-sctp-b-net }
579       fixed_ips:
580         - ip_address: { get_param: vlc1-sctp-b-ip }
581
582   VLC1_GTP:
583     type: OS::Neutron::Port
584     properties:
585       network: { get_resource: epc-gtp-net }
586       fixed_ips:
587         - ip_address: { get_param: vlc1-gtp-ip }
588
589   VLC2:
590     type: OS::Nova::Server
591     properties:
592       name: { get_param: vlc2-name }
593       image: { get_param: pxe-image }
594       flavor: { get_param: vlc-flavor }
595       availability_zone: { get_param: vlc_zone }
596       networks:
597         - port: { get_resource: VLC2_Internal1 }
598         - port: { get_resource: VLC2_Internal2 }
599         - port: { get_resource: VLC2_OAM }
600         - port: { get_resource: VLC2_SCTP_A }
601         - port: { get_resource: VLC2_SCTP_B }
602         - port: { get_resource: VLC2_GTP }
603
604
605   VLC2_Internal1:
606     type: OS::Neutron::Port
607     properties:
608       network: { get_resource: Internal1-net }
609       mac_address: { get_param: vlc2-Internal1-mac }
610
611   VLC2_OAM:
612     type: OS::Neutron::Port
613     properties:
614       network: { get_param: oam_net_id }
615       fixed_ips:
616         - ip_address: { get_param: vlc2-oam-ip }
617
618   VLC2_Internal2:
619     type: OS::Neutron::Port
620     properties:
621       network: { get_resource: Internal2-net }
622       mac_address: { get_param: vlc2-Internal2-mac }
623
624   VLC2_SCTP_A:
625     type: OS::Neutron::Port
626     properties:
627       network: { get_resource: epc-sctp-a-net }
628       fixed_ips:
629         - ip_address: { get_param: vlc2-sctp-a-ip }
630
631   VLC2_SCTP_B:
632     type: OS::Neutron::Port
633     properties:
634       network: { get_resource: epc-sctp-b-net }
635       fixed_ips:
636         - ip_address: { get_param: vlc2-sctp-b-ip }
637
638   VLC2_GTP:
639     type: OS::Neutron::Port
640     properties:
641       network: { get_resource: epc-gtp-net }
642       fixed_ips:
643         - ip_address: { get_param: vlc2-gtp-ip }
644