[PR #18932] [MERGED] Fixes: #18881 Site Groups are missing VLAN and VM related objects #15477

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/18932
Author: @renatoalmeidaoliveira
Created: 3/18/2025
Status: Merged
Merged: 4/21/2025
Merged by: @arthanson

Base: mainHead: 18881-Site-Groups-are-missing-VLAN-and-VM-related-objects


📝 Commits (10+)

  • 00db7f7 Add VLAN Related Object
  • eaca8aa Add VLANGroup Related Object
  • 9cd36f2 add VirtualMachine
  • 39b5c5f add Device
  • 2bfaab1 Add ASN to Related Objects
  • 5bfe132 Merge remote-tracking branch 'origin/main' into 18881-Site-Groups-are-missing-VLAN-and-VM-related-objects
  • 588cf94 Add VLANGroup at RegionView get_related_models
  • 9d3e72f Add VLANGroup to RackView get_related_models
  • eed4117 Add VLANGroup to ClusterGroupView get_related_models
  • aad0aca Fix CircuitTermination relations

📊 Changes

3 files changed (+71 additions, -6 deletions)

View changed files

📝 netbox/circuits/views.py (+5 -0)
📝 netbox/dcim/views.py (+55 -5)
📝 netbox/virtualization/views.py (+11 -1)

📄 Description

Setup Related Models tab for scoped models:

  • sitegroup
  • region
  • site
  • location
  • rack
  • clustergroup
  • cluster

Add models to SiteGroupView's get_extra_context:

  • VLANs
  • VLAN Groups
  • Virtual Machines
  • ASNs
  • Clusters
  • Devices

Add models to RegionView's get_extra_context:

  • VLANGroup

Add models to RackView's get_extra_context:

  • VLANGroup

Add models to ClusterGroupView's get_extra_context:

  • VLANGroup

  • Add Circuit Terminations Relations


🔄 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/18932 **Author:** [@renatoalmeidaoliveira](https://github.com/renatoalmeidaoliveira) **Created:** 3/18/2025 **Status:** ✅ Merged **Merged:** 4/21/2025 **Merged by:** [@arthanson](https://github.com/arthanson) **Base:** `main` ← **Head:** `18881-Site-Groups-are-missing-VLAN-and-VM-related-objects` --- ### 📝 Commits (10+) - [`00db7f7`](https://github.com/netbox-community/netbox/commit/00db7f7d1e5b7eb32cb22d27b023b41a6c1f05f4) Add VLAN Related Object - [`eaca8aa`](https://github.com/netbox-community/netbox/commit/eaca8aa93e4b2f7c009f61723ad6cdc0371435c7) Add VLANGroup Related Object - [`9cd36f2`](https://github.com/netbox-community/netbox/commit/9cd36f2d4096dd9c139e753fb120f50c2c854d43) add VirtualMachine - [`39b5c5f`](https://github.com/netbox-community/netbox/commit/39b5c5fded5cac63851a47575a64166d69028210) add Device - [`2bfaab1`](https://github.com/netbox-community/netbox/commit/2bfaab1528da7178ada1686a7b636acc27389660) Add ASN to Related Objects - [`5bfe132`](https://github.com/netbox-community/netbox/commit/5bfe13275b93faaf2ce803f47968ef85bf1a19e8) Merge remote-tracking branch 'origin/main' into 18881-Site-Groups-are-missing-VLAN-and-VM-related-objects - [`588cf94`](https://github.com/netbox-community/netbox/commit/588cf9459ee72acd8559adfc2386086591e717ca) Add VLANGroup at RegionView get_related_models - [`9d3e72f`](https://github.com/netbox-community/netbox/commit/9d3e72fd0fa31a001e1da5fed852d86c40d8a0c9) Add VLANGroup to RackView get_related_models - [`eed4117`](https://github.com/netbox-community/netbox/commit/eed4117c30a5f2b714216e2280b2827f3e995f20) Add VLANGroup to ClusterGroupView get_related_models - [`aad0aca`](https://github.com/netbox-community/netbox/commit/aad0acac85dab83cd91ab87acbcf343db16542a0) Fix CircuitTermination relations ### 📊 Changes **3 files changed** (+71 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `netbox/circuits/views.py` (+5 -0) 📝 `netbox/dcim/views.py` (+55 -5) 📝 `netbox/virtualization/views.py` (+11 -1) </details> ### 📄 Description ### Fixes: #18881 Site Groups are missing VLAN and VM related objects Setup Related Models tab for scoped models: - [x] sitegroup - [x] region - [x] site - [x] location - [x] rack - [x] clustergroup - [x] cluster Add models to `SiteGroupView`'s `get_extra_context`: - [x] VLANs - [x] VLAN Groups - [x] Virtual Machines - [x] ASNs - [x] Clusters - [x] Devices Add models to `RegionView`'s `get_extra_context`: - [x] VLANGroup Add models to `RackView`'s `get_extra_context`: - [x] VLANGroup Add models to `ClusterGroupView`'s `get_extra_context`: - [x] VLANGroup - [x] Add `Circuit Terminations` Relations --- <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:22:10 +01:00
adam closed this issue 2025-12-30 00:22:10 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15477