Add "site" column to power feed list #8602

Closed
opened 2025-12-29 20:38:44 +01:00 by adam · 1 comment
Owner

Originally created by @pv2b on GitHub (Sep 12, 2023).

Originally assigned to: @abhi1693 on GitHub.

NetBox version

v3.6.1

Feature type

Change to existing functionality

Proposed functionality

I propose adding "Site" as a selectable column for the power feed view. The power feed model doesn't directly have a "Site" field, so the "Site" column would be populated from the associated Rack.

Use case

When looking at a list of power feeds, it's helpful to, at a glance, know what site the power feed belongs to. This is especially useful if you have duplicate rack names across sites.

Database changes

None.

External dependencies

None.

Originally created by @pv2b on GitHub (Sep 12, 2023). Originally assigned to: @abhi1693 on GitHub. ### NetBox version v3.6.1 ### Feature type Change to existing functionality ### Proposed functionality I propose adding "Site" as a selectable column for the power feed view. The power feed model doesn't directly have a "Site" field, so the "Site" column would be populated from the associated Rack. ### Use case When looking at a list of power feeds, it's helpful to, at a glance, know what site the power feed belongs to. This is especially useful if you have duplicate rack names across sites. ### Database changes None. ### External dependencies None.
adam added the status: acceptedtype: feature labels 2025-12-29 20:38:44 +01:00
adam closed this issue 2025-12-29 20:38:44 +01:00
Author
Owner

@pv2b commented on GitHub (Sep 12, 2023):

I just realized I can acheive this with a Custom Link, so that's a workaround for now.

If anyone else needs this, just import the following Custom Link using this YAML in the bulk importer:

---
name: Site
content_types: dcim.powerfeed
weight: 1000
button_class: ghost-dark
link_text: '{{ object.rack.site.name }}'
link_url: '{{ object.rack.site.url }}'
enabled: true

Once the Custom Link is created, it can then be used as a field in the table view (which is essentialy what the FR here is asking for.)

The downside to this is that you'll get an extra link on the power feed view to the site, but... I guess that might be considered useful?

Anyway, I still think it should be in Netbox from the start but given it's easy enough to customize Netbox and get the same result this probably doesn't need to be prioritized.

@pv2b commented on GitHub (Sep 12, 2023): I just realized I can acheive this with a Custom Link, so that's a workaround for now. If anyone else needs this, just import the following Custom Link using this YAML in the bulk importer: ```yaml --- name: Site content_types: dcim.powerfeed weight: 1000 button_class: ghost-dark link_text: '{{ object.rack.site.name }}' link_url: '{{ object.rack.site.url }}' enabled: true ``` Once the Custom Link is created, it can then be used as a field in the table view (which is essentialy what the FR here is asking for.) The downside to this is that you'll get an extra link on the power feed view to the site, but... I guess that might be considered useful? Anyway, I still think it should be in Netbox from the start but given it's easy enough to customize Netbox and get the same result this probably doesn't need to be prioritized.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8602