Closed
Description
NetBox version
v3.6.1
Python version
3.11
Steps to Reproduce
- Go to an existing device and click on add interfaces.
- Set the interface name to
vlan [568,570]
- Fill in a type (any type is fine)
Expected Behavior
Two interfaces named vlan 568
and vlan 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.