Skip to content

Add SubnetPool controller#844

Open
winiciusallan wants to merge 3 commits into
k-orc:mainfrom
winiciusallan:subnet-pool-controller
Open

Add SubnetPool controller#844
winiciusallan wants to merge 3 commits into
k-orc:mainfrom
winiciusallan:subnet-pool-controller

Conversation

@winiciusallan

Copy link
Copy Markdown
Member

This PR introduces the SubnetPool controller, which delegates the manage of subnet addresses allocation to Neutron.

Notes:

  • I decide to not implement the DefaultQuota, because we can't unset it, neither create it as 0.
  • Also I thought reasonable to keep the <Min|Max>PrefixLength required in the API, because we can't unset them when updating. Another possibility is to keep them immutable.

Closes #393

$ go run ./cmd/scaffold-controller -interactive=false \
    -gophercloud-client=NewNetworkV2 \
    -kind SubnetPool \
    -gophercloud-module=github.com/gophercloud/gophercloud/v2/openstack/networking/v2/extensions/subnetpools \
    -import-dependency Project \
    -import-dependency AddressScope \
    -optional-create-dependency Project \
    -optional-create-dependency AddressScope
@github-actions github-actions Bot added the semver:major Breaking change label Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver:major Breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable (IPv6) Subnet Allocation with AddressScope/SubnetPool

1 participant