Add Rack to the Device Bulk Edit form
NetBox version
v4.4.6
Feature type
Data model extension
Proposed functionality
When bulk editing multiple Devices, I should be able to change their Rack.
Use case
I have a few dozen devices, in 3 different Racks, that all need to be un-racked so that I can move them to a different Location. Netbox won't let me change their Location until the Rack is cleared.
Database changes
No response
External dependencies
No response
I’m happy to open a PR if it’s accepted.
IIRC we intentionally don't support this because there's no mechanism available to simultaneously modify devices' position: All devices being moved to the new rack would keep their same position. This is generally only useful when moving to an empty rack, otherwise physical conflicts are highly likely and cannot be resolved in bulk.
That's a good point, and may take more thought to reach a good solution.
We could allow the bulk edit form to null the rack field, which implies also nulling the rack position. Then the user can update the rack for each device one at a time. This would have saved me time in this case, because the rack assignment is blocking me from bulk editing the location.
Taking it one step further, we could automatically null the rack position when you move to a new rack. Then the user can manually update each position. This might be surprising to users though.
This might be better served by FR #19737.
we could automatically null the rack position when you move to a new rack
I'm hesitant to introduce any logic that would nullify data without it being very clear to the user.
Ooh I really like the grid idea, for a variety of uses. So that would support this full workflow, moving both the rack, position, and location all in one go. That seems like a quite complex solution. In the meantime, maybe it's worthwhile to just add a way to null the rack and position on the existing bulk edit form.