[PR #18724] [MERGED] Fixes #18605: only VLANs at selected Site are shown in VLAN select #15426

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/18724
Author: @jnovinger
Created: 2/24/2025
Status: Merged
Merged: 2/25/2025
Merged by: @bctiemann

Base: mainHead: 18605-prefix-vlan-assignment-display


📝 Commits (1)

  • 64270d6 Fixes #18605: only VLANs at selected Site are shown in VLAN select

📊 Changes

2 files changed (+52 additions, -1 deletions)

View changed files

📝 netbox/ipam/forms/model_forms.py (+9 -1)
netbox/ipam/tests/test_forms.py (+43 -0)

📄 Description

Fixes: #18605

Changes:

  • Properly sets PrefixForm.vlan field to filter by value in name=scope select
  • Only filters PrefixForm.vlan select choices if selected scope_type is Site

🔄 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/18724 **Author:** [@jnovinger](https://github.com/jnovinger) **Created:** 2/24/2025 **Status:** ✅ Merged **Merged:** 2/25/2025 **Merged by:** [@bctiemann](https://github.com/bctiemann) **Base:** `main` ← **Head:** `18605-prefix-vlan-assignment-display` --- ### 📝 Commits (1) - [`64270d6`](https://github.com/netbox-community/netbox/commit/64270d6a4e99770dab38870a866e14c72518b27b) Fixes #18605: only VLANs at selected Site are shown in VLAN select ### 📊 Changes **2 files changed** (+52 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/ipam/forms/model_forms.py` (+9 -1) ➕ `netbox/ipam/tests/test_forms.py` (+43 -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: #18605 Changes: - Properly sets `PrefixForm.vlan` field to filter by value in `name=scope` select - Only filters `PrefixForm.vlan` select choices if selected `scope_type` is `Site` <!-- Please include a summary of the proposed changes below. --> --- <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:21:51 +01:00
adam closed this issue 2025-12-30 00:21:52 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15426