[PR #20158] [MERGED] Closes #18147: Include device & VM interfaces in VRF related objects #15836

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20158
Author: @jeremystretch
Created: 8/22/2025
Status: Merged
Merged: 8/23/2025
Merged by: @arthanson

Base: mainHead: 18147-vrf-interface-counts


📝 Commits (2)

  • 8250681 Closes #18147: Include device & VM interfaces in VRF related objects
  • 7ba803a Fix filter_param

📊 Changes

3 files changed (+52 additions, -18 deletions)

View changed files

📝 netbox/ipam/views.py (+19 -1)
📝 netbox/templates/inc/panels/related_objects.html (+12 -12)
📝 netbox/utilities/views.py (+21 -5)

📄 Description

Fixes: #18147

  • Introduce the RelatedObjectCount dataclass to accept an optional label
  • Update the related_objects.html inclusion template to use RelatedObjectCount
  • Extend VRFView.get_extra_context() to include device & VM interface counts
  • Tweak the signature of get_related_models() to avoid passing mutable values for omit and extra

🔄 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/20158 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 8/22/2025 **Status:** ✅ Merged **Merged:** 8/23/2025 **Merged by:** [@arthanson](https://github.com/arthanson) **Base:** `main` ← **Head:** `18147-vrf-interface-counts` --- ### 📝 Commits (2) - [`8250681`](https://github.com/netbox-community/netbox/commit/82506812651e5e1cae7ed2c3029d8bb26368a5b6) Closes #18147: Include device & VM interfaces in VRF related objects - [`7ba803a`](https://github.com/netbox-community/netbox/commit/7ba803a78f5d41d68f8955c32751902d98d10ccb) Fix filter_param ### 📊 Changes **3 files changed** (+52 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `netbox/ipam/views.py` (+19 -1) 📝 `netbox/templates/inc/panels/related_objects.html` (+12 -12) 📝 `netbox/utilities/views.py` (+21 -5) </details> ### 📄 Description ### Fixes: #18147 - Introduce the RelatedObjectCount dataclass to accept an optional label - Update the `related_objects.html` inclusion template to use RelatedObjectCount - Extend `VRFView.get_extra_context()` to include device & VM interface counts - Tweak the signature of `get_related_models()` to avoid passing mutable values for `omit` and `extra` --- <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:24:20 +01:00
adam closed this issue 2025-12-30 00:24:20 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15836