[PR #18075] [CLOSED] Show virtual ips in interfaces table #15270

Closed
opened 2025-12-30 00:20:59 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/18075
Author: @mskalecki
Created: 11/22/2024
Status: Closed

Base: developHead: show-virtual-ips-in-interfaces-table


📝 Commits (2)

  • 4d3515f add virtual ips column to interfaces table
  • ba48148 rebalance line lengths for fields list

📊 Changes

2 files changed (+21 additions, -3 deletions)

View changed files

📝 netbox/dcim/tables/devices.py (+9 -3)
📝 netbox/dcim/tables/template_code.py (+12 -0)

📄 Description

Fixes: #18070

Adds a column named Virtual IPs to the interfaces table.

The new column behaves almost exactly like the existing column for directly assigned IP addresses, except that it doesn't limit the number of virtual IPs displayed directly on the table. Since the virtual IPs could come from multiple FHRP Groups, I don't see an easy way to link to a filtered table of IPs that are virtual IPs of the interface.

If that is a problem, I can limit the number that are displayed and add an elipsis (or something to indicate that the list is cropped), or maybe someone with real django experience can figure it out.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/18075 **Author:** [@mskalecki](https://github.com/mskalecki) **Created:** 11/22/2024 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `show-virtual-ips-in-interfaces-table` --- ### 📝 Commits (2) - [`4d3515f`](https://github.com/netbox-community/netbox/commit/4d3515f08e838b0531f41e332f096d48caf972e2) add `virtual ips` column to interfaces table - [`ba48148`](https://github.com/netbox-community/netbox/commit/ba4814858d1c3be070d8980e8f207f524ea8e3c5) rebalance line lengths for fields list ### 📊 Changes **2 files changed** (+21 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/tables/devices.py` (+9 -3) 📝 `netbox/dcim/tables/template_code.py` (+12 -0) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #18070 <!-- Please include a summary of the proposed changes below. --> Adds a column named `Virtual IPs` to the interfaces table. The new column behaves almost exactly like the existing column for directly assigned IP addresses, except that it doesn't limit the number of virtual IPs displayed directly on the table. Since the virtual IPs could come from multiple FHRP Groups, I don't see an easy way to link to a filtered table of IPs that are virtual IPs of the interface. If that is a problem, I can limit the number that are displayed and add an elipsis (or something to indicate that the list is cropped), or maybe someone with real django experience can figure it out. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 00:20:59 +01:00
adam closed this issue 2025-12-30 00:20:59 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15270