Create mgmt subnet with gateway if provided

This change adds the ability to create the mgmt subnet with default
gateway when the specified variable provided.

Change-Id: Ief7f60972c62388cee1f579e8988c4ba57c8fb65
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
This commit is contained in:
Maksim Malchuk 2019-09-12 08:43:38 +03:00
parent 7a8e052276
commit d1380ea167
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,7 @@
---
features:
- |
Now you can set up ``octavia_management_net_subnet_gateway`` variable to
create the management subnet with default gateway set. By default the
subnet created without gateway.

View File

@ -67,6 +67,7 @@
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) }}"
gateway_ip: "{{ octavia_management_net_subnet_gateway | default(omit) }}"
interface: admin
verify: "{{ not keystone_service_adminuri_insecure }}"
register: add_subnet