feat: drag and drop disks between slots; fix RAID group form on NetBox 4.7
Disks on the slot grid can be dragged onto a free slot to move them or onto an occupied slot to swap both disks. Moves are saved immediately with changelog entries and require netbox_utilities.change_disk. NetBoxModelForm.clean() returns None on NetBox 4.7, which broke creating RAID groups with an AttributeError. The disk forms now read self.cleaned_data instead of the return value. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
a296c57536
commit
595d6a2b71
6 files changed
+159
-8
No files matched your search
@@ -27,4 +27,5 @@ urlpatterns = [
|
||||
path("disk-templates/<int:pk>/", include(get_model_urls("netbox_utilities", "diskbaytemplate"))),
|
||||
path("devices/<int:pk>/disks/setup/", disk_views.DeviceDiskSetupView.as_view(), name="device_disk_setup"),
|
||||
path("devices/<int:pk>/disks/fill/", disk_views.DeviceDiskBulkFillView.as_view(), name="device_disk_fill"),
|
||||
path("devices/<int:pk>/disks/move/", disk_views.DeviceDiskMoveView.as_view(), name="device_disk_move"),
|
||||
]
|
||||
Reference in new issue
Block a user