Devices whose role is one of disk_device_roles (default Server, NAS, SAN,
MSA) get a "Datenträger" tab with slot layout, disks, RAID groups,
warranty and age warnings, replacement history, CSV import, REST API and
GraphQL.
- First-visit wizard for slot count, rows, first slot number, numbering
and form factor; layouts can be saved as device type templates and
applied with one click.
- Slot grid drawn like the device front, coloured by status, with
warning icons; free slots open a pre-filled disk form.
- Bulk fill of selected slots with shared attributes and one serial per
line (barcode scanner friendly), with live count and duplicate checks.
- Sizes in vendor notation (960 GB, 4 TB, 1,92 TB, 2 TiB); the tenant is
always taken from the device and follows tenant changes.
- RAID groups (RAID 0/1/5/6/10/50/60, RAID-Z1/Z2/Z3, JBOD) with hot
spares, usable capacity, tolerated failures and degraded state.
- "Ersetzen" marks a disk as removed and opens the successor form;
removed disks stay as per-slot history.
- Warnings for failed disks, expired or expiring warranties and disks
older than disk_age_warning_years.
- Global disk list with filters, export, global search by serial,
optional device list column, CSV import, REST API and GraphQL.
- New settings: disks_enabled, disk_device_roles,
disk_age_warning_years, disk_warranty_warning_days.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add three optional filter fields above the B-side termination selection.
They are never saved on the cable and can be cleared, so cabling across
tenant or site boundaries stays possible. Defaults come from the A side
or the global tenant filter.
Co-Authored-By: Claude Opus 5 <[email protected]>
NetBox renders the native download link inside each per-face
elevation card, not through a plugin buttons() extension point, so
there's no server-side hook to inject a matching link next to it. The
right_page() extension now emits only a script (no separate sidebar
panel) that finds every a[href*="render=svg"] link, reads its face=
param, and inserts a matching "SVG offline" button right after it. The
button's href stays in sync with the rack-view select the same way
the previous panel's links did.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
The rack elevation page's "Bilder und Beschriftungen" dropdown only
toggles CSS visibility client-side after the browser already has the
SVG, so a freshly server-rendered export had no way to know which mode
was selected and always exported everything.
apply_rack_view_mode() replicates that filtering server-side by
removing the .label text elements (images-only) or the .device-image /
.device-image-label elements (labels-only) from the parsed SVG.
RackElevationOfflineSVGView now accepts a ?view= query param, and the
rack detail page panel syncs its download links to the page's own
"select.rack-view" dropdown so the exported file matches what's
currently shown.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
The buttons() plugin-template-extension hook was registered for
dcim.rack and rendered without error, but the button HTML never
appeared on the rendered rack detail page in production — NetBox's
Rack detail template apparently doesn't wire the buttons() slot into
its controls row. right_page() is confirmed working for this plugin
already (the device rack-width panel uses it), so the export links
now render there as a small card instead.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Adds a "SVG offline" download button on the rack detail page. It
reuses NetBox's own rack-elevation REST endpoint to render the SVG,
then strips embedded <a>/xlink:href links (which point at internal,
relative NetBox URLs and are useless once the file is saved) so the
result renders identically when opened standalone in any SVG viewer.
Gated by the new offline_svg_export_enabled plugin setting (on by
default).
Co-Authored-By: Claude Sonnet 5 <[email protected]>