IndexError on provisioning IPv6 IPs #1793

Closed
opened 2025-12-29 17:19:10 +01:00 by adam · 0 comments
Owner

Originally created by @milleroff on GitHub (Jun 16, 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.

Originally created by @milleroff on GitHub (Jun 16, 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.
adam added the type: bugstatus: accepted labels 2025-12-29 17:19:10 +01:00
adam closed this issue 2025-12-29 17:19:10 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1793