Skip to content

Commit d774404

Browse files
authored
Merge pull request #62 from stackhpc/subnetpool
subnetpool: Add subnetpool option to os_network
2 parents cbeb41a + eb8b3d1 commit d774404

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

roles/os_networks/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ dict containing the following items:
7070
- `ip_version`: Optional IP version for the subnet.
7171
- `ipv6_address_mode`: Optional IPv6 address mode for the subnet.
7272
- `ipv6_ra_mode`: Optional IPv6 router advertisement mode for the subnet.
73-
- `use_default_subnetpool`: Optional boolean, whether to use the default
74-
subnet pool for the IP version.
73+
- `use_default_subnetpool`: **deprecated** Optional boolean, whether to use
74+
the default subnet pool for the IP version.
75+
- `subnetpool`: Optional subnetpool to use for the subnet.
7576
- `project`: Optionally create this subnet for a project other than the
7677
authenticating project.
7778
- `state`: Optional state of the subnet, default is `present`.

roles/os_networks/tasks/networks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
ipv6_address_mode: "{{ item.1.ipv6_address_mode | default(omit) }}"
5858
ipv6_ra_mode: "{{ item.1.ipv6_ra_mode | default(omit) }}"
5959
use_default_subnetpool: "{{ item.1.use_default_subnetpool | default(omit) }}"
60+
subnetpool: "{{ item.1.subnetpool | default(omit) }}"
6061
project: "{{ item.1.project | default(omit) }}"
6162
state: "{{ item.1.state | default(omit) }}"
6263
with_subelements:

0 commit comments

Comments
 (0)