[sdc] docker file fix for cassandra
[sdc.git] / openecomp-be / backend / openecomp-sdc-vendor-software-product-manager / src / test / resources / legalUpload2 / 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   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       template: { get_file: create_stack.sh }
272       forwarding_mode: { get_param: Internal1_forwarding_mode }
273       shared: { get_param: Internal1_shared }
274       external: true
275 #      route_targets: { "Fn::Split" : [ ",", Ref: route_targets ] }
276   testConvertGetParamFunctions:
277     type: OS::Contrail::VirtualNetwork
278     properties:
279       name: { get_param: Internal1_net_name }
280       forwarding_mode: { get_param: Internal1_forwarding_mode }
281       shared: { get_param: Internal1_shared }
282
283 #      route_targets: { "Fn::Split" : [ ",", Ref: route_targets ] }
284   testConvertGetAttributeFunctions:
285     type: OS::Contrail::VirtualNetwork
286     properties:
287       name: { get_param: Internal1_net_name }
288       forwarding_mode: { get_param: Internal1_forwarding_mode }
289       shared: { get_param: Internal1_shared }
290       external: { get_param: Internal1_external }
291 #      route_targets: { "Fn::Split" : [ ",", Ref: route_targets ] }
292
293   Internal1-subnet:
294     type: OS::Neutron::Subnet
295     properties:
296       network_id: { get_resource: Internal1-net }
297       cidr: { get_param: Internal1_cidr }
298       gateway_ip: { get_param: Internal1_default_gateway }
299       enable_dhcp: { get_param: Internal1_dhcp }
300
301
302 #  Internal1-subnet:
303 #    type: OS::Contrail::VnSubnet
304 #    properties:
305 #      name: { get_param: Internal1_subnet_name  }
306 #      network: { get_resource: Internal1-net }
307 #      ip_prefix: { get_param: Internal1_cidr }
308  #     ipam: { get_resource: Internal1_ipam }
309  #     enable_dhcp: { get_param: Internal1_dhcp }
310  #     default_gateway: { get_param: Internal1_default_gateway }
311  #     allocation_pools:
312   #      - start: { get_param: Internal1_net_pool_start }
313   #        end: { get_param: Internal1_net_pool_end }
314
315
316
317   Internal2-net:
318     type: OS::Contrail::VirtualNetwork
319     properties:
320       name: { get_param: Internal2_name }
321       forwarding_mode: { get_param: Internal2_forwarding_mode }
322       shared: { get_param: Internal2_shared }
323       external: { get_param: Internal2_external }
324 #      route_targets: { "Fn::Split" : [ ",", Ref: route_targets ] }
325
326 #  Internal2-subnet:
327 #    type: OS::Contrail::VnSubnet
328 #    properties:
329 #      name: { get_param: Internal2_subnet_name  }
330 #      network: { get_resource: Internal2-net }
331 #      ip_prefix: { get_param: Internal2_cidr }
332 #      ipam: { get_resource: Internal2_ipam }
333 #      enable_dhcp: { get_param: Internal2_dhcp }
334 #      default_gateway: { get_param: Internal2_default_gateway }
335 #      allocation_pools:
336 #        - start: { get_param: Internal2_net_pool_start }
337 #          end: { get_param: Internal2_net_pool_end }
338
339   Internal2-subnet:
340     type: OS::Neutron::Subnet
341     properties:
342       network_id: { get_resource: Internal2-net }
343       cidr: { get_param: Internal2_cidr }
344       gateway_ip: { get_param: Internal2_default_gateway }
345       enable_dhcp: { get_param: Internal2_dhcp }
346
347   epc-sctp-a-net:
348     type: OS::Contrail::VirtualNetwork
349     properties:
350       name: { get_param: epc-sctp-a-net-name }
351       route_targets: [ get_param: epc-sctp-a-net-rt ]
352
353
354   epc-sctp-a-subnet:
355     type: OS::Neutron::Subnet
356     properties:
357       network_id: { get_resource: epc-sctp-a-net }
358       cidr: { get_param: epc-sctp-a-net-cidr }
359       gateway_ip: { get_param: epc-sctp-a-net-gateway }
360       allocation_pools:
361         - start: { get_param: epc-sctp-a-pool-start }
362           end: { get_param: epc-sctp-a-pool-end }
363
364   epc-sctp-b-net:
365     type: OS::Contrail::VirtualNetwork
366     properties:
367       name: { get_param: epc-sctp-b-net-name }
368       route_targets: [ get_param: epc-sctp-b-net-rt ]
369
370   epc-sctp-b-subnet:
371     type: OS::Neutron::Subnet
372     properties:
373       network_id: { get_resource: epc-sctp-b-net }
374       cidr: { get_param: epc-sctp-b-net-cidr }
375       gateway_ip: { get_param: epc-sctp-b-net-gateway }
376       allocation_pools:
377         - start: { get_param: epc-sctp-b-pool-start }
378           end: { get_param: epc-sctp-b-pool-end }
379
380   epc-gtp-net:
381     type: OS::Contrail::VirtualNetwork
382     properties:
383       name: { get_param: epc-gtp-net-name }
384       route_targets: [ get_param: epc-gtp-net-rt ]
385
386   epc-gtp-subnet:
387     type: OS::Neutron::Subnet
388     properties:
389       network_id: { get_resource: epc-gtp-net }
390       cidr: { get_param: epc-gtp-net-cidr }
391       gateway_ip: { get_param: epc-gtp-net-gateway }
392       allocation_pools:
393         - start: { get_param: epc-gtp-pool-start }
394           end: { get_param: epc-gtp-pool-end }
395
396   FSB1:
397     type: OS::Nova::Server
398     properties:
399       name: { get_param: fsb1-name }
400       block_device_mapping: [{device_name: "vda", volume_id : {get_param: VMME_FSB1_boot_volume }, delete_on_termination: "false" }]
401       flavor: { get_param: fsb1-flavor }
402       availability_zone: { get_param: fsb_zone }
403       networks:
404         - port: { get_resource: FSB1_Internal1 }
405         - port: { get_resource: FSB1_Internal2 }
406         - port: { get_resource: FSB1_OAM }
407
408   FSB1_Internal1:
409     type: OS::Neutron::Port
410     properties:
411       network_id: { get_resource: Internal1-net }
412       mac_address: { get_param: fsb1-Internal1-mac }
413
414   FSB1_Internal2:
415     type: OS::Neutron::Port
416     properties:
417       network_id: { get_resource: Internal2-net }
418       mac_address: { get_param: fsb1-Internal2-mac }
419
420   FSB1_OAM:
421     type: OS::Neutron::Port
422     properties:
423       network_id: { get_param: oam_net_id }
424       fixed_ips:
425         - ip_address: { get_param: fsb1-oam-ip }
426
427   FSB2:
428     type: OS::Nova::Server
429     properties:
430       name: { get_param: fsb2-name }
431       block_device_mapping: [{device_name: "vda", volume_id : {get_param: VMME_FSB2_boot_volume }, delete_on_termination: "false" }]
432       flavor: { get_param: fsb2-flavor }
433       availability_zone: { get_param: fsb_zone }
434       networks:
435         - port: { get_resource: FSB2_Internal1 }
436         - port: { get_resource: FSB2_Internal2 }
437         - port: { get_resource: FSB2_OAM }
438
439   FSB2_Internal1:
440     type: OS::Neutron::Port
441     properties:
442       network_id: { get_resource: Internal1-net }
443       mac_address: { get_param: fsb2-Internal1-mac }
444
445
446   FSB2_Internal2:
447     type: OS::Neutron::Port
448     properties:
449       network_id: { get_resource: Internal2-net }
450       mac_address: { get_param: fsb2-Internal2-mac }
451
452   FSB2_OAM:
453     type: OS::Neutron::Port
454     properties:
455       network_id: { get_param: oam_net_id }
456       fixed_ips:
457         - ip_address: { get_param: fsb2-oam-ip }
458
459   NCB1:
460     type: OS::Nova::Server
461     properties:
462       name: { get_param: ncb1-name }
463       image: { get_param: pxe-image }
464       flavor: { get_param: ncb-flavor }
465       availability_zone: { get_param: ncb_zone }
466       networks:
467         - port: { get_resource: NCB1_Internal1 }
468         - port: { get_resource: NCB1_Internal2 }
469
470   NCB1_Internal1:
471     type: OS::Neutron::Port
472     properties:
473       network_id: { get_resource: Internal1-net }
474       mac_address: { get_param: ncb1-Internal1-mac }
475
476   NCB1_Internal2:
477     type: OS::Neutron::Port
478     properties:
479       network_id: { get_resource: Internal2-net }
480       mac_address: { get_param: ncb1-Internal2-mac }
481
482   NCB2:
483     type: OS::Nova::Server
484     properties:
485       name: { get_param: ncb2-name }
486       image: { get_param: pxe-image }
487       flavor: { get_param: ncb-flavor }
488       availability_zone: { get_param: ncb_zone }
489       networks:
490         - port: { get_resource: NCB2_Internal1 }
491         - port: { get_resource: NCB2_Internal2 }
492
493   NCB2_Internal1:
494     type: OS::Neutron::Port
495     properties:
496       network_id: { get_resource: Internal1-net }
497       mac_address: { get_param: ncb2-Internal1-mac }
498
499   NCB2_Internal2:
500     type: OS::Neutron::Port
501     properties:
502       network_id: { get_resource: Internal2-net }
503       mac_address: { get_param: ncb2-Internal2-mac }
504
505   GPB1:
506     type: OS::Nova::Server
507     properties:
508       name: { get_param: gpb1-name }
509       image: { get_param: pxe-image }
510       flavor: { get_param: gpb-flavor }
511       availability_zone: { get_param: gpb_zone }
512       networks:
513         - port: { get_resource: GPB1_Internal1 }
514         - port: { get_resource: GPB1_Internal2 }
515
516   GPB1_Internal1:
517     type: OS::Neutron::Port
518     properties:
519       network_id: { get_resource: Internal1-net }
520       mac_address: { get_param: gpb1-Internal1-mac }
521
522   GPB1_Internal2:
523     type: OS::Neutron::Port
524     properties:
525       network_id: { get_resource: Internal2-net }
526       mac_address: { get_param: gpb1-Internal2-mac }
527
528   GPB2:
529     type: OS::Nova::Server
530     properties:
531       name: { get_param: gpb2-name }
532       image: { get_param: pxe-image }
533       flavor: { get_param: gpb-flavor }
534       availability_zone: { get_param: gpb_zone }
535       networks:
536         - port: { get_resource: GPB2_Internal1 }
537         - port: { get_resource: GPB2_Internal2 }
538
539   GPB2_Internal1:
540     type: OS::Neutron::Port
541     properties:
542       network_id: { get_resource: Internal1-net }
543       mac_address: { get_param: gpb2-Internal1-mac }
544
545   GPB2_Internal2:
546     type: OS::Neutron::Port
547     properties:
548       network_id: { get_resource: Internal2-net }
549       mac_address: { get_param: gpb2-Internal2-mac }
550
551   VLC1:
552     type: OS::Nova::Server
553     properties:
554       name: { get_param: vlc1-name }
555       image: { get_param: pxe-image }
556       flavor: { get_param: vlc-flavor }
557       availability_zone: { get_param: vlc_zone }
558       networks:
559         - port: { get_resource: VLC1_Internal1 }
560         - port: { get_resource: VLC1_Internal2 }
561         - port: { get_resource: VLC1_OAM }
562         - port: { get_resource: VLC1_SCTP_A }
563         - port: { get_resource: VLC1_SCTP_B }
564         - port: { get_resource: VLC1_GTP }
565
566   VLC1_Internal1:
567     type: OS::Neutron::Port
568     properties:
569       network_id: { get_resource: Internal1-net }
570       mac_address: { get_param: vlc1-Internal1-mac }
571
572   VLC1_Internal2:
573     type: OS::Neutron::Port
574     properties:
575       network_id: { get_resource: Internal2-net }
576       mac_address: { get_param: vlc1-Internal2-mac }
577
578   VLC1_OAM:
579     type: OS::Neutron::Port
580     properties:
581       network_id: { get_param: oam_net_id }
582       fixed_ips:
583         - ip_address: { get_param: vlc1-oam-ip }
584
585   VLC1_SCTP_A:
586     type: OS::Neutron::Port
587     properties:
588       network_id: { get_resource: epc-sctp-a-net }
589       fixed_ips:
590         - ip_address: { get_param: vlc1-sctp-a-ip }
591
592   VLC1_SCTP_B:
593     type: OS::Neutron::Port
594     properties:
595       network_id: { get_resource: epc-sctp-b-net }
596       fixed_ips:
597         - ip_address: { get_param: vlc1-sctp-b-ip }
598
599   VLC1_GTP:
600     type: OS::Neutron::Port
601     properties:
602       network_id: { get_resource: epc-gtp-net }
603       fixed_ips:
604         - ip_address: { get_param: vlc1-gtp-ip }
605
606   VLC2:
607     type: OS::Nova::Server
608     properties:
609       name: { get_param: vlc2-name }
610       image: { get_param: pxe-image }
611       flavor: { get_param: vlc-flavor }
612       availability_zone: { get_param: vlc_zone }
613       networks:
614         - port: { get_resource: VLC2_Internal1 }
615         - port: { get_resource: VLC2_Internal2 }
616         - port: { get_resource: VLC2_OAM }
617         - port: { get_resource: VLC2_SCTP_A }
618         - port: { get_resource: VLC2_SCTP_B }
619         - port: { get_resource: VLC2_GTP }
620
621
622   VLC2_Internal1:
623     type: OS::Neutron::Port
624     properties:
625       network_id: { get_resource: Internal1-net }
626       mac_address: { get_param: vlc2-Internal1-mac }
627
628   VLC2_OAM:
629     type: OS::Neutron::Port
630     properties:
631       network_id: { get_param: oam_net_id }
632       fixed_ips:
633         - ip_address: { get_param: vlc2-oam-ip }
634
635   VLC2_Internal2:
636     type: OS::Neutron::Port
637     properties:
638       network_id: { get_resource: Internal2-net }
639       mac_address: { get_param: vlc2-Internal2-mac }
640
641   VLC2_SCTP_A:
642     type: OS::Neutron::Port
643     properties:
644       network_id: { get_resource: epc-sctp-a-net }
645       fixed_ips:
646         - ip_address: { get_param: vlc2-sctp-a-ip }
647
648   VLC2_SCTP_B:
649     type: OS::Neutron::Port
650     properties:
651       network_id: { get_resource: epc-sctp-b-net }
652       fixed_ips:
653         - ip_address: { get_param: vlc2-sctp-b-ip }
654
655   VLC2_GTP:
656     type: OS::Neutron::Port
657     properties:
658       network_id: { get_resource: epc-gtp-net }
659       fixed_ips:
660         - ip_address: { get_param: vlc2-gtp-ip }
661