Closes #20152: Add support for disabling Device and Module bays #168

Closed
opened 2026-04-05 16:22:38 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @pheus on 3/11/2026

Fixes: #20152

This PR adds an enabled boolean field to ModuleBay, ModuleBayTemplate, DeviceBay, and DeviceBayTemplate.

The intent is to model bay availability as a simple on/off state, which feels like the best fit for this feature and keeps the implementation lightweight. Disabled bays are now reflected in the UI and cannot be used for new device or module installation. Forms, filters, serializers, and tables have also been updated so the new field is supported consistently across NetBox.

*Originally created by @pheus on 3/11/2026* ### Fixes: #20152 This PR adds an `enabled` boolean field to `ModuleBay`, `ModuleBayTemplate`, `DeviceBay`, and `DeviceBayTemplate`. The intent is to model bay availability as a simple on/off state, which feels like the best fit for this feature and keeps the implementation lightweight. Disabled bays are now reflected in the UI and cannot be used for new device or module installation. Forms, filters, serializers, and tables have also been updated so the new field is supported consistently across NetBox.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#168