Skip to content

Range "568" is invalid when creating interface with names vlan [568,570] #13722

Closed
@pv2b

Description

@pv2b

NetBox version

v3.6.1

Python version

3.11

Steps to Reproduce

  1. Go to an existing device and click on add interfaces.
  2. Set the interface name to vlan [568,570]
  3. 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.

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions