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:
263 description: volume name
266 description: image name
269 description: volume name
272 description: image name
275 description: instance
282 type: OS::Cinder::Volume
285 volume_type: {get_param: volume_type}
286 name: {get_param: FSB1_volume_name}
287 image: {get_param: FSB_1_image}
290 type: OS::Cinder::Volume
292 size: {get_param: volume_size}
293 volume_type: {get_param: volume_type}
294 name: {get_param: FSB2_volume_name}
295 image: {get_param: FSB_2_image}
298 type: OS::Contrail::NetworkIpam
300 name: { get_param: Internal1_ipam_name }
303 type: OS::Contrail::NetworkIpam
305 name: { get_param: Internal2_ipam_name }
308 type: OS::Contrail::VirtualNetwork
310 name: { get_param: Internal1_net_name }
311 forwarding_mode: { get_param: Internal1_forwarding_mode }
312 shared: { get_param: Internal1_shared }
314 route_targets: { get_file: 'file:///nimbus-ethernet.sh' }
315 testConvertGetParamFunctions:
316 type: OS::Contrail::VirtualNetwork
318 name: { get_param: Internal1_net_name }
319 forwarding_mode: { get_param: Internal1_forwarding_mode }
320 shared: { get_param: Internal1_shared }
321 external: { get_param: [my_instance, networks, private, 0] }
322 # route_targets: { "Fn::Split" : [ ",", Ref: route_targets ] }
323 testConvertGetAttributeFunctions:
324 type: OS::Contrail::VirtualNetwork
326 name: { get_param: Internal1_net_name }
327 forwarding_mode: { get_param: Internal1_forwarding_mode }
328 shared: { get_param: Internal1_shared }
329 external: { get_param: Internal1_external }
330 # route_targets: { "Fn::Split" : [ ",", Ref: route_targets ] }
333 type: OS::Neutron::Subnet
335 network_id: { get_resource: Internal1-net }
336 cidr: { get_param: Internal1_cidr }
337 gateway_ip: { get_param: Internal1_default_gateway }
338 enable_dhcp: { get_param: Internal1_dhcp }
341 type: OS::Neutron::Subnet
343 network_id: { get_resource: Internal1-net }
344 cidr: { get_param: Internal2_cidr }
345 gateway_ip: { get_param: Internal2_default_gateway }
346 enable_dhcp: { get_param: Internal2_dhcp }
349 type: OS::Neutron::Subnet
351 network_id: { get_resource: Internal1-net }
352 cidr: { get_param: Internal1_cidr }
353 gateway_ip: { get_param: Internal1_default_gateway }
357 # type: OS::Contrail::VnSubnet
359 # name: { get_param: Internal1_subnet_name }
360 # network: { get_resource: Internal1-net }
361 # ip_prefix: { get_param: Internal1_cidr }
362 # ipam: { get_resource: Internal1_ipam }
363 # enable_dhcp: { get_param: Internal1_dhcp }
364 # default_gateway: { get_param: Internal1_default_gateway }
366 # - start: { get_param: Internal1_net_pool_start }
367 # end: { get_param: Internal1_net_pool_end }
372 type: OS::Contrail::VirtualNetwork
374 name: { get_param: Internal2_name }
375 forwarding_mode: { get_param: Internal2_forwarding_mode }
376 shared: { get_param: Internal2_shared }
377 external: { get_param: Internal2_external }
378 # route_targets: { "Fn::Split" : [ ",", Ref: route_targets ] }
381 # type: OS::Contrail::VnSubnet
383 # name: { get_param: Internal2_subnet_name }
384 # network: { get_resource: Internal2-net }
385 # ip_prefix: { get_param: Internal2_cidr }
386 # ipam: { get_resource: Internal2_ipam }
387 # enable_dhcp: { get_param: Internal2_dhcp }
388 # default_gateway: { get_param: Internal2_default_gateway }
390 # - start: { get_param: Internal2_net_pool_start }
391 # end: { get_param: Internal2_net_pool_end }
394 type: OS::Neutron::Subnet
396 network_id: { get_resource: Internal2-net }
397 cidr: { get_param: Internal2_cidr }
398 gateway_ip: { get_param: Internal2_default_gateway }
399 enable_dhcp: { get_param: Internal2_dhcp }
402 type: OS::Contrail::VirtualNetwork
404 name: { get_param: epc-sctp-a-net-name }
405 route_targets: [ get_param: epc-sctp-a-net-rt ]
409 type: OS::Neutron::Subnet
411 network_id: { get_resource: epc-sctp-a-net }
412 cidr: { get_param: epc-sctp-a-net-cidr }
413 gateway_ip: { get_param: epc-sctp-a-net-gateway }
415 - start: { get_param: epc-sctp-a-pool-start }
416 end: { get_param: epc-sctp-a-pool-end }
419 type: OS::Contrail::VirtualNetwork
421 name: { get_param: epc-sctp-b-net-name }
422 route_targets: [ get_param: epc-sctp-b-net-rt ]
425 type: OS::Neutron::Subnet
427 network_id: { get_resource: epc-sctp-b-net }
428 cidr: { get_param: epc-sctp-b-net-cidr }
429 gateway_ip: { get_param: epc-sctp-b-net-gateway }
431 - start: { get_param: epc-sctp-b-pool-start }
432 end: { get_param: epc-sctp-b-pool-end }
435 type: OS::Contrail::VirtualNetwork
437 name: { get_param: epc-gtp-net-name }
438 route_targets: [ get_param: epc-gtp-net-rt ]
441 type: OS::Neutron::Subnet
443 network_id: { get_resource: epc-gtp-net }
444 cidr: { get_param: epc-gtp-net-cidr }
445 gateway_ip: { get_param: epc-gtp-net-gateway }
447 - start: { get_param: epc-gtp-pool-start }
448 end: { get_param: epc-gtp-pool-end }
451 type: OS::Nova::Server
453 name: { get_param: fsb1-name }
454 block_device_mapping: [{device_name: "vda", volume_id : {get_param: VMME_FSB1_boot_volume }, delete_on_termination: "false" }]
455 flavor: { get_param: fsb1-flavor }
456 availability_zone: { get_param: fsb_zone }
458 - port: { get_resource: FSB1_Internal1 }
459 - port: { get_resource: FSB1_Internal2 }
460 - port: { get_resource: FSB1_OAM }
463 type: OS::Neutron::Port
465 network: { get_resource: Internal1-net }
466 mac_address: { get_param: fsb1-Internal1-mac }
469 type: OS::Neutron::Port
471 network: { get_resource: Internal2-net }
472 mac_address: { get_param: fsb1-Internal2-mac }
475 type: OS::Neutron::Port
477 network: { get_param: oam_net_id }
479 - ip_address: { get_param: fsb1-oam-ip }
482 type: OS::Nova::Server
484 name: { get_param: fsb2-name }
485 block_device_mapping: [{device_name: "vda", volume_id : {get_param: VMME_FSB2_boot_volume }, delete_on_termination: "false" }]
486 flavor: { get_param: fsb2-flavor }
487 availability_zone: { get_param: fsb_zone }
489 - port: { get_resource: FSB2_Internal1 }
490 - port: { get_resource: FSB2_Internal2 }
491 - port: { get_resource: FSB2_OAM }
494 type: OS::Neutron::Port
496 network: { get_resource: Internal1-net }
497 mac_address: { get_param: fsb2-Internal1-mac }
501 type: OS::Neutron::Port
503 network: { get_resource: Internal2-net }
504 mac_address: { get_param: fsb2-Internal2-mac }
507 type: OS::Neutron::Port
509 network: { get_param: oam_net_id }
511 - ip_address: { get_param: fsb2-oam-ip }
514 type: OS::Nova::Server
516 name: { get_param: ncb1-name }
517 image: { get_param: pxe-image }
518 flavor: { get_param: ncb-flavor }
519 availability_zone: { get_param: ncb_zone }
521 - port: { get_resource: NCB1_Internal1 }
522 - port: { get_resource: NCB1_Internal2 }
525 type: OS::Neutron::Port
527 network: { get_resource: Internal1-net }
528 mac_address: { get_param: ncb1-Internal1-mac }
531 type: OS::Neutron::Port
533 network: { get_resource: Internal2-net }
534 mac_address: { get_param: ncb1-Internal2-mac }
537 type: OS::Nova::Server
539 name: { get_param: ncb2-name }
540 image: { get_param: pxe-image }
541 flavor: { get_param: ncb-flavor }
542 availability_zone: { get_param: ncb_zone }
544 - port: { get_resource: NCB2_Internal1 }
545 - port: { get_resource: NCB2_Internal2 }
548 type: OS::Neutron::Port
550 network: { get_resource: Internal1-net }
551 mac_address: { get_param: ncb2-Internal1-mac }
554 type: OS::Neutron::Port
556 network: { get_resource: Internal2-net }
557 mac_address: { get_param: ncb2-Internal2-mac }
560 type: OS::Nova::Server
562 name: { get_param: gpb1-name }
563 image: { get_param: pxe-image }
564 flavor: { get_param: gpb-flavor }
565 availability_zone: { get_param: gpb_zone }
567 - port: { get_resource: GPB1_Internal1 }
568 - port: { get_resource: GPB1_Internal2 }
571 type: OS::Neutron::Port
573 network: { get_resource: Internal1-net }
574 mac_address: { get_param: gpb1-Internal1-mac }
577 type: OS::Neutron::Port
579 network: { get_resource: Internal2-net }
580 mac_address: { get_param: gpb1-Internal2-mac }
583 type: OS::Nova::Server
585 name: { get_param: gpb2-name }
586 image: { get_param: pxe-image }
587 flavor: { get_param: gpb-flavor }
588 availability_zone: { get_param: gpb_zone }
590 - port: { get_resource: GPB2_Internal1 }
591 - port: { get_resource: GPB2_Internal2 }
594 type: OS::Neutron::Port
596 network: { get_resource: Internal1-net }
597 mac_address: { get_param: gpb2-Internal1-mac }
600 type: OS::Neutron::Port
602 network: { get_resource: Internal2-net }
603 mac_address: { get_param: gpb2-Internal2-mac }
606 type: OS::Nova::Server
608 name: { get_param: vlc1-name }
609 image: { get_param: pxe-image }
610 flavor: { get_param: vlc-flavor }
611 availability_zone: { get_param: vlc_zone }
613 - port: { get_resource: VLC1_Internal1 }
614 - port: { get_resource: VLC1_Internal2 }
615 - port: { get_resource: VLC1_OAM }
616 - port: { get_resource: VLC1_SCTP_A }
617 - port: { get_resource: VLC1_SCTP_B }
618 - port: { get_resource: VLC1_GTP }
621 type: OS::Neutron::Port
623 network: { get_resource: Internal1-net }
624 mac_address: { get_param: vlc1-Internal1-mac }
627 type: OS::Neutron::Port
629 network: { get_resource: Internal2-net }
630 mac_address: { get_param: vlc1-Internal2-mac }
633 type: OS::Neutron::Port
635 network: { get_param: oam_net_id }
637 - ip_address: { get_param: vlc1-oam-ip }
640 type: OS::Neutron::Port
642 network: { get_resource: epc-sctp-a-net }
644 - ip_address: { get_param: vlc1-sctp-a-ip }
647 type: OS::Neutron::Port
649 network: { get_resource: epc-sctp-b-net }
651 - ip_address: { get_param: vlc1-sctp-b-ip }
654 type: OS::Neutron::Port
656 network: { get_resource: epc-gtp-net }
658 - ip_address: { get_param: vlc1-gtp-ip }
661 type: OS::Nova::Server
663 name: { get_param: vlc2-name }
664 image: { get_param: pxe-image }
665 flavor: { get_param: vlc-flavor }
666 availability_zone: { get_param: vlc_zone }
668 - port: { get_resource: VLC2_Internal1 }
669 - port: { get_resource: VLC2_Internal2 }
670 - port: { get_resource: VLC2_OAM }
671 - port: { get_resource: VLC2_SCTP_A }
672 - port: { get_resource: VLC2_SCTP_B }
673 - port: { get_resource: VLC2_GTP }
677 type: OS::Neutron::Port
679 network: { get_resource: Internal1-net }
680 mac_address: { get_param: vlc2-Internal1-mac }
683 type: OS::Neutron::Port
685 network: { get_param: oam_net_id }
687 - ip_address: { get_param: vlc2-oam-ip }
690 type: OS::Neutron::Port
692 network: { get_resource: Internal2-net }
693 mac_address: { get_param: vlc2-Internal2-mac }
696 type: OS::Neutron::Port
698 network: { get_resource: epc-sctp-a-net }
700 - ip_address: { get_param: vlc2-sctp-a-ip }
703 type: OS::Neutron::Port
705 network: { get_resource: epc-sctp-b-net }
707 - ip_address: { get_param: vlc2-sctp-b-ip }
710 type: OS::Neutron::Port
712 network: { get_resource: epc-gtp-net }
714 - ip_address: { get_param: vlc2-gtp-ip }
716 Test-empty-network-in-subnet:
717 type: OS::Neutron::Subnet
719 network_id: { get_param: Internal1-net }
720 cidr: { get_param: Internal1_cidr }
721 gateway_ip: { get_param: Internal1_default_gateway }
722 enable_dhcp: { get_param: Internal1_dhcp }