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::Cinder::Volume
261 volume_type: {get_param: volume_type}
262 name: {get_param: FSB1_volume_name}
263 image: {get_param: FSB_1_image}
266 type: OS::Cinder::Volume
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}
274 type: OS::Contrail::NetworkIpam
276 name: { get_param: Internal1_ipam_name }
279 type: OS::Contrail::NetworkIpam
281 name: { get_param: Internal2_ipam_name }
284 type: OS::Contrail::VirtualNetwork
286 name: { get_param: Internal1_net_name }
287 forwarding_mode: { get_param: Internal1_forwarding_mode }
288 shared: { get_param: Internal1_shared }
290 # route_targets: { "Fn::Split" : [ ",", Ref: route_targets ] }
291 testConvertGetParamFunctions:
292 type: OS::Contrail::VirtualNetwork
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
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 ] }
309 type: OS::Neutron::Subnet
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 }
318 # type: OS::Contrail::VnSubnet
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 }
327 # - start: { get_param: Internal1_net_pool_start }
328 # end: { get_param: Internal1_net_pool_end }
333 type: OS::Contrail::VirtualNetwork
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 ] }
342 # type: OS::Contrail::VnSubnet
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 }
351 # - start: { get_param: Internal2_net_pool_start }
352 # end: { get_param: Internal2_net_pool_end }
355 type: OS::Neutron::Subnet
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 }
363 type: OS::Contrail::VirtualNetwork
365 name: { get_param: epc-sctp-a-net-name }
366 route_targets: [ get_param: epc-sctp-a-net-rt ]
370 type: OS::Neutron::Subnet
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 }
376 - start: { get_param: epc-sctp-a-pool-start }
377 end: { get_param: epc-sctp-a-pool-end }
380 type: OS::Contrail::VirtualNetwork
382 name: { get_param: epc-sctp-b-net-name }
383 route_targets: [ get_param: epc-sctp-b-net-rt ]
386 type: OS::Neutron::Subnet
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 }
392 - start: { get_param: epc-sctp-b-pool-start }
393 end: { get_param: epc-sctp-b-pool-end }
396 type: OS::Contrail::VirtualNetwork
398 name: { get_param: epc-gtp-net-name }
399 route_targets: [ get_param: epc-gtp-net-rt ]
402 type: OS::Neutron::Subnet
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 }
408 - start: { get_param: epc-gtp-pool-start }
409 end: { get_param: epc-gtp-pool-end }
412 type: OS::Nova::Server
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 }
419 - port: { get_resource: FSB1_Internal1 }
420 - port: { get_resource: FSB1_Internal2 }
421 - port: { get_resource: FSB1_OAM }
424 type: OS::Neutron::Port
426 network_id: { get_resource: Internal1-net }
427 mac_address: { get_param: fsb1-Internal1-mac }
430 type: OS::Neutron::Port
432 network_id: { get_resource: Internal2-net }
433 mac_address: { get_param: fsb1-Internal2-mac }
436 type: OS::Neutron::Port
438 network_id: { get_param: oam_net_id }
440 - ip_address: { get_param: fsb1-oam-ip }
443 type: OS::Nova::Server
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 }
450 - port: { get_resource: FSB2_Internal1 }
451 - port: { get_resource: FSB2_Internal2 }
452 - port: { get_resource: FSB2_OAM }
455 type: OS::Neutron::Port
457 network_id: { get_resource: Internal1-net }
458 mac_address: { get_param: fsb2-Internal1-mac }
462 type: OS::Neutron::Port
464 network_id: { get_resource: Internal2-net }
465 mac_address: { get_param: fsb2-Internal2-mac }
468 type: OS::Neutron::Port
470 network_id: { get_param: oam_net_id }
472 - ip_address: { get_param: fsb2-oam-ip }
475 type: OS::Nova::Server
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 }
482 - port: { get_resource: NCB1_Internal1 }
483 - port: { get_resource: NCB1_Internal2 }
486 type: OS::Neutron::Port
488 network_id: { get_resource: Internal1-net }
489 mac_address: { get_param: ncb1-Internal1-mac }
492 type: OS::Neutron::Port
494 network_id: { get_resource: Internal2-net }
495 mac_address: { get_param: ncb1-Internal2-mac }
498 type: OS::Nova::Server
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 }
505 - port: { get_resource: NCB2_Internal1 }
506 - port: { get_resource: NCB2_Internal2 }
509 type: OS::Neutron::Port
511 network_id: { get_resource: Internal1-net }
512 mac_address: { get_param: ncb2-Internal1-mac }
515 type: OS::Neutron::Port
517 network_id: { get_resource: Internal2-net }
518 mac_address: { get_param: ncb2-Internal2-mac }
521 type: OS::Nova::Server
523 name: { get_param: gpb1-name }
525 flavor: { get_param: gpb-flavor }
526 availability_zone: { get_param: gpb_zone }
528 - port: { get_resource: GPB1_Internal1 }
529 - port: { get_resource: GPB1_Internal2 }
532 type: OS::Neutron::Port
534 network_id: { get_resource: Internal1-net }
535 mac_address: { get_param: gpb1-Internal1-mac }
538 type: OS::Neutron::Port
540 network_id: { get_resource: Internal2-net }
541 mac_address: { get_param: gpb1-Internal2-mac }
544 type: OS::Nova::Server
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 }
551 - port: { get_resource: GPB2_Internal1 }
552 - port: { get_resource: GPB2_Internal2 }
555 type: OS::Neutron::Port
557 network_id: { get_resource: Internal1-net }
558 mac_address: { get_param: gpb2-Internal1-mac }
561 type: OS::Neutron::Port
563 network_id: { get_resource: Internal2-net }
564 mac_address: { get_param: gpb2-Internal2-mac }
567 type: OS::Nova::Server
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 }
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 }
582 type: OS::Neutron::Port
584 network_id: { get_resource: Internal1-net }
585 mac_address: { get_param: vlc1-Internal1-mac }
588 type: OS::Neutron::Port
590 network_id: { get_resource: Internal2-net }
591 mac_address: { get_param: vlc1-Internal2-mac }
594 type: OS::Neutron::Port
596 network_id: { get_param: oam_net_id }
598 - ip_address: { get_param: vlc1-oam-ip }
601 type: OS::Neutron::Port
603 network_id: { get_resource: epc-sctp-a-net }
605 - ip_address: { get_param: vlc1-sctp-a-ip }
608 type: OS::Neutron::Port
610 network_id: { get_resource: epc-sctp-b-net }
612 - ip_address: { get_param: vlc1-sctp-b-ip }
615 type: OS::Neutron::Port
617 network_id: { get_resource: epc-gtp-net }
619 - ip_address: { get_param: vlc1-gtp-ip }
622 type: OS::Nova::Server
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 }
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 }
638 type: OS::Neutron::Port
640 network_id: { get_resource: Internal1-net }
641 mac_address: { get_param: vlc2-Internal1-mac }
644 type: OS::Neutron::Port
646 network_id: { get_param: oam_net_id }
648 - ip_address: { get_param: vlc2-oam-ip }
651 type: OS::Neutron::Port
653 network_id: { get_resource: Internal2-net }
654 mac_address: { get_param: vlc2-Internal2-mac }
657 type: OS::Neutron::Port
659 network_id: { get_resource: epc-sctp-a-net }
661 - ip_address: { get_param: vlc2-sctp-a-ip }
664 type: OS::Neutron::Port
666 network_id: { get_resource: epc-sctp-b-net }
668 - ip_address: { get_param: vlc2-sctp-b-ip }
671 type: OS::Neutron::Port
673 network_id: { get_resource: epc-gtp-net }
675 - ip_address: { get_param: vlc2-gtp-ip }