[PR #7827] [MERGED] Fix #7424: Add virtual_chassis_id filter for device components #13288

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/7827
Author: @rhyser9
Created: 11/14/2021
Status: Merged
Merged: 11/15/2021
Merged by: @jeremystretch

Base: developHead: 7424_virtualchassis_id_filter


📝 Commits (5)

📊 Changes

5 files changed (+38 additions, -11 deletions)

View changed files

📝 netbox/dcim/api/nested_serializers.py (+1 -1)
📝 netbox/dcim/filtersets.py (+11 -0)
📝 netbox/dcim/forms/filtersets.py (+16 -9)
📝 netbox/dcim/tests/test_api.py (+1 -1)
📝 netbox/dcim/tests/test_filtersets.py (+9 -0)

📄 Description

Fixes: #7424

  • Added virtual_chassis and virtual_chassis_id filters to device components
  • Added virtual chassis field to device component filter forms
  • Filter device field based on value of virtual_chassis field
  • Added test to interface filterset test case for virtual_chassis_id filter

image
image


🔄 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/7827 **Author:** [@rhyser9](https://github.com/rhyser9) **Created:** 11/14/2021 **Status:** ✅ Merged **Merged:** 11/15/2021 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `7424_virtualchassis_id_filter` --- ### 📝 Commits (5) - [`fa8a8ab`](https://github.com/netbox-community/netbox/commit/fa8a8abc984faa62073fd06996c2dce436751bd2) netbox-community/netbox#7424: Add virtual_chassis and virtual_chassis_id filter to device components - [`6b21c84`](https://github.com/netbox-community/netbox/commit/6b21c8453fc68cb6bb999f69fd52342759aed22c) netbox-community/netbox#7424: Add virtual_chassis field to device component filter form - [`f77f7ca`](https://github.com/netbox-community/netbox/commit/f77f7ca0ec7887ad1f075654f87658908d83346b) netbox-community/netbox#7424:make device component device field filter from selected virtual chassis - [`a8c958e`](https://github.com/netbox-community/netbox/commit/a8c958ece2038be0ac849312663785f4e4791d51) netbox-community/netbox#7424: fix test failure from adding virtual chassis filter field - [`68b544c`](https://github.com/netbox-community/netbox/commit/68b544c676fba9542d09cd7b5c71e0315c885b80) netbox-community/netbox#7424: add filterset test for virtual_chassis_id ### 📊 Changes **5 files changed** (+38 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/api/nested_serializers.py` (+1 -1) 📝 `netbox/dcim/filtersets.py` (+11 -0) 📝 `netbox/dcim/forms/filtersets.py` (+16 -9) 📝 `netbox/dcim/tests/test_api.py` (+1 -1) 📝 `netbox/dcim/tests/test_filtersets.py` (+9 -0) </details> ### 📄 Description ### Fixes: #7424 - Added `virtual_chassis` and `virtual_chassis_id` filters to device components - Added virtual chassis field to device component filter forms - Filter device field based on value of virtual_chassis field - Added test to interface filterset test case for virtual_chassis_id filter ![image](https://user-images.githubusercontent.com/3577982/141666202-314b1b46-2b03-4fb6-8711-55140fde8dcd.png) ![image](https://user-images.githubusercontent.com/3577982/141666207-c5e3eb74-5734-49fc-8826-e47a2c7b1b26.png) --- <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:26:33 +01:00
adam closed this issue 2025-12-29 22:26:33 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13288