Interface list cleanup (typos, missing choice, ordering) #11633

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

Originally created by @sleepinggenius2 on GitHub (Sep 18, 2025).

Originally assigned to: @rfdrake on GitHub.

NetBox Edition

NetBox Community

NetBox Version

v4.4.1

Python Version

3.12

Steps to Reproduce

  1. Navigate to Devices > Device Components > Interfaces > Add
  2. Click on the "Type" dropdown

Expected Behavior

#20321 introduced new interface types, but some have typos in their labels, are missing from the list, or are ordered incorrectly. Additionally, a number of other existing types are ordered incorrectly from a speed and/or lexicographical standpoint.

  • TYPE_10GE_BR_D has a label of "10GBASE-BR-D (10GE BiDi Down)"
  • TYPE_10GE_BR_U has a label of "10GBASE-BR-U (10GE BiDi Up)"
  • TYPE_100GE_CWDM4 is in the list with a label of "100GBASE-CWDM4 (100GE)"

Ordering:

  • "1000BASE-CWDM (1GE)" before "1000BASE-CX (1GE DAC)"
  • "1000BASE-SX (1GE)" before "1000BASE-T (1GE)"
  • "200GBASE-SR2 (200GE)" and "200GBASE-SR4 (200GE)" before "200GBASE-VR2 (200GE)"
  • "XENPAK (10GE)" before "XFP (10GE)"
  • "SFP56 (50GE)" before "CFP (100GE)"
  • "CFP2 (200GE)" before "QSFP56 (200GE)"
  • "CFP2 (400GE)" before "CFP8 (400GE)"
  • "SFP-DD (100GE)" before "QSFP56 (200GE)"
  • "OSFP (400GE)" and "OSFP-RHS (400GE)" before "QSFP112 (400GE)"
  • "CDFP (400GE)" before "CFP2 (400GE)"
  • "CPF8 (400GE)" labeled "CFP8 (400GE)" and before "OSFP (400GE)"
  • "OSFP (800GE)" before "QSFP-DD (800GE)"

Observed Behavior

  • TYPE_10GE_BR_D has a label of "10GBASE-DR-D (10GE BiDi Down)"
  • TYPE_10GE_BR_U has a label of "10GBASE-DR-U (10GE BiDi Up)"
  • TYPE_100GE_CWDM4 is missing from the list

Ordering:

  • "1000BASE-CWDM (1GE)" before "1000BASE-DWDM (1GE)"
  • "1000BASE-SX (1GE)" before "1000BASE-LSX (1GE)"
  • "200GBASE-SR2 (200GE)" and "200GBASE-SR4 (200GE)" before "200GBASE-DR4 (200GE)"
  • "XENPAK (10GE)" before "X2 (10GE)"
  • "SFP56 (50GE)" before "QSFP+ (40GE)"
  • "CFP2 (200GE)" before "CFP2 (400GE)"
  • "CFP2 (400GE)" before "CFP4 (100GE)"
  • "SFP-DD (100GE)" before "QSFP28 (100GE)"
  • "OSFP (400GE)" and "OSFP-RHS (400GE)" before "CDFP (400GE)"
  • "CDFP (400GE)" and "CPF8 (400GE)" before "QSFP-DD (800GE)"
  • "OSFP (800GE)" after "QSFP-DD (800GE)"
Originally created by @sleepinggenius2 on GitHub (Sep 18, 2025). Originally assigned to: @rfdrake on GitHub. ### NetBox Edition NetBox Community ### NetBox Version v4.4.1 ### Python Version 3.12 ### Steps to Reproduce 1. Navigate to Devices > Device Components > Interfaces > Add 2. Click on the "Type" dropdown ### Expected Behavior #20321 introduced new interface types, but some have typos in their labels, are missing from the list, or are ordered incorrectly. Additionally, a number of other existing types are ordered incorrectly from a speed and/or lexicographical standpoint. * `TYPE_10GE_BR_D` has a label of "10GBASE-BR-D (10GE BiDi Down)" * `TYPE_10GE_BR_U` has a label of "10GBASE-BR-U (10GE BiDi Up)" * `TYPE_100GE_CWDM4` is in the list with a label of "100GBASE-CWDM4 (100GE)" Ordering: * "1000BASE-CWDM (1GE)" before "1000BASE-CX (1GE DAC)" * "1000BASE-SX (1GE)" before "1000BASE-T (1GE)" * "200GBASE-SR2 (200GE)" and "200GBASE-SR4 (200GE)" before "200GBASE-VR2 (200GE)" * "XENPAK (10GE)" before "XFP (10GE)" * "SFP56 (50GE)" before "CFP (100GE)" * "CFP2 (200GE)" before "QSFP56 (200GE)" * "CFP2 (400GE)" before "CFP8 (400GE)" * "SFP-DD (100GE)" before "QSFP56 (200GE)" * "OSFP (400GE)" and "OSFP-RHS (400GE)" before "QSFP112 (400GE)" * "CDFP (400GE)" before "CFP2 (400GE)" * "CPF8 (400GE)" labeled "CFP8 (400GE)" and before "OSFP (400GE)" * "OSFP (800GE)" before "QSFP-DD (800GE)" ### Observed Behavior * `TYPE_10GE_BR_D` has a label of "10GBASE-DR-D (10GE BiDi Down)" * `TYPE_10GE_BR_U` has a label of "10GBASE-DR-U (10GE BiDi Up)" * `TYPE_100GE_CWDM4` is missing from the list Ordering: * "1000BASE-CWDM (1GE)" before "1000BASE-DWDM (1GE)" * "1000BASE-SX (1GE)" before "1000BASE-LSX (1GE)" * "200GBASE-SR2 (200GE)" and "200GBASE-SR4 (200GE)" before "200GBASE-DR4 (200GE)" * "XENPAK (10GE)" before "X2 (10GE)" * "SFP56 (50GE)" before "QSFP+ (40GE)" * "CFP2 (200GE)" before "CFP2 (400GE)" * "CFP2 (400GE)" before "CFP4 (100GE)" * "SFP-DD (100GE)" before "QSFP28 (100GE)" * "OSFP (400GE)" and "OSFP-RHS (400GE)" before "CDFP (400GE)" * "CDFP (400GE)" and "CPF8 (400GE)" before "QSFP-DD (800GE)" * "OSFP (800GE)" after "QSFP-DD (800GE)"
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:47:52 +01:00
adam closed this issue 2025-12-29 21:47:52 +01:00
Author
Owner

@rfdrake commented on GitHub (Sep 23, 2025):

I've verified the typos and missing TYPE_100GE_CWDM4 in the latest dev branch, as well as the ordering being incorrect. I can submit a pull request if you like.

@rfdrake commented on GitHub (Sep 23, 2025): I've verified the typos and missing TYPE_100GE_CWDM4 in the latest dev branch, as well as the ordering being incorrect. I can submit a pull request if you like.
Author
Owner

@jnovinger commented on GitHub (Sep 29, 2025):

Thanks, @rfdrake .

@jnovinger commented on GitHub (Sep 29, 2025): Thanks, @rfdrake .
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11633