Merge "Create split out neutron networks via Heat."
[apex-tripleo-heat-templates.git] / network / external.yaml
1 heat_template_version: 2014-10-16
2
3 description: >
4   External network. Public traffic, Neutron l3router for floating IPs/SNAT, etc.
5
6 parameters:
7   # the defaults here work for static IP assignment (IPAM) only
8   ExternalNetCidr:
9     default: '10.0.0.0/24'
10     description: Cidr for the external network.
11     type: string
12   ExternalNetValueSpecs:
13     default: {'provider:physical_network': 'external', 'provider:network_type': 'flat'}
14     description: Value specs for the external network.
15     type: string
16   ExternalNetAdminStateUp:
17     default: false
18     description: This admin state of of the network.
19     type: boolean
20   ExternalNetEnableDHCP:
21     default: false
22     description: Whether to enable DHCP on the associated subnet.
23     type: boolean
24   ExternalNetShared:
25     default: false
26     description: Whether this network is shared across all tenants.
27     type: boolean
28   ExternalNetName:
29     default: external
30     description: The name of the external network.
31     type: string
32   ExternalSubnetName:
33     default: external_subnet
34     description: The name of the external subnet in Neutron.
35     type: string
36
37
38 resources:
39   ExternalNetwork:
40     type: OS::Neutron::Net
41     properties:
42       admin_state_up: {get_param: ExternalNetAdminStateUp}
43       name: {get_param: ExternalNetName}
44       shared: {get_param: ExternalNetShared}
45       value_specs: {get_param: ExternalNetValueSpecs}
46
47   ExternalSubnet:
48     type: OS::Neutron::Subnet
49     properties:
50       cidr: {get_param: ExternalNetCidr}
51       enable_dhcp: {get_param: ExternalNetEnableDHCP}
52       name: {get_param: ExternalSubnetName}
53       network: {get_resource: ExternalNetwork}
54
55 outputs:
56   OS::stack_id:
57     description: Neutron external network
58     value: {get_resource: ExternalNetwork}