-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Range "568" is invalid when creating interface with names vlan [568,570] #13722
Comments
Thanks @pv2b, I've assigned this to you. |
Range "568" is invalid when creating interface with names vlan [568,570]
This also shows up with interfaces, FYI. |
…d expand_alphanumeric_pattern
This bug report is about interfaces, yes. I'm not sure what you mean to say with this? |
Sorry, case of the fridays, was thinking it was with vlans. |
I'll just add that we're running into this issue as well and merging in #13730 seems to resolve our problems. It would be nice to see this merged into a release. |
…ed (#15301) * Fixes: #13722 - Correct range expansion code when a numeric set is used * Correct to my own suggestion * Clean up logic * Simplify range detection --------- Co-authored-by: Jeremy Stretch <[email protected]>
NetBox version
v3.6.1
Python version
3.11
Steps to Reproduce
vlan [568,570]
Expected Behavior
Two interfaces named
vlan 568
andvlan 570
are created.Observed Behavior
An error message is shown:
Range "568" is invalid
NOTE: The below works but will of course not create the appropriate names:
vlan [a568,a570]
I believe the error is in parse_alphanumeric_range in netbox/utilities/forms/utils.py. I think that function is a little overdue for some refactoring, and I'm happy to take it on if accepted.
The text was updated successfully, but these errors were encountered: