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