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