Use VirtualChassis name as fallback for devices #10181

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

Originally created by @alehaa on GitHub (Sep 4, 2024).

Originally assigned to: @alehaa on GitHub.

NetBox version

v4.0.10

Feature type

Change to existing functionality

Proposed functionality

If a device has no explicit name, but is a member of a VirtualChassis, this name (and position) should be used instead for all functionalities of NetBox. This especially affects the search index and the form fields to select a Device.

Use case

Some virtual chassis concepts (e.g. Cisco VSS) don't allow individual host names for each hardware chassis. In this case, NetBox allows the user to set the name for the virtual chassis and leave the device name blank. NetBox will then already use a combination of the virtual chassis name and the member position as the display name in the device detail view or the rack elevation view. However, these names can't be searched for in the global search, nor in the device list view, nor when selecting a device, e.g. to connect an interface. Extending this functionality would make NetBox a little easier to use, while also increasing consistency.

Database changes

None

External dependencies

None

Originally created by @alehaa on GitHub (Sep 4, 2024). Originally assigned to: @alehaa on GitHub. ### NetBox version v4.0.10 ### Feature type Change to existing functionality ### Proposed functionality If a device has no explicit name, but is a member of a `VirtualChassis`, this name (and position) should be used instead for all functionalities of NetBox. This especially affects the search index and the form fields to select a `Device`. ### Use case Some virtual chassis concepts (e.g. Cisco VSS) don't allow individual host names for each hardware chassis. In this case, NetBox allows the user to set the name for the virtual chassis and leave the device name blank. NetBox will then already use a combination of the virtual chassis name and the member position as the display name in the device detail view or the rack elevation view. However, these names can't be searched for in the global search, nor in the device list view, nor when selecting a device, e.g. to connect an interface. Extending this functionality would make NetBox a little easier to use, while also increasing consistency. ### Database changes None ### External dependencies None
adam added the status: acceptedtype: featurenetboxcomplexity: low labels 2025-12-29 21:27:53 +01:00
adam closed this issue 2025-12-29 21:27:53 +01:00
Author
Owner

@alehaa commented on GitHub (Feb 8, 2025):

@jeremystretch I give it a try and volunteer.

@alehaa commented on GitHub (Feb 8, 2025): @jeremystretch I give it a try and volunteer.
Author
Owner

@jeremystretch commented on GitHub (Feb 10, 2025):

@alehaa thanks!

@jeremystretch commented on GitHub (Feb 10, 2025): @alehaa thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10181