Merge "Add allocation pool for octavia mgmt subnet"

This commit is contained in:
Zuul 2017-11-03 17:47:46 +00:00 committed by Gerrit Code Review
commit 8b053378fd
2 changed files with 5 additions and 0 deletions

View File

@ -325,6 +325,9 @@ octavia_provider_network_name: lbaas
octavia_provider_network_type: flat
# Network CIDR
octavia_management_net_subnet_cidr: 172.29.232.0/22
# Example allocation range:
# octavia_management_net_subnet_allocation_pools: "172.29.232.10-172.29.235.200"
octavia_management_net_subnet_allocation_pools: ""
# Do we require the Neutron DHCP server
octavia_management_net_dhcp: "True"
# Should Octavia set up the network and subnet?

View File

@ -50,6 +50,8 @@
name: "{{ octavia_neutron_management_network_name }}-subnet"
cidr: "{{ octavia_management_net_subnet_cidr }}"
enable_dhcp: "{{ octavia_management_net_dhcp }}"
allocation_pool_start: "{{ octavia_management_net_subnet_allocation_pools.split('-')[0] | default(omit) }}"
allocation_pool_end: "{{ octavia_management_net_subnet_allocation_pools.split('-')[1] | default(omit) }}"
when: octavia_service_net_setup
- name: Get neutron network