Show cable colors on device page #2832

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

Originally created by @Bitsky on GitHub (Aug 27, 2019).

Environment

  • Python version: 2.7.5
  • NetBox version: 2.6.1

Proposed Functionality

Show the colors of cables on the interfaces list of a device. Right now it's just a blue dash after the cable number/name. To make the color stand out better, maybe change eg "#123 -" into buttons (like "[#123]") similar to those [Primary]/[Active] ones in the Status/Role column. Besides, because most cables are gray by default, undefined colors should fallback to gray instead of blue; or have the button transparent with only the "#123" text.

Use Case

When you work in the rack, you want a quick overview of the device you're working on. Right now you have to click on every cable to see its color.

Database Changes

None

External Dependencies

None

Originally created by @Bitsky on GitHub (Aug 27, 2019). ### Environment * Python version: 2.7.5 * NetBox version: 2.6.1 ### Proposed Functionality Show the colors of cables on the interfaces list of a device. Right now it's just a blue dash after the cable number/name. To make the color stand out better, maybe change eg "#123 -" into buttons (like "[#123]") similar to those [Primary]/[Active] ones in the Status/Role column. Besides, because most cables are gray by default, undefined colors should fallback to gray instead of blue; or have the button transparent with only the "#123" text. ### Use Case When you work in the rack, you want a quick overview of the device you're working on. Right now you have to click on every cable to see its color. ### Database Changes None ### External Dependencies None
adam added the status: acceptedtype: feature labels 2025-12-29 18:22:35 +01:00
adam closed this issue 2025-12-29 18:22:35 +01:00
Author
Owner

@jeremystretch commented on GitHub (Sep 3, 2019):

because most cables are gray by default, undefined colors should fallback to gray instead of blue

One cannot assume what the most popular cable color is, and there is no default cable color in NetBox.

@jeremystretch commented on GitHub (Sep 3, 2019): > because most cables are gray by default, undefined colors should fallback to gray instead of blue One cannot assume what the most popular cable color is, and there is no default cable color in NetBox.
Author
Owner

@Bitsky commented on GitHub (Sep 7, 2019):

Well, that's why I added:

or have the button transparent with only the "#123" text

If you consider the current dash to somehow relate to cables and their colors, blue would be less common than gray. But that's beside the point. It should be an easy change which increases the general overview of a device.

@Bitsky commented on GitHub (Sep 7, 2019): Well, that's why I added: >or have the button transparent with only the "#123" text If you consider the current dash to somehow relate to cables and their colors, blue would be less common than gray. But that's beside the point. It should be an easy change which increases the general overview of a device.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2832