Skip to content

subnetpool: Add subnetpool option to os_network #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions roles/os_networks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ dict containing the following items:
- `ip_version`: Optional IP version for the subnet.
- `ipv6_address_mode`: Optional IPv6 address mode for the subnet.
- `ipv6_ra_mode`: Optional IPv6 router advertisement mode for the subnet.
- `use_default_subnetpool`: Optional boolean, whether to use the default
subnet pool for the IP version.
- `use_default_subnetpool`: **deprecated** Optional boolean, whether to use
the default subnet pool for the IP version.
- `subnetpool`: Optional subnetpool to use for the subnet.
- `project`: Optionally create this subnet for a project other than the
authenticating project.
- `state`: Optional state of the subnet, default is `present`.
Expand Down
1 change: 1 addition & 0 deletions roles/os_networks/tasks/networks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
ipv6_address_mode: "{{ item.1.ipv6_address_mode | default(omit) }}"
ipv6_ra_mode: "{{ item.1.ipv6_ra_mode | default(omit) }}"
use_default_subnetpool: "{{ item.1.use_default_subnetpool | default(omit) }}"
subnetpool: "{{ item.1.subnetpool | default(omit) }}"
project: "{{ item.1.project | default(omit) }}"
state: "{{ item.1.state | default(omit) }}"
with_subelements:
Expand Down