Device display name not showing asset number when name is blank #5958

Closed
opened 2025-12-29 19:34:54 +01:00 by adam · 5 comments
Owner

Originally created by @duckw on GitHub (Jan 17, 2022).

Originally assigned to: @DanSheps on GitHub.

NetBox version

v3.1.5

Python version

3.8

Steps to Reproduce

  1. Create a device with no name but with an asset tag.

Expected Behavior

Display name for the device should be "manufacturer device_type (asset tag)" since asset tag is not null.

Observed Behavior

Display name for the device shows as "manufacturer device_type (id)".

Originally created by @duckw on GitHub (Jan 17, 2022). Originally assigned to: @DanSheps on GitHub. ### NetBox version v3.1.5 ### Python version 3.8 ### Steps to Reproduce 1. Create a device with no name but with an asset tag. ### Expected Behavior Display name for the device should be "manufacturer device_type (asset tag)" since asset tag is not null. ### Observed Behavior Display name for the device shows as "manufacturer device_type (id)".
adam added the status: acceptedtype: feature labels 2025-12-29 19:34:54 +01:00
adam closed this issue 2025-12-29 19:34:54 +01:00
Author
Owner

@DanSheps commented on GitHub (Jan 18, 2022):

There are couple possible scenarios here:

  1. Display the Device Type & the Asset Tag
  2. Display the Asset Tag
  3. Display only the Device Type

How do we want to tackle this?

@DanSheps commented on GitHub (Jan 18, 2022): There are couple possible scenarios here: 1. Display the Device Type & the Asset Tag 2. Display the Asset Tag 3. Display only the Device Type How do we want to tackle this?
Author
Owner

@bluikko commented on GitHub (Jan 19, 2022):

How do we want to tackle this?

My vote would go to # 1 ("Display the Device Type & the Asset Tag") with perhaps fallback to Serial Number if Asset Tag is also blank.

@bluikko commented on GitHub (Jan 19, 2022): > How do we want to tackle this? My vote would go to # 1 ("Display the Device Type & the Asset Tag") with perhaps fallback to Serial Number if Asset Tag is also blank.
Author
Owner

@github-actions[bot] commented on GitHub (Mar 20, 2022):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Mar 20, 2022): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@DanSheps commented on GitHub (Apr 7, 2022):

Going to knock this out soon. Will do Device Type & Asset Tag

@DanSheps commented on GitHub (Apr 7, 2022): Going to knock this out soon. Will do Device Type & Asset Tag
Author
Owner

@jeremystretch commented on GitHub (May 12, 2022):

@DanSheps are you still planning to work on this?

@jeremystretch commented on GitHub (May 12, 2022): @DanSheps are you still planning to work on this?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5958