InterfaceTemplate ordering does not match the order on an actual device #10731

Closed
opened 2025-12-29 21:35:18 +01:00 by adam · 2 comments
Owner

Originally created by @AliMickey on GitHub (Feb 4, 2025).

Deployment Type

Self-hosted

NetBox Version

v4.2.2.

Python Version

3.12

Steps to Reproduce

  1. Create interfaces on a device type template:
Ethernet1
Ethernet2
Ethernet3
Ethernet4
Ethernet5/1
Ethernet5/2
Ethernet5/3
Ethernet5/4
  1. Create a new device using that template.
  2. Observe that the interface order of the interfaces does not match in default ordering.
Ethernet5/1
Ethernet5/2
Ethernet5/3
Ethernet5/4
Ethernet1
Ethernet2
Ethernet3
Ethernet4

Expected Behavior

The created device should match the template, as it is a template.

Observed Behavior

The default ordering on a device's interface table does not represent the template order.

As a side note, I know this sort of issue has been raised multiple times previously however I had hoped there was an improvement in the recent v4 release that notes collation based ordering.

Whatever order the InterfaceTemplate uses is better, if i add a new interface as a test "Ethernet1/1" it correctly slots in between the existing interfaces (in the InterfaceTemplate table):

Ethernet1
Ethernet1/1
Ethernet2
Ethernet3
Ethernet4

I have cleared my interface sorting defaults, made sure multiple columns were not selected for sorting, no luck :( .

Originally created by @AliMickey on GitHub (Feb 4, 2025). ### Deployment Type Self-hosted ### NetBox Version v4.2.2. ### Python Version 3.12 ### Steps to Reproduce 1. Create interfaces on a device type template: ``` Ethernet1 Ethernet2 Ethernet3 Ethernet4 Ethernet5/1 Ethernet5/2 Ethernet5/3 Ethernet5/4 ``` 2. Create a new device using that template. 3. Observe that the interface order of the interfaces does not match in default ordering. ``` Ethernet5/1 Ethernet5/2 Ethernet5/3 Ethernet5/4 Ethernet1 Ethernet2 Ethernet3 Ethernet4 ``` ### Expected Behavior The created device should match the template, as it is a template. ### Observed Behavior The default ordering on a device's interface table does not represent the template order. As a side note, I know this sort of issue has been raised multiple times previously however I had hoped there was an improvement in the recent v4 release that notes collation based ordering. Whatever order the InterfaceTemplate uses is better, if i add a new interface as a test "Ethernet1/1" it correctly slots in between the existing interfaces (in the InterfaceTemplate table): ``` Ethernet1 Ethernet1/1 Ethernet2 Ethernet3 Ethernet4 ``` I have cleared my interface sorting defaults, made sure multiple columns were not selected for sorting, no luck :( .
adam added the type: bugstatus: needs ownerpending closureseverity: low labels 2025-12-29 21:35:18 +01:00
adam closed this issue 2025-12-29 21:35:18 +01:00
Author
Owner

@github-actions[bot] commented on GitHub (May 7, 2025):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (May 7, 2025): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/main/CONTRIBUTING.md).
Author
Owner

@github-actions[bot] commented on GitHub (Jun 6, 2025):

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.

@github-actions[bot] commented on GitHub (Jun 6, 2025): This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10731