05fedb90529fadb8a3d6ba7aa71023978aa7c064
[apex-tripleo-heat-templates.git] / network / ports / management_from_pool.yaml
1 heat_template_version: ocata
2
3 description: >
4   Returns an IP from a network mapped list of IPs
5
6 parameters:
7   ManagementNetName:
8     description: Name of the management network
9     default: management
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   ManagementNetCidr:
28     default: '172.16.4.0/24'
29     description: Cidr for the management network.
30     type: string
31
32 outputs:
33   ip_address:
34     description: management network IP
35     value: {get_param: [IPPool, {get_param: ManagementNetName}, {get_param: NodeIndex}]}
36   ip_address_uri:
37     description: management network IP (for compatibility with management_v6.yaml)
38     value: {get_param: [IPPool, {get_param: ManagementNetName}, {get_param: NodeIndex}]}
39   ip_subnet:
40     description: IP/Subnet CIDR for the management network IP
41     value:
42       list_join:
43       - ''
44       - - {get_param: [IPPool, {get_param: ManagementNetName}, {get_param: NodeIndex}]}
45         - '/'
46         - {str_split: ['/', {get_param: ManagementNetCidr}, 1]}