Skip to content

Add Virtual Chassis name to pane on Device View #19200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cmcknz77 opened this issue Apr 15, 2025 · 1 comment · Fixed by #19369
Closed

Add Virtual Chassis name to pane on Device View #19200

cmcknz77 opened this issue Apr 15, 2025 · 1 comment · Fixed by #19369
Assignees
Labels
complexity: low Requires minimal effort to implement status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application
Milestone

Comments

@cmcknz77
Copy link

NetBox version

v4.2.6

Feature type

Change to existing functionality

Proposed functionality

I propose an amendment to the device view template

Image

to add {{ object.virtual_chassis.name }} to the prefetch list and add the following to the h2 Header for the Virtual Chassis section:

Image

Here's what it might look like (although I've had to redact some info):

Image

{% if vc_members %}
                <div class="card">
                    <h2 class="card-header">
                      {% trans "Virtual Chassis" %}: {{ object.virtual_chassis.name }}
                      <div class="card-actions">
                        <a href="{{ object.virtual_chassis.get_absolute_url }}" class="btn btn-ghost-primary btn-sm">
                          <span class="mdi mdi-arrow-right-bold" aria-hidden="true"></span> {% trans "View Virtual Chassis" %}
                        </a>
                      </div>
                    </h2>

Use case

I work with a number of Virtual Chassis in my environment and in a lot of cases the member Device Name does not have a direct relationship with the name of the Virtual Chassis that device is a member of to help make the device easily identifiable.

It would be really handy if when a device is a member of a Virtual Chassis, the name of that Virtual Chassis is visible on the device page.

For example in your demo environment the Camden site is connected with 2 SDWAN Redundant devices operating as a single SDWAN Edge with name "NACamdenEdge-VC".

Image
But when you click on the devices themselves there's no way to tell which Edge device it's a member of:

Image

Database changes

None required - this is a purely cosmetic change.

External dependencies

No response

@cmcknz77 cmcknz77 added status: needs triage This issue is awaiting triage by a maintainer type: feature Introduction of new functionality to the application labels Apr 15, 2025
@DanSheps DanSheps added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation complexity: low Requires minimal effort to implement and removed status: needs triage This issue is awaiting triage by a maintainer labels Apr 16, 2025
@jeremystretch
Copy link
Member

Let's use parentheses instead of a colon to be more consistent with other areas of the UI.

@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation and removed status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation labels Apr 28, 2025
@jeremystretch jeremystretch added this to the v4.3.2 milestone May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity: low Requires minimal effort to implement status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants