d4f0d29caf0b99c5f30b01bbfd067da1866ef29b
[apex-tripleo-heat-templates.git] / network / ports / tenant_from_pool_v6.yaml
1 heat_template_version: 2015-10-15
2
3 description: >
4   Returns an IP from a network mapped list of IPs
5
6 parameters:
7   TenantNetName:
8     description: Name of the tenant network
9     default: tenant
10     type: string
11   PortName:
12     description: Name of the port
13     default: ''
14     type: string
15   ControlPlaneIP: # Here for compatability with noop.yaml
16     description: IP address on the control plane
17     default: ''
18     type: string
19   IPPool:
20     default: {}
21     description: A network mapped list of IPs
22     type: json
23   NodeIndex:
24     default: 0
25     description: Index of the IP to get from Pool
26     type: number
27   TenantNetCidr:
28     default: 'fd00:fd00:fd00:5000::/64'
29     description: Cidr for the tenant network.
30     type: string
31
32 outputs:
33   ip_address:
34     description: tenant network IP
35     value: {get_param: [IPPool, {get_param: TenantNetName}, {get_param: NodeIndex}]}
36   ip_address_uri:
37     description: tenant network IP (for compatibility with tenant_v6.yaml)
38     value:
39           list_join:
40           - ''
41           - - '['
42             - {get_param: [IPPool, {get_param: ExternalNetName}, {get_param: NodeIndex}]}
43             - ']'
44   ip_subnet:
45     description: IP/Subnet CIDR for the tenant network IP
46     value:
47       list_join:
48       - ''
49       - - {get_param: [IPPool, {get_param: TenantNetName}, {get_param: NodeIndex}]}
50         - '/'
51         - {str_split: ['/', {get_param: TenantNetCidr}, 1]}