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

Closed
opened 2025-12-29 20:38:33 +01:00 by adam · 5 comments
Owner

Originally created by @pv2b on GitHub (Sep 8, 2023).

Originally assigned to: @DanSheps on GitHub.

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.

Originally created by @pv2b on GitHub (Sep 8, 2023). Originally assigned to: @DanSheps on GitHub. ### 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.
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 20:38:33 +01:00
adam closed this issue 2025-12-29 20:38:34 +01:00
Author
Owner

@jeremystretch commented on GitHub (Sep 8, 2023):

Thanks @pv2b, I've assigned this to you.

@jeremystretch commented on GitHub (Sep 8, 2023): Thanks @pv2b, I've assigned this to you.
Author
Owner

@DanSheps commented on GitHub (Sep 8, 2023):

This also shows up with interfaces, FYI.

@DanSheps commented on GitHub (Sep 8, 2023): This also shows up with interfaces, FYI.
Author
Owner

@pv2b commented on GitHub (Sep 8, 2023):

This also shows up with interfaces, FYI.

This bug report is about interfaces, yes. I'm not sure what you mean to say with this?

@pv2b commented on GitHub (Sep 8, 2023): > This also shows up with interfaces, FYI. This bug report is about interfaces, yes. I'm not sure what you mean to say with this?
Author
Owner

@DanSheps commented on GitHub (Sep 11, 2023):

This also shows up with interfaces, FYI.

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.

@DanSheps commented on GitHub (Sep 11, 2023): > > This also shows up with interfaces, FYI. > > 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.
Author
Owner

@markh0338 commented on GitHub (Nov 30, 2023):

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.

@markh0338 commented on GitHub (Nov 30, 2023): 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8590