Interface naturalization function discards non-matching portion of value #3356

Closed
opened 2025-12-29 18:28:15 +01:00 by adam · 1 comment
Owner

Originally created by @jeremystretch on GitHub (Feb 20, 2020).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.6.9
  • NetBox version: 2.7.6

Steps to Reproduce

  1. Create eight interfaces on a device using the pattern PCIe[2-3]-p[1-4]
  2. View the device's interfaces list

Expected Behavior

All interfaces should appear in order

Observed Behavior

Interfaces are not ordered with respect to the portion of the name following the hyphen. For example, PCIe2-p4 may appear before PCIe2-p1.

Originally created by @jeremystretch on GitHub (Feb 20, 2020). Originally assigned to: @jeremystretch on GitHub. ### Environment * Python version: 3.6.9 * NetBox version: 2.7.6 ### Steps to Reproduce 1. Create eight interfaces on a device using the pattern `PCIe[2-3]-p[1-4]` 2. View the device's interfaces list ### Expected Behavior All interfaces should appear in order ### Observed Behavior Interfaces are not ordered with respect to the portion of the name following the hyphen. For example, PCIe2-p4 may appear before PCIe2-p1.
adam added the type: bugstatus: accepted labels 2025-12-29 18:28:15 +01:00
adam closed this issue 2025-12-29 18:28:15 +01:00
Author
Owner

@tfboy commented on GitHub (Feb 21, 2020):

Thank you! :)
Xavier

@tfboy commented on GitHub (Feb 21, 2020): Thank you! :) Xavier
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3356