Numbering/Ordening on interfaces on switch is off (when using Virtual chassis.) #7546

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

Originally created by @deku-m on GitHub (Jan 23, 2023).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.3.9

Python version

3.8

Steps to Reproduce

  1. Create several devices (switches) with same name but number them
    • ITA-LN1-switch01-1 / ITA-LN1-switch01-2 / ITA-LN1-switch01-3
  2. Create Virtual Chassis
    • Name it ITA-LN1-switch01
  3. Set member to
    • ITA-LN1-switch01-1
  4. Now check all interfaces under a member
    • ITA-LN1-switch01-1

You notice that number is off icm with device name would hope it also follows that number.
Not sure if this is a bug and fixed in 3.4.x but reading the release notes i couldnt find it.
See added screenshots.

Expected Behavior

The numbering on the device from switch 1/2/3 member also to be starting at Gi1/0/1 and so on.

Observed Behavior

The numbering start randomly:
Filtering on interfaces:
afbeelding
Filtering on devicename:
afbeelding

Originally created by @deku-m on GitHub (Jan 23, 2023). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.3.9 ### Python version 3.8 ### Steps to Reproduce 1. Create several devices (switches) with same name but number them - ITA-LN1-switch01-1 / ITA-LN1-switch01-2 / ITA-LN1-switch01-3 2. Create Virtual Chassis - Name it ITA-LN1-switch01 3. Set member to - ITA-LN1-switch01-1 4. Now check all interfaces under a member - ITA-LN1-switch01-1 **You notice that number is off icm with device name would hope it also follows that number. Not sure if this is a bug and fixed in 3.4.x but reading the release notes i couldnt find it. See added screenshots.** ### Expected Behavior The numbering on the device from switch 1/2/3 member also to be starting at Gi1/0/1 and so on. ### Observed Behavior The numbering start randomly: **Filtering on interfaces:** ![afbeelding](https://user-images.githubusercontent.com/37069737/213978280-475c22df-00cc-4f6a-94ba-f092b2c69482.png) **Filtering on devicename:** ![afbeelding](https://user-images.githubusercontent.com/37069737/213978297-0ea4171f-502d-4216-bde2-f1a24a12c93d.png)
adam added the type: bugstatus: accepted labels 2025-12-29 20:24:59 +01:00
adam closed this issue 2025-12-29 20:25:00 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jan 24, 2023):

Looks like we still had an ordering meta attribute set on the device interfaces table, which was ignoring the device with respect to ordering. Removing this restores the expected ordering behavior.

Thanks for submitting the bug!

@jeremystretch commented on GitHub (Jan 24, 2023): Looks like we still had an `ordering` meta attribute set on the device interfaces table, which was ignoring the device with respect to ordering. Removing this restores the expected ordering behavior. Thanks for submitting the bug!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7546