[PR #14099] [MERGED] 13230 Allow Devices to be excluded from Rack utilization #14316

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/14099
Author: @arthanson
Created: 10/21/2023
Status: Merged
Merged: 10/24/2023
Merged by: @jeremystretch

Base: featureHead: 13230-rack-utilization


📝 Commits (7)

  • 3bfff2e 13230 add exclusion flag to device type
  • 9838054 13230 forms, detail views
  • c3f3e8c 13230 add tests
  • a888dea 13230 extraneous model field
  • a4590b7 13230 extraneous form field
  • 4586a59 Update netbox/dcim/forms/bulk_edit.py
  • 3cbda69 13230 review feedback

📊 Changes

11 files changed (+91 additions, -16 deletions)

View changed files

📝 netbox/dcim/api/serializers.py (+3 -3)
📝 netbox/dcim/filtersets.py (+2 -1)
📝 netbox/dcim/forms/bulk_edit.py (+9 -1)
📝 netbox/dcim/forms/bulk_import.py (+2 -2)
📝 netbox/dcim/forms/model_forms.py (+5 -4)
netbox/dcim/migrations/0182_devicetype_exclude_from_utilization.py (+17 -0)
📝 netbox/dcim/models/devices.py (+5 -0)
📝 netbox/dcim/models/racks.py (+6 -2)
📝 netbox/dcim/tables/devicetypes.py (+4 -3)
📝 netbox/dcim/tests/test_models.py (+34 -0)
📝 netbox/templates/dcim/devicetype.html (+4 -0)

📄 Description

Fixes: #13230

Sets flag to exclude items from rack utilization. Not sure if there is a better (shorter) name that would work exclude_from_utilization is descriptive, but a bit verbose.


🔄 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/14099 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 10/21/2023 **Status:** ✅ Merged **Merged:** 10/24/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `13230-rack-utilization` --- ### 📝 Commits (7) - [`3bfff2e`](https://github.com/netbox-community/netbox/commit/3bfff2e6a0a5a1929db7bd4d007ab8afbb8f6b9a) 13230 add exclusion flag to device type - [`9838054`](https://github.com/netbox-community/netbox/commit/98380540856294c21361e698e16b897700516824) 13230 forms, detail views - [`c3f3e8c`](https://github.com/netbox-community/netbox/commit/c3f3e8cc61180007c4970fd19deb2d0d68353935) 13230 add tests - [`a888dea`](https://github.com/netbox-community/netbox/commit/a888dea0b9248ea2bcb9bad64ed56c19a074d68e) 13230 extraneous model field - [`a4590b7`](https://github.com/netbox-community/netbox/commit/a4590b7c89fd063c78d56736f98b00770a1abeee) 13230 extraneous form field - [`4586a59`](https://github.com/netbox-community/netbox/commit/4586a598d13adc05c9465111c8d4d4ff5ffc7938) Update netbox/dcim/forms/bulk_edit.py - [`3cbda69`](https://github.com/netbox-community/netbox/commit/3cbda69c275530f385fde29f698d45e6738f2103) 13230 review feedback ### 📊 Changes **11 files changed** (+91 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/api/serializers.py` (+3 -3) 📝 `netbox/dcim/filtersets.py` (+2 -1) 📝 `netbox/dcim/forms/bulk_edit.py` (+9 -1) 📝 `netbox/dcim/forms/bulk_import.py` (+2 -2) 📝 `netbox/dcim/forms/model_forms.py` (+5 -4) ➕ `netbox/dcim/migrations/0182_devicetype_exclude_from_utilization.py` (+17 -0) 📝 `netbox/dcim/models/devices.py` (+5 -0) 📝 `netbox/dcim/models/racks.py` (+6 -2) 📝 `netbox/dcim/tables/devicetypes.py` (+4 -3) 📝 `netbox/dcim/tests/test_models.py` (+34 -0) 📝 `netbox/templates/dcim/devicetype.html` (+4 -0) </details> ### 📄 Description ### Fixes: #13230 Sets flag to exclude items from rack utilization. Not sure if there is a better (shorter) name that would work `exclude_from_utilization` is descriptive, but a bit verbose. --- <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:23:47 +01:00
adam closed this issue 2025-12-29 23:23:48 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14316