Bump template version for all templates to "ocata"
[apex-tripleo-heat-templates.git] / network / external.yaml
1 heat_template_version: ocata
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: json
16   ExternalNetAdminStateUp:
17     default: false
18     description: This admin state 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   ExternalAllocationPools:
37     default: [{'start': '10.0.0.4', 'end': '10.0.0.250'}]
38     description: Ip allocation pool range for the external network.
39     type: json
40   ExternalInterfaceDefaultRoute:
41     default: '10.0.0.1'
42     description: default route for the external network
43     type: string
44
45 resources:
46   ExternalNetwork:
47     type: OS::Neutron::Net
48     properties:
49       admin_state_up: {get_param: ExternalNetAdminStateUp}
50       name: {get_param: ExternalNetName}
51       shared: {get_param: ExternalNetShared}
52       value_specs: {get_param: ExternalNetValueSpecs}
53
54   ExternalSubnet:
55     type: OS::Neutron::Subnet
56     properties:
57       cidr: {get_param: ExternalNetCidr}
58       enable_dhcp: {get_param: ExternalNetEnableDHCP}
59       name: {get_param: ExternalSubnetName}
60       network: {get_resource: ExternalNetwork}
61       allocation_pools: {get_param: ExternalAllocationPools}
62       gateway_ip: {get_param: ExternalInterfaceDefaultRoute}
63
64 outputs:
65   OS::stack_id:
66     description: Neutron external network
67     value: {get_resource: ExternalNetwork}