Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NetBox 3.1.1+ returns HTTP 409 instead of 204 when available-ips/prefixes request cannot be fulfilled #422

Closed
markkuleinio opened this issue Dec 11, 2021 · 0 comments · Fixed by #423

Comments

@markkuleinio
Copy link
Contributor

In NetBox netbox-community/netbox@7c14c08 the unsuccessful IP or prefix allocation requests with available-ips or available-prefixes API child endpoints will return HTTP status code 409 instead of 204. This will require change in pynetbox to raise AllocationError correctly.

@markkuleinio markkuleinio changed the title NetBox 3.1.1+ will return HTTP 409 instead of 204 when available-ips/prefixes request cannot be fulfilled NetBox 3.1.1+ returns HTTP 409 instead of 204 when available-ips/prefixes request cannot be fulfilled Dec 13, 2021
zachmoody added a commit that referenced this issue Dec 22, 2021
Fixes #422: Adds support for HTTP 409 when allocation is unsuccessful
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant