[PR #19199] [MERGED] Fixes #19196: Add Filtering by VLAN Translation Policy to Interface Filter Forms #15567

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/19199
Author: @pheus
Created: 4/15/2025
Status: Merged
Merged: 4/15/2025
Merged by: @jeremystretch

Base: mainHead: 19196-add-filtering-by-vlan-translation-policy


📝 Commits (2)

  • 78c5405 feat(dcim): Add VLAN Translation Policy to Filter Form
  • 590c458 feat(virtualization): Add VLAN Translation Policy to Filter Form

📊 Changes

2 files changed (+14 additions, -4 deletions)

View changed files

📝 netbox/dcim/forms/filtersets.py (+7 -2)
📝 netbox/virtualization/forms/filtersets.py (+7 -2)

📄 Description

Fixes: #19196 Add Filtering by VLAN Translation Policy to Interface Filter Forms

This PR adds support for filtering interfaces by VLAN Translation Policy in both DCIM and Virtualization modules.

Changes

  • DCIM:

    • Added a filter for vlan_translation_policy_id to the InterfaceFilterSet.
  • Virtualization:

    • Added the same vlan_translation_policy_id filter to the VMInterfaceFilterSet.

Impact

This allows users to filter interfaces by VLAN Translation Policy via the Web UI.

Let me know if any adjustments are needed! Thanks for your time!


🔄 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/19199 **Author:** [@pheus](https://github.com/pheus) **Created:** 4/15/2025 **Status:** ✅ Merged **Merged:** 4/15/2025 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `main` ← **Head:** `19196-add-filtering-by-vlan-translation-policy` --- ### 📝 Commits (2) - [`78c5405`](https://github.com/netbox-community/netbox/commit/78c54054815e210a25748ef4e3b34268d941fa38) feat(dcim): Add VLAN Translation Policy to Filter Form - [`590c458`](https://github.com/netbox-community/netbox/commit/590c4587b1113ef289008193e1bac88b83e30c8c) feat(virtualization): Add VLAN Translation Policy to Filter Form ### 📊 Changes **2 files changed** (+14 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/forms/filtersets.py` (+7 -2) 📝 `netbox/virtualization/forms/filtersets.py` (+7 -2) </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: #19196 Add Filtering by VLAN Translation Policy to Interface Filter Forms This PR adds support for filtering interfaces by VLAN Translation Policy in both DCIM and Virtualization modules. #### Changes - **DCIM:** - Added a filter for `vlan_translation_policy_id` to the `InterfaceFilterSet`. - **Virtualization:** - Added the same `vlan_translation_policy_id` filter to the `VMInterfaceFilterSet`. #### Impact This allows users to filter interfaces by VLAN Translation Policy via the Web UI. Let me know if any adjustments are needed! Thanks for your time! --- <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:46 +01:00
adam closed this issue 2025-12-30 00:22:47 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15567