[PR #5596] [MERGED] Closes 5586: Adds name, master, and master_id filtering #13037

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/5596
Author: @FragmentedPacket
Created: 1/9/2021
Status: Merged
Merged: 1/19/2021
Merged by: @jeremystretch

Base: developHead: 5586-vc-filtering


📝 Commits (1)

  • c51d2a5 Closes 5586: Adds name, master, and master_id filtering

📊 Changes

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

View changed files

📝 netbox/dcim/filters.py (+11 -1)
📝 netbox/dcim/tests/test_filters.py (+14 -3)

📄 Description

Fixes: #5586

This implements filtering logic on name, master -> name, and master_id.

Updated the corresponding tests by adding name to the VC objects in the tests, and then referencing the correct VC devices that are added as master's within the VCs.


🔄 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/5596 **Author:** [@FragmentedPacket](https://github.com/FragmentedPacket) **Created:** 1/9/2021 **Status:** ✅ Merged **Merged:** 1/19/2021 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `5586-vc-filtering` --- ### 📝 Commits (1) - [`c51d2a5`](https://github.com/netbox-community/netbox/commit/c51d2a56ac09eb4b34882a3af0eaec9a9c0a6a31) Closes 5586: Adds name, master, and master_id filtering ### 📊 Changes **2 files changed** (+25 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/filters.py` (+11 -1) 📝 `netbox/dcim/tests/test_filters.py` (+14 -3) </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 opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes: #5586 <!-- Please include a summary of the proposed changes below. --> This implements filtering logic on `name`, `master -> name`, and `master_id`. Updated the corresponding tests by adding `name` to the VC objects in the tests, and then referencing the correct VC devices that are added as master's within the VCs. --- <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 22:25:04 +01:00
adam closed this issue 2025-12-29 22:25:04 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13037