[PR #11382] [MERGED] #11150: Add a filter for device.primary_ip4 and primary_ip6 #13776

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/11382
Author: @michaelarnauts
Created: 1/4/2023
Status: Merged
Merged: 1/5/2023
Merged by: @jeremystretch

Base: developHead: 11150-filter-for-primary-ip46


📝 Commits (2)

  • ba03bd5 Closes #11150: Add a filter for device.primary_ip4 and primary_ip6
  • ecb1d09 Tweaked tests to query for multiple IDs

📊 Changes

2 files changed (+31 additions, -3 deletions)

View changed files

📝 netbox/dcim/filtersets.py (+11 -1)
📝 netbox/dcim/tests/test_filtersets.py (+20 -2)

📄 Description

Fixes: #11150

  • Add primary_ip4 and primary_ip6 to the DeviceFilterSet
  • Add tests to query based on those fields

🔄 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/11382 **Author:** [@michaelarnauts](https://github.com/michaelarnauts) **Created:** 1/4/2023 **Status:** ✅ Merged **Merged:** 1/5/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `11150-filter-for-primary-ip46` --- ### 📝 Commits (2) - [`ba03bd5`](https://github.com/netbox-community/netbox/commit/ba03bd54cda1a5b0845d17b74f619db97f489275) Closes #11150: Add a filter for device.primary_ip4 and primary_ip6 - [`ecb1d09`](https://github.com/netbox-community/netbox/commit/ecb1d096cdd61ff123eb05f2967a113fd7fbed4d) Tweaked tests to query for multiple IDs ### 📊 Changes **2 files changed** (+31 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/filtersets.py` (+11 -1) 📝 `netbox/dcim/tests/test_filtersets.py` (+20 -2) </details> ### 📄 Description ### Fixes: #11150 * Add `primary_ip4` and `primary_ip6` to the DeviceFilterSet * Add tests to query based on those fields --- <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:20:45 +01:00
adam closed this issue 2025-12-29 23:20:46 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13776