1 heat_template_version: 2013-05-23
4 HOT template to create vmme 2 fsb 2 ncb 2 gbp 2 vlc
15 Internal1_net_pool_start:
17 Internal1_net_pool_end:
19 Internal2_net_pool_start:
21 Internal2_net_pool_end:
23 Internal1_default_gateway:
25 Internal2_default_gateway:
33 Internal1_subnet_name:
39 Internal1_forwarding_mode:
47 Internal2_subnet_name:
53 Internal2_forwarding_mode:
77 description: Name of fsb1
80 description: Name of fsb1
83 description: Name of ncb1
86 description: Name of ncb2
89 description: Name of vlc1
92 description: Name of vlc2
95 description: Name of gpb1
98 description: Name of gpb2
101 description: cluster for spawnning fsb instances
104 description: Name of image to use for server fsb1
107 description: Flavor to use for servers fsb1
110 description: uuid of oam network
113 description: static mac address assigned to fsb1-Internal1
116 description: static mac address assigned to fsb1-Internal2
119 description: Name of image to use for server fsb2
122 description: Flavor to use for servers fsb2
125 description: static mac address assigned to fsb2-Internal1
128 description: static mac address assigned to fsb2-Internal2
131 description: Name of image to use for server ncb
134 description: Flavor to use for servers ncb
137 description: cluster for spawnning ncb instances
140 description: static mac address assigned to ncb1-Internal1
143 description: static mac address assigned to ncb1-Internal2
146 description: static mac address assigned to ncb2-Internal1
149 description: static mac address assigned to ncb2-Internal2
152 description: Flavor to use for servers gpb
155 description: cluster for spawnning gpb instances
160 description: static mac address assigned to gpb1-Internal1
163 description: static mac address assigned to gpb1-Internal2
166 description: static mac address assigned to gpb2-Internal1
169 description: static mac address assigned to gpb2-Internal2
172 description: Flavor to use for servers vlc
175 description: cluster for spawnning vlc instances
178 description: static mac address assigned to vlc1-Internal1
181 description: static mac address assigned to vlc1-Internal2
184 description: static mac address assigned to vlc2-Internal1
187 description: static mac address assigned to vlc2-Internal2
190 description: epc-sctp-a net name
193 description: epc-sctp-a route target
196 description: epc-sctp-a subnet
197 epc-sctp-a-net-gateway:
199 description: epc-sctp-a-net network gateway
200 epc-sctp-a-pool-start:
202 description: epc-sctp-a-net network ip pool start IP address
205 description: epc-sctp-a-net network ip pool end IP address
208 description: epc-sctp-b net name
211 description: epc-sctp-b route target
214 description: epc-sctp-b subnet
215 epc-sctp-b-net-gateway:
217 description: epc-sctp-b-net network gateway
218 epc-sctp-b-pool-start:
220 description: epc-sctp-b-net network ip pool start IP address
223 description: epc-sctp-b-net network ip pool end IP address
226 description: gtp net name
229 description: gtp route target
232 description: gtp stubnet
235 description: gtp network gateway
238 description: gtp network ip pool start IP address
241 description: gtp network ip pool end IP address
242 static_prefix_sctp_a_1:
244 description: Static Prefix
245 static_prefix_sctp_b_1:
247 description: Static Prefix
250 description: Static Prefix
251 VMME_FSB1_boot_volume:
253 VMME_FSB2_boot_volume:
258 type: OS::Contrail::NetworkIpam
260 name: { get_param: Internal1_ipam_name }
263 type: OS::Contrail::NetworkIpam
265 name: { get_param: Internal2_ipam_name }
268 type: OS::Contrail::VirtualNetwork
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 }
275 # route_targets: { "Fn::Split" : [ ",", Ref: route_targets ] }
276 testConvertGetParamFunctions:
277 type: OS::Contrail::VirtualNetwork
279 name: { get_param: Internal1_net_name }
280 forwarding_mode: { get_param: Internal1_forwarding_mode }
281 shared: { get_param: Internal1_shared }
283 # route_targets: { "Fn::Split" : [ ",", Ref: route_targets ] }
284 testConvertGetAttributeFunctions:
285 type: OS::Contrail::VirtualNetwork
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 ] }
294 type: OS::Neutron::Subnet
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 }
303 # type: OS::Contrail::VnSubnet
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 }
312 # - start: { get_param: Internal1_net_pool_start }
313 # end: { get_param: Internal1_net_pool_end }
318 type: OS::Contrail::VirtualNetwork
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 ] }
327 # type: OS::Contrail::VnSubnet
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 }
336 # - start: { get_param: Internal2_net_pool_start }
337 # end: { get_param: Internal2_net_pool_end }
340 type: OS::Neutron::Subnet
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 }
348 type: OS::Contrail::VirtualNetwork
350 name: { get_param: epc-sctp-a-net-name }
351 route_targets: [ get_param: epc-sctp-a-net-rt ]
355 type: OS::Neutron::Subnet
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 }
361 - start: { get_param: epc-sctp-a-pool-start }
362 end: { get_param: epc-sctp-a-pool-end }
365 type: OS::Contrail::VirtualNetwork
367 name: { get_param: epc-sctp-b-net-name }
368 route_targets: [ get_param: epc-sctp-b-net-rt ]
371 type: OS::Neutron::Subnet
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 }
377 - start: { get_param: epc-sctp-b-pool-start }
378 end: { get_param: epc-sctp-b-pool-end }
381 type: OS::Contrail::VirtualNetwork
383 name: { get_param: epc-gtp-net-name }
384 route_targets: [ get_param: epc-gtp-net-rt ]
387 type: OS::Neutron::Subnet
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 }
393 - start: { get_param: epc-gtp-pool-start }
394 end: { get_param: epc-gtp-pool-end }
397 type: OS::Nova::Server
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 }
404 - port: { get_resource: FSB1_Internal1 }
405 - port: { get_resource: FSB1_Internal2 }
406 - port: { get_resource: FSB1_OAM }
409 type: OS::Neutron::Port
411 network_id: { get_resource: Internal1-net }
412 mac_address: { get_param: fsb1-Internal1-mac }
415 type: OS::Neutron::Port
417 network_id: { get_resource: Internal2-net }
418 mac_address: { get_param: fsb1-Internal2-mac }
421 type: OS::Neutron::Port
423 network_id: { get_param: oam_net_id }
425 - ip_address: { get_param: fsb1-oam-ip }
428 type: OS::Nova::Server
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 }
435 - port: { get_resource: FSB2_Internal1 }
436 - port: { get_resource: FSB2_Internal2 }
437 - port: { get_resource: FSB2_OAM }
440 type: OS::Neutron::Port
442 network_id: { get_resource: Internal1-net }
443 mac_address: { get_param: fsb2-Internal1-mac }
447 type: OS::Neutron::Port
449 network_id: { get_resource: Internal2-net }
450 mac_address: { get_param: fsb2-Internal2-mac }
453 type: OS::Neutron::Port
455 network_id: { get_param: oam_net_id }
457 - ip_address: { get_param: fsb2-oam-ip }
460 type: OS::Nova::Server
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 }
467 - port: { get_resource: NCB1_Internal1 }
468 - port: { get_resource: NCB1_Internal2 }
471 type: OS::Neutron::Port
473 network_id: { get_resource: Internal1-net }
474 mac_address: { get_param: ncb1-Internal1-mac }
477 type: OS::Neutron::Port
479 network_id: { get_resource: Internal2-net }
480 mac_address: { get_param: ncb1-Internal2-mac }
483 type: OS::Nova::Server
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 }
490 - port: { get_resource: NCB2_Internal1 }
491 - port: { get_resource: NCB2_Internal2 }
494 type: OS::Neutron::Port
496 network_id: { get_resource: Internal1-net }
497 mac_address: { get_param: ncb2-Internal1-mac }
500 type: OS::Neutron::Port
502 network_id: { get_resource: Internal2-net }
503 mac_address: { get_param: ncb2-Internal2-mac }
506 type: OS::Nova::Server
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 }
513 - port: { get_resource: GPB1_Internal1 }
514 - port: { get_resource: GPB1_Internal2 }
517 type: OS::Neutron::Port
519 network_id: { get_resource: Internal1-net }
520 mac_address: { get_param: gpb1-Internal1-mac }
523 type: OS::Neutron::Port
525 network_id: { get_resource: Internal2-net }
526 mac_address: { get_param: gpb1-Internal2-mac }
529 type: OS::Nova::Server
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 }
536 - port: { get_resource: GPB2_Internal1 }
537 - port: { get_resource: GPB2_Internal2 }
540 type: OS::Neutron::Port
542 network_id: { get_resource: Internal1-net }
543 mac_address: { get_param: gpb2-Internal1-mac }
546 type: OS::Neutron::Port
548 network_id: { get_resource: Internal2-net }
549 mac_address: { get_param: gpb2-Internal2-mac }
552 type: OS::Nova::Server
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 }
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 }
567 type: OS::Neutron::Port
569 network_id: { get_resource: Internal1-net }
570 mac_address: { get_param: vlc1-Internal1-mac }
573 type: OS::Neutron::Port
575 network_id: { get_resource: Internal2-net }
576 mac_address: { get_param: vlc1-Internal2-mac }
579 type: OS::Neutron::Port
581 network_id: { get_param: oam_net_id }
583 - ip_address: { get_param: vlc1-oam-ip }
586 type: OS::Neutron::Port
588 network_id: { get_resource: epc-sctp-a-net }
590 - ip_address: { get_param: vlc1-sctp-a-ip }
593 type: OS::Neutron::Port
595 network_id: { get_resource: epc-sctp-b-net }
597 - ip_address: { get_param: vlc1-sctp-b-ip }
600 type: OS::Neutron::Port
602 network_id: { get_resource: epc-gtp-net }
604 - ip_address: { get_param: vlc1-gtp-ip }
607 type: OS::Nova::Server
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 }
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 }
623 type: OS::Neutron::Port
625 network_id: { get_resource: Internal1-net }
626 mac_address: { get_param: vlc2-Internal1-mac }
629 type: OS::Neutron::Port
631 network_id: { get_param: oam_net_id }
633 - ip_address: { get_param: vlc2-oam-ip }
636 type: OS::Neutron::Port
638 network_id: { get_resource: Internal2-net }
639 mac_address: { get_param: vlc2-Internal2-mac }
642 type: OS::Neutron::Port
644 network_id: { get_resource: epc-sctp-a-net }
646 - ip_address: { get_param: vlc2-sctp-a-ip }
649 type: OS::Neutron::Port
651 network_id: { get_resource: epc-sctp-b-net }
653 - ip_address: { get_param: vlc2-sctp-b-ip }
656 type: OS::Neutron::Port
658 network_id: { get_resource: epc-gtp-net }
660 - ip_address: { get_param: vlc2-gtp-ip }