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

Bulk IPv6 address creation is broken #963

Closed
jeremystretch opened this issue Mar 14, 2017 · 0 comments
Closed

Bulk IPv6 address creation is broken #963

jeremystretch opened this issue Mar 14, 2017 · 0 comments
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@jeremystretch
Copy link
Member

Issue type: Bug report

Python version: 2.7.6
NetBox version: 1.9.1

As reported by Didrik on the mailing list, there is a bug affecting the bulk creation of IPv6 addresses. This can be observed by attempting to create a range of IPv6 addresses as such:

2001:db8::[100,200,300]/128

This is expected to create three IPv6 addresses, however it creates 669 addresses. This is due to a bug in the parse_numeric_range() utility function which does not correct cast the beginning of a range to the appropriate numeric base. Thus, instead of returning e.g. range(256, 257) it returns range(100, 257).

@jeremystretch jeremystretch added the type: bug A confirmed report of unexpected behavior in the application label Mar 14, 2017
lampwins pushed a commit to lampwins/netbox that referenced this issue Oct 13, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

1 participant