Name expansion doesn't allow for comma separated values #8785

Closed
opened 2025-12-29 20:41:12 +01:00 by adam · 1 comment
Owner

Originally created by @kr3ator on GitHub (Oct 30, 2023).

NetBox version

v3.6.4

Python version

3.8

Steps to Reproduce

  1. For an existing device or a device template click Add components --> Interface
  2. Set type to Virtual and in the Name field enter: Eth[0,4,2-3]
  3. Click Create

Expected Behavior

Four new virtual interfaces should be created: Eth0, Eth4, Eth2, Eth3.

Observed Behavior

A template validation error is thrown: "Range '0' is invalid."

This bug was introduced by this commit

Originally created by @kr3ator on GitHub (Oct 30, 2023). ### NetBox version v3.6.4 ### Python version 3.8 ### Steps to Reproduce 1. For an existing device or a device template click _Add components --> Interface_ 2. Set type to _Virtual_ and in the Name field enter: Eth[0,4,2-3] 3. Click Create ### Expected Behavior Four new virtual interfaces should be created: Eth0, Eth4, Eth2, Eth3. ### Observed Behavior A template validation error is thrown: "Range '0' is invalid." This bug was introduced by [this commit](https://github.com/netbox-community/netbox/pull/13326/commits/9972ed7cfa86a6771261f9b60cc4913f711f6788)
adam added the type: bugstatus: duplicate labels 2025-12-29 20:41:12 +01:00
adam closed this issue 2025-12-29 20:41:12 +01:00
Author
Owner

@jeremystretch commented on GitHub (Oct 30, 2023):

Thank you for submitting this issue, however it appears that this topic has already been raised. Please see issue #13722 for further discussion.

@jeremystretch commented on GitHub (Oct 30, 2023): Thank you for submitting this issue, however it appears that this topic has already been raised. Please see issue #13722 for further discussion.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8785