Bump template version for all templates to "ocata"
[apex-tripleo-heat-templates.git] / network / internal_api.yaml
1 heat_template_version: ocata
2
3 description: >
4   Internal API network. Used for most APIs, Database, RPC.
5
6 parameters:
7   # the defaults here work for static IP assignment (IPAM) only
8   InternalApiNetCidr:
9     default: '172.16.2.0/24'
10     description: Cidr for the internal API network.
11     type: string
12   InternalApiNetValueSpecs:
13     default: {'provider:physical_network': 'internal_api', 'provider:network_type': 'flat'}
14     description: Value specs for the internal API network.
15     type: json
16   InternalApiNetAdminStateUp:
17     default: false
18     description: This admin state of the network.
19     type: boolean
20   InternalApiNetEnableDHCP:
21     default: false
22     description: Whether to enable DHCP on the associated subnet.
23     type: boolean
24   InternalApiNetShared:
25     default: false
26     description: Whether this network is shared across all tenants.
27     type: boolean
28   InternalApiNetName:
29     default: internal_api
30     description: The name of the internal API network.
31     type: string
32   InternalApiSubnetName:
33     default: internal_api_subnet
34     description: The name of the internal API subnet in Neutron.
35     type: string
36   InternalApiAllocationPools:
37     default: [{'start': '172.16.2.4', 'end': '172.16.2.250'}]
38     description: Ip allocation pool range for the internal API network.
39     type: json
40
41 resources:
42   InternalApiNetwork:
43     type: OS::Neutron::Net
44     properties:
45       admin_state_up: {get_param: InternalApiNetAdminStateUp}
46       name: {get_param: InternalApiNetName}
47       shared: {get_param: InternalApiNetShared}
48       value_specs: {get_param: InternalApiNetValueSpecs}
49
50   InternalApiSubnet:
51     type: OS::Neutron::Subnet
52     properties:
53       cidr: {get_param: InternalApiNetCidr}
54       enable_dhcp: {get_param: InternalApiNetEnableDHCP}
55       name: {get_param: InternalApiSubnetName}
56       network: {get_resource: InternalApiNetwork}
57       allocation_pools: {get_param: InternalApiAllocationPools}
58       gateway_ip: null
59
60 outputs:
61   OS::stack_id:
62     description: Neutron internal network
63     value: {get_resource: InternalApiNetwork}