sort interfaces so that physical interfaces are listed 1st and virtual/logical interfaces are listed last #4041

Closed
opened 2025-12-29 18:32:47 +01:00 by adam · 5 comments
Owner

Originally created by @anubisg1 on GitHub (Aug 28, 2020).

Environment

netbox version 2.8.8 (according to bottom of the page) , python version i have no clue i am an application user not a devops, i do not deploy the app on the server

Proposed Functionality

When opening a device, all physical interfaces should be listed first, then all virtual interfaces (like SVIs, loopbacks, LAGs) should be listed.
Right now we sort (i believe alphabetically) without any regards between physical and virtual interfaces

Use Case

Any user interested in working with a physical device. Having physical interfaces first not only makes it for a more clean user experience but also aligns with the way devices display user information

Database Changes

Likely none, i am not a developer, so i don't really know

External Dependencies

Likely none, i am not a developer, so i don't really know

Originally created by @anubisg1 on GitHub (Aug 28, 2020). ### Environment netbox version 2.8.8 (according to bottom of the page) , python version i have no clue i am an application user not a devops, i do not deploy the app on the server ### Proposed Functionality When opening a device, all physical interfaces should be listed first, then all virtual interfaces (like SVIs, loopbacks, LAGs) should be listed. Right now we sort (i believe alphabetically) without any regards between physical and virtual interfaces ### Use Case Any user interested in working with a physical device. Having physical interfaces first not only makes it for a more clean user experience but also aligns with the way devices display user information ### Database Changes Likely none, i am not a developer, so i don't really know ### External Dependencies Likely none, i am not a developer, so i don't really know
adam closed this issue 2025-12-29 18:32:47 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 28, 2020):

This issue is pending closure as it does not conform to one of the provided templates as required by the contributing guide. If you'd like to request that your issue be re-opened, please first update the content so that it matches the appropriate template (this may require rewriting your issue entirely).

@jeremystretch commented on GitHub (Aug 28, 2020): This issue is pending closure as it does not conform to one of the [provided templates](https://github.com/netbox-community/netbox/issues/new/choose) as required by the [contributing guide](https://github.com/netbox-community/netbox/blob/master/CONTRIBUTING.md). If you'd like to request that your issue be re-opened, please first update the content so that it matches the appropriate template (this may require rewriting your issue entirely).
Author
Owner

@anubisg1 commented on GitHub (Aug 28, 2020):

not sure how a couple of "bold" lines make any difference, but updated

@anubisg1 commented on GitHub (Aug 28, 2020): not sure how a couple of "bold" lines make any difference, but updated
Author
Owner

@DanSheps commented on GitHub (Aug 28, 2020):

Still doesn't conform, we don't know what version you are using or anything similar. Please make sure you follow the template.

@DanSheps commented on GitHub (Aug 28, 2020): Still doesn't conform, we don't know what version you are using or anything similar. Please make sure you follow the template.
Author
Owner

@anubisg1 commented on GitHub (Aug 28, 2020):

version 2.8.8 (according to bottom of the page) , python version i have no clue i am an application user not a devops, i do not deploy the app on the server

@anubisg1 commented on GitHub (Aug 28, 2020): version 2.8.8 (according to bottom of the page) , python version i have no clue i am an application user not a devops, i do not deploy the app on the server
Author
Owner

@jeremystretch commented on GitHub (Aug 28, 2020):

The logic used for ordering interfaces is rather complex, and extends beyond alphanumeric sorting. The current implementation is the end result of lots of community discussion, so we're not going to make any changes that would upset the consensus.

@jeremystretch commented on GitHub (Aug 28, 2020): The logic used for ordering interfaces is rather complex, and extends beyond alphanumeric sorting. The current implementation is the end result of _lots_ of community discussion, so we're not going to make any changes that would upset the consensus.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4041