[PR #12708] [CLOSED] Fix #12690 - Add Cluster/ClusterGroup Filtering to VLANGroup QuerySet #14032

Closed
opened 2025-12-29 23:22:09 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/12708
Author: @stuntguy3000
Created: 5/25/2023
Status: Closed

Base: developHead: 12690-vlan-queryset-missing-cluster-scopes


📝 Commits (1)

  • 2038eb3 Fix #12690 - Add Cluster/ClusterGroup Filtering to VLANGroup QuerySet

📊 Changes

1 file changed (+10 additions, -0 deletions)

View changed files

📝 netbox/ipam/querysets.py (+10 -0)

📄 Description

Fixes: #12690

This changes adds additional filtering to the VLANGroup QuerySet to account for Cluster and Cluster Group scopes - enabling them to be returned by the /api/ipam/vlans/?available_on_device endpoint.

This has been validated against various test cases.


🔄 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/12708 **Author:** [@stuntguy3000](https://github.com/stuntguy3000) **Created:** 5/25/2023 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `12690-vlan-queryset-missing-cluster-scopes` --- ### 📝 Commits (1) - [`2038eb3`](https://github.com/netbox-community/netbox/commit/2038eb3ff633dc70b4220fa1874334177482e8f9) Fix #12690 - Add Cluster/ClusterGroup Filtering to VLANGroup QuerySet ### 📊 Changes **1 file changed** (+10 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/ipam/querysets.py` (+10 -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: #12690 <!-- Please include a summary of the proposed changes below. --> This changes adds additional filtering to the VLANGroup QuerySet to account for Cluster and Cluster Group scopes - enabling them to be returned by the `/api/ipam/vlans/?available_on_device` endpoint. This has been validated against various test cases. --- <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-29 23:22:09 +01:00
adam closed this issue 2025-12-29 23:22:09 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14032