867176e32c5476151fb76a7c68c664cd4a74b1aa
[apex-tripleo-heat-templates.git] / network / ports / external_from_pool.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   ExternalNetName:
8     description: Name of the external network
9     default: external
10     type: string
11   PortName:
12     description: Name of the port
13     default: ''
14     type: string
15   ControlPlaneIP: # Here for compatibility 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   ExternalNetCidr:
28     default: '10.0.0.0/24'
29     description: Cidr for the external network.
30     type: string
31
32 outputs:
33   ip_address:
34     description: external network IP
35     value: {get_param: [IPPool, {get_param: ExternalNetName}, {get_param: NodeIndex}]}
36   ip_address_uri:
37     description: external network IP (for compatibility with IPv6)
38     value: {get_param: [IPPool, {get_param: ExternalNetName}, {get_param: NodeIndex}]}
39   ip_subnet:
40     description: IP/Subnet CIDR for the external network IP
41     value:
42       list_join:
43       - ''
44       - - {get_param: [IPPool, {get_param: ExternalNetName}, {get_param: NodeIndex}]}
45         - '/'
46         - {str_split: ['/', {get_param: ExternalNetCidr}, 1]}