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

IndexError on provisioning IPv6 IPs #2173

Closed
milleroff opened this issue Jun 15, 2018 · 0 comments
Closed

IndexError on provisioning IPv6 IPs #2173

milleroff opened this issue Jun 15, 2018 · 0 comments
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@milleroff
Copy link

milleroff commented Jun 15, 2018

Issue type

[ X] Bug report

Environment

  • Python version: 2.7.5
  • NetBox version: 2.3.4

Description

Hi.
A similar issue #1390 was submitted already, but it was for a "list" method.
Trying to provision an IPv6 address from a /64 subnet using the API:

curl -v -X POST -H "Authorization: Token XXXXXXXXXXX" \
-H "Content-Type: application/json" \
-H "Accept: application/json; indent=4" \
'https://netbox.example.com/api/ipam/prefixes/301/available-ips/?limit=1' \
-d '{"description":"ipv6 description"}'

NetBox replies:

exceptions.IndexError
range contains more than 9223372036854775807 (sys.maxint) IP addresses!Use the .size property instead.

Thanks.

@jeremystretch jeremystretch added type: bug A confirmed report of unexpected behavior in the application status: accepted This issue has been accepted for implementation labels Jun 29, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jan 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants