The asset list ignored the global tenant and tenant group filter. The asset
filterset now applies the active scope itself (including inherited tenants)
instead of relying on the injected URL parameter; the REST API stays
unfiltered. The replaced tenant filters use model choice filters like the
original plugin filters.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The tenant_id and tenant_group_id filters of netbox-inventory assets now also
match assets without their own tenant via the tenant of the assigned device,
module, inventory item or rack, like the tenant column. The global tenant and
tenant group filter uses these filters and no longer hides such assets.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The tenant column of the netbox-inventory asset list stayed empty for assets
without their own tenant. It now shows the tenant of the assigned device,
module, inventory item or rack instead. reportlab is pinned below 5, which
pulled in pillow 13 and broke netbox-documentation's pillow<13 requirement.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The asset table of netbox-inventory gets a tenant column (registered if the
plugin does not provide one) that is part of the default columns, placed
right after the status.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Assets without a tenant take the tenant of the device, module, inventory item or
rack they are assigned to, both in clean() and before save. The plugin's assign,
reassign and "create hardware from asset" views save assets without a tenant
field and failed with mandatory tenancy before. Asset forms are also pre-filled
from an assigned module or inventory item. Existing tenants are never changed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
/api/plugins/utilities/switch-stacks/ reads and writes stacks, filterable by
device_id and member_id.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ports without a label show the VLANs of their cable. A label with exactly
one number counts as that VLAN ID, so "Server 30", "VLAN 30", "30" and a
cable with VLAN 30 share one colour and legend entry. A numeric label that
differs from the cable VLANs is flagged with an orange corner and a
warning; tooltips and the PDF port list show label and cable VLANs.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Management ports (management only, or named mgmt/management/oobm/me0 ...)
show "MGMT" instead of the overflowing full name and form their own group
at the end; other ports without a number are shortened. The faceplate,
jacks, notches and frames use theme variables for NetBox's light and dark
mode instead of a fixed dark design.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Switches show a Ports panel above the Device and Management cards: a dark
faceplate with every physical port as RJ45/SFP jack (odd on top, even
below, per stack member), a status view (link, free, disabled) and a VLAN
view with the label colours of the PDF, contrast-aware text, legend,
tooltips with peer and description, key figures and a link to the PDF
export. Texts follow the user's NetBox language. The panel is rendered
into the left column and moved to the top by a small script.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A 48-port switch fits on one row again; the port list keeps the wider
columns without line breaks and the VLAN legend is kept on one page.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The export uses A4 portrait: wide port groups are split evenly (a 48-port
switch into 1-24 and 25-48) with larger tiles, the legend has four
columns and the port list has wider columns and a smaller font so that
names, status and type no longer wrap.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Switches get an "Export switch port usage" button that downloads an A4
landscape PDF: key figures, a front panel with one colour per VLAN label
(full colour = connected, pale = free, dashed with a cross = disabled,
text colour chosen for contrast), a VLAN legend and the full port list
with peers. The PDF follows the language of the user's NetBox
preferences (German or English). The Ports tab with its script and
styles is removed. ReportLab becomes a dependency.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Devices with the role "Switch" get a Ports tab: key figures, a front-panel
view of all physical interfaces grouped per stack member/line card and
medium (odd ports on top, even below), coloured by usage or by the VLAN
noted in the interface label, with a VLAN legend and filter, tooltips with
peer and description, a searchable table of all interfaces, CSV export
and a print view. Peers follow the cable path through patch panels.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Key figures (hosts, vCPU:core, RAM allocation, N+1) as tiles with
colours, warnings in one compact box and the host table across the full
width with RAM bars, coloured ratios and one-line VM figures.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
As soon as any VM of a cluster (in any status) is assigned to one of its
hosts, the placement is treated as managed by hand: VMs without a host
are no longer spread over the hosts and only count towards the cluster
totals. Cluster panel and host tab say which case applies.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
VMs assigned only to a cluster now count towards every host of that
cluster in proportion to its size: vCPUs by threads, memory by host RAM,
evenly if no host has CPU & RAM recorded. The cluster host table and the
CPU & RAM tab of a host include this share; the cluster totals still
count each VM once. Hosts are matched by device ID instead of name.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The CPU & RAM panel on the device page becomes its own tab with the
total core count as badge. Besides CPU and RAM it shows the capacity of
a virtualization host and the list of VMs running on it. Saving the
form returns to the tab.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Devices get a CPU & RAM panel: CPU model from a built-in catalogue of
over 700 Intel Xeon and AMD Opteron/EPYC server CPUs since 2012 (cores,
threads, base/turbo clock, TDP, socket, year, max sockets; checked against
Intel ARK, AMD and server vendor data), CPU count and RAM with modules,
type and speed. The catalogue is loaded by migration 0011, can be edited
and extended in the UI and refreshed with netbox_utilities_cpu_catalog.
Virtualization: clusters show their capacity (cores, threads and RAM of
the hosts against the vCPUs and memory of the VMs, vCPU:core ratio, RAM
allocation, N+1 reserve) with a per-host table, hosts list their VMs and
VMs show the CPU of their host. Optional columns for the device and
cluster lists, CSV import, REST API, GraphQL and search are included.
The plugin menu is now called "Hardware".
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The disk group export of an HPE MSA sets RAID level and pool on the RAID
groups of the selected devices. Column names are matched case- and
punctuation-insensitively with common aliases, positions are accepted as
1.4, 1:4, 1/4 or "Enclosure 1, Slot 4" or as separate enclosure and slot
columns, and both export kinds are detected in the regular disk import.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
When the CSV import handed an MSA export to the wizard, its forms had no
action and submitted to /disks/import/, which failed with KeyError 'format'.
All wizard forms now post to the MSA import URL.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
An MSA disk export pasted or uploaded in Disks > Import failed with
"Unknown header: Location". The import now recognises the MSA columns and
opens the shelf assignment step of the MSA import instead.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The bay and raid_group cleaners returned the plain name, which reached the
model instance as a string whenever clean() stopped early on another error.
They now keep the name aside and leave None behind.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A three-step wizard reads the MSA disk export, maps each enclosure (shelf)
to a device and previews new, updated, replaced, skipped and conflicting
disks. Devices without slot areas get one created during the import,
pre-filled from the device type template or the export. Disk groups can
become RAID groups and the install date can be estimated from the power
on hours.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Disks that are not in the front bays, such as NVMe SSDs on a PCIe card or
M.2 SSDs on a boot card, can now be documented in their own slot area.
- A device can have several areas, each with name, order, slot count,
rows, first slot, numbering and form factor; the tab shows one grid per
area with its own fill, select and edit actions.
- Add area, edit area and delete empty areas on the Disks tab.
- Slot numbers are unique per area; drag and drop also moves or swaps
disks between areas.
- Device type templates store all areas; Apply template creates the
missing ones.
- Disks get a bay field in forms, CSV import (bay column, optional when
the device has one area), REST API, GraphQL, filters and tables.
- Migration 0010 turns every existing layout into the area "Front" and
assigns the existing disks to it.
- The grouped disk overview shows the area in its own column and centres
the slot number.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The disk entries move from the Plugins menu into a top-level Disks menu with
Disks, RAID groups and Disk templates. The Disks entry opens a new page that
groups all disks by device in collapsible sections with per-device summary,
search, warning and removed-disk switches and expand/collapse all. The flat
table with filters, export and bulk actions remains available.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
NetBox 4.7 tables no longer accept a user keyword argument, which broke the
Datenträger tab with a TypeError. The tab badge now shows the number of
installed disks instead of used/total slots or "neu".
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
The rack width integration only accepted NetBox-Export 0.3.11 and 0.3.14, but the published version was 0.3.13, so the patches were silently skipped. Accept 0.3.12 to 0.3.14; the patcher still checks that all hooked functions exist before patching. Verified on NetBox 4.7.2 that the patch is applied.
Update four outdated tests: compare asset versions against __version__ instead of 0.10.4, allow the read-only tenant group lookup in the connection scope test, and check the prefix column in NetBox's table column registry, where register_table_column() stores it.
All 174 tests pass on NetBox 4.7.2. Bump version to 0.14.4.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reading the runtime settings while other migrations run failed because the settings table did not exist yet. The error was caught, but it aborted the surrounding migration transaction on PostgreSQL. Run the query inside a savepoint. Verified with NetBox 4.7.2. Bump version to 0.14.3.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
NetBox renders image attachment thumbnails under its global 25 MP Pillow
limit, so 50 MP photos uploaded via the bulk form showed no preview.
Scale images above that limit down (applying EXIF orientation) before
saving. Also resolve leftover merge conflict markers in the README.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
NetBox sets Pillow's MAX_IMAGE_PIXELS to 25 MP, so Pillow rejects images
above 50 MP as decompression bombs. Raise the limit to 100 MP while the
bulk upload is processed and surface the underlying Pillow error.
Co-Authored-By: Claude Opus 5.5 <[email protected]>