netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Add Rack to the Device Bulk Edit form

Open llamafilm opened this issue 1 month ago • 5 comments

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

llamafilm avatar Nov 19 '25 23:11 llamafilm

I’m happy to open a PR if it’s accepted.

pheus avatar Nov 20 '25 11:11 pheus

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.

jeremystretch avatar Nov 20 '25 14:11 jeremystretch

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.

llamafilm avatar Nov 20 '25 16:11 llamafilm

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.

jeremystretch avatar Nov 20 '25 18:11 jeremystretch

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.

llamafilm avatar Nov 21 '25 04:11 llamafilm