Merge ~mpontillo/maas:disallow-slash-zero-subnets--bug-1672947 into maas:master
Proposed by
Mike Pontillo
Status: | Merged |
---|---|
Approved by: | Mike Pontillo |
Approved revision: | 8062000f79f5e9f6e338c9f62abd959dc55625c5 |
Merge reported by: | MAAS Lander |
Merged at revision: | not available |
Proposed branch: | ~mpontillo/maas:disallow-slash-zero-subnets--bug-1672947 |
Merge into: | maas:master |
Diff against target: |
304 lines (+83/-27) 2 files modified
src/maasserver/forms/subnet.py (+15/-0) src/maasserver/forms/tests/test_subnet.py (+68/-27) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andres Rodriguez (community) | Approve | ||
Review via email: mp+337027@code.launchpad.net |
Commit message
LP: #1672947 - Disallow subnets with prefixlen=0
* Add friendlier error message if an invalid CIDR is passed in.
* Drive-by fix to use dict(form.errors), which provides nicer
errors if tests fail.
To post a comment you must log in.
lgtm! i just have one question inline.