Merge lp:~julian-edwards/maas/request-user-ip into lp:~maas-committers/maas/trunk
Proposed by
Julian Edwards
Status: | Merged |
---|---|
Approved by: | Julian Edwards |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2953 |
Proposed branch: | lp:~julian-edwards/maas/request-user-ip |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
145 lines (+57/-5) 2 files modified
src/maasserver/api/ip_addresses.py (+18/-4) src/maasserver/api/tests/test_ipaddresses.py (+39/-1) |
To merge this branch: | bzr merge lp:~julian-edwards/maas/request-user-ip |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jeroen T. Vermeulen (community) | Approve | ||
Review via email: mp+234248@code.launchpad.net |
Commit message
Allow API users to optionally request specific IP addresses when requesting USER_RESERVED static IP addresses. Previously a random one was always allocated.
To post a comment you must log in.
I can see why you might return an HTTP status code of Forbidden for an address that wasn't in the right range, but Not Found for an address that's already taken seems strange. Isn't this a classic case for the Conflict error?