OS::OVB::PrivateNetwork which creates a network

This adds an implementation of OS::OVB::PrivateNetwork which creates a
private network and routes it to the external network.

This has been tested by creating the stack and confirming connectivity
from external -> undercloud -> bmc, but has not yet been tested with a
full overcloud deploy.
This commit is contained in:
Steve Baker 2016-01-12 14:06:35 +13:00
parent 142583f6a2
commit 1965bcdfd2
3 changed files with 52 additions and 1 deletions

View File

@ -32,3 +32,7 @@ parameters:
# Uncomment the following to use no floating ip
# resource_registry:
# OS::OVB::UndercloudFloating: templates/undercloud-floating-none.yaml
# Uncomment the following to create a private network
# resource_registry:
# OS::OVB::PrivateNetwork: templates/private-net-create.yaml

View File

@ -0,0 +1,48 @@
heat_template_version: 2015-04-30
# Template which creates a private network which is routed to an external
# network.
parameters:
external_net:
type: string
description: An external network for the private network to route to
private_net:
type: string
description: Name of private network
private_net_cidr:
type: string
description: CIDR for private network subnet
default: 10.0.1.0/24
resources:
network:
type: OS::Neutron::Net
properties:
name: {get_param: private_net}
subnet:
type: OS::Neutron::Subnet
properties:
network: {get_resource: network}
name: {get_param: private_net}
cidr: {get_param: private_net_cidr}
router:
type: OS::Neutron::Router
properties:
external_gateway_info:
network: {get_param: external_net}
router_interface:
type: OS::Neutron::RouterInterface
properties:
router: {get_resource: router}
subnet: {get_resource: subnet}
outputs:
private_net:
value: {get_param: private_net}

View File

@ -7,7 +7,6 @@ heat_template_version: 2015-04-30
parameters:
external_net:
type: string
default: private
description: An external network from which floating ips can be provisioned
private_net: