[2.0a4] When providng DHCP a smarter default dynamic range is needed

Bug #1562198 reported by Mike Pontillo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Mike Pontillo

Bug Description

When using the "Provide DHCP" option to provide DHCP for the first time on a subnet, we simply scan the subnet for the largest available block, and pre-populate the start and end IP addresses with that range.

That is not desirable, because then there will not be any room left over on the subnet for static IP addresses.

We should take the largest range and make a better initial proposal. Suggestion:

 - Initially try to propose no more than 1/4 of the range to be dynamic. For example, on a /24, we could attempt to allocate 64 addresses to the dynamic range.
 - If less than 50% of the range is available for allocation, try to use 50% of the largest available block of addresses. For example, if there are 50 addresses free on a /24 and we go to provide DHCP, we should propose a range with 25 addresses for the dynamic range, so that the remaining 25 addresses can be used for static IP address assignment.

Additionally, we need better client-side validation to ensure selected IP addresses are within the subnet specified by the user. (for added benefit, we can even validate that the addresses are not within an existing allocation block - before submitting it to the server)

Related branches

Changed in maas:
milestone: none → 2.0.0
importance: High → Critical
Changed in maas:
assignee: nobody → Jeffrey C Jones (trapnine)
status: Triaged → In Progress
Changed in maas:
assignee: Jeffrey C Jones (trapnine) → Mike Pontillo (mpontillo)
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.