#14205·netbox

Customize RackView labels

Author: PieterL75Created Nov 7, 2023Updated Sep 17, 2026
Labelstype: featurepending closurecomplexity: highnetboxstatus: deferred

NetBox version

v3.6.4

Feature type

Change to existing functionality

Proposed functionality

The rack elevation views currently only show either the 'label' and/or the images of a device. I would to make that 'label' and 'postcard' customizable, using jinja2 templates. This way the 'label' and 'postcard' can show information relevant to the engineer working on the racks

The custom templates can be stored in a new 'Customization' item 'Rack Labels' a rack-label item consists of the template for the device label and a template for the postcard

the rack view gets a new dropdown where the Custom Labels can be choosen: image

Optional : Is there a mechanism that can store the last used label in a users' preferences ? So that he gets the same racklabels the next time he opens the elevation

This FR is an update of https://github.com/netbox-community/netbox/issues/12518

Use case

Our DC Eng needs to work with 'asset_tags' in stead of hostnames to identify devices. Now he has to either hover over a device, or click on it to see the asset tags. When doing their regular rack inventory, this is very time consuming. With the alternate view, they can set the asset_tag as label. When doing a power-audit, the label could be replaced with the 'allocated and maximum draw'

The postcard currently contains some info, but I can imaging that some people would like to see other info in there.

Database changes

New table 'Rack Labels' Fields:

  • Label : Drowdown of all field related to a device OR a jinja2 firld that creates the label (one line)
  • Postcard : jinja2 field that allows a custom postcard when hovering over the device

External dependencies

No response