Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interface ordering for interfaces that have no prefix #1650

Closed
labrnth opened this issue Oct 26, 2017 · 2 comments
Closed

Interface ordering for interfaces that have no prefix #1650

labrnth opened this issue Oct 26, 2017 · 2 comments
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@labrnth
Copy link

labrnth commented Oct 26, 2017

Issue type

[ ] Feature request
[x] Bug report
[ ] Documentation

Environment

  • Python version: 3.5.1
  • NetBox version: 2.2.2

Description

We use Brocade ICX switches, based on FastIron, and the interface names do no have a prefix. Unless you show details of a specific interface using show interfaces ethernet 1/1/1 the interfaces will always be listed based on STACKID/SLOT/PORT and in order (e.g. 1/1/1, 1/1/2, etc..).

In Netbox when I add all these interfaces to a device or device type, I see interfaces which are listed like so:

1/1/1
1/1/10
1/1/11
1/1/12
1/1/13
1/1/14
1/1/15
1/1/16
1/1/17
1/1/18
1/1/19
1/1/2
1/1/20
1/1/21
1/1/22

and so on ... (please see screenshot in the link below)

https://www.dropbox.com/s/weq5bxnlyrrv5em/Screenshot%202017-10-26%2007.20.43.png?dl=0

I would prefer to have them show up in Netbox ordered in sequence (e.g. 1/1/1, 1/1/2 .....1/2/1, 1/2/2, etc...), without having to prefix them with (e.g. "ge-"). In FastIron you don't show inteface using a prefix so it would great if I could list them in Netbox the same way.

Thanks for your help.

@oysteingy
Copy link

oysteingy commented Oct 27, 2017

Hi,

Same interface naming standard on Nokia platforms.

I don't have access to Netbox < 2.2 currently, but I do believe that the ordering for these kind of interface names changed with the works done in #1523. Previously, the naming looked more "reasonable"

@jeremystretch jeremystretch added the type: bug A confirmed report of unexpected behavior in the application label Nov 2, 2017
@MeisiCB
Copy link

MeisiCB commented Mar 7, 2018

Is it normal that the Interface Ordering "Name (alphabetically)" is not ordering by Name in the Device View? It's actual ordering by the Chars from the Interfacename until the first Number.

querysets.py
TYPE_RE = r"SUBSTRING({} FROM '^([^0-9]+)')"

The name "ge-1 b" results in _type "ge-"

@lock lock bot locked as resolved and limited conversation to collaborators Jan 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

4 participants