Subnet and Space APIs should provide summary information regarding IPv4 address allocation
Bug #1498221 reported by
Mike Pontillo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Wishlist
|
Mike Pontillo |
Bug Description
User story:
As an API user, I want to see the following details about a subnet:
* number of used IP addresses
* number allocated IP addresses
* percentage utilization
* largest contiguous block of free addresses
Acceptance criteria:
- Above information is available when viewing a particular Subnet's details in the API
- Above information is available when viewing a particular Space in the API (which is an aggregation of this information across all subnets in the space)
- Information available on the Spaces API only applies to IPv4 subnets within that Space, since IPv6 does not have an address shortage problem.
Related branches
lp:~mpontillo/maas/subnet-websockets
- Blake Rouse (community): Approve
-
Diff: 937 lines (+650/-33)14 files modifiedsrc/maasserver/api/subnets.py (+63/-12)
src/maasserver/api/tests/test_subnets.py (+132/-1)
src/maasserver/models/staticipaddress.py (+22/-0)
src/maasserver/models/subnet.py (+33/-5)
src/maasserver/models/tests/test_staticipaddress.py (+56/-1)
src/maasserver/models/tests/test_subnet.py (+87/-0)
src/maasserver/websockets/base.py (+4/-1)
src/maasserver/websockets/handlers/__init__.py (+3/-0)
src/maasserver/websockets/handlers/subnet.py (+50/-0)
src/maasserver/websockets/handlers/tests/test_subnet.py (+66/-0)
src/maasserver/websockets/tests/test_protocol.py (+32/-12)
src/maastesting/factory.py (+5/-0)
src/provisioningserver/utils/network.py (+59/-1)
src/provisioningserver/utils/tests/test_network.py (+38/-0)
Changed in maas: | |
importance: | Undecided → Critical |
summary: |
- Subnet API should provide summary information regarding IPv4 address - allocation + Subnet and Space APIs should provide summary information regarding IPv4 + address allocation |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 1.9.0 → none |
importance: | Critical → Wishlist |
Changed in maas: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
Changing back to "In Progress" because we've landed the API for subnets, but not spaces.