Commit Graph
70 Commits
Author SHA1 Message Date
MrBlakeandClaude Opus 5.5 e9c00f2b11 fix: MGMT label for management ports and light/dark theme for the switch panel
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]>
2026-10-30 10:12:13 +01:00
MrBlakeandClaude Opus 5.5 b1ecbbbb75 feat: Aruba-style switch front panel on the device page
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]>
2026-10-30 10:03:07 +01:00
MrBlakeandClaude Opus 5.5 7289c21684 feat: switch port PDF back in A4 landscape
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]>
2026-10-30 09:34:06 +01:00
MrBlakeandClaude Opus 5.5 f144f23b31 feat: switch port PDF in A4 portrait
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]>
2026-10-30 09:28:56 +01:00
MrBlakeandClaude Opus 5.5 8eb075db9f feat: export switch port usage as PDF instead of a Ports tab
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]>
2026-10-30 09:25:29 +01:00
MrBlakeandClaude Opus 5.5 9ecad07c96 feat: Ports tab for switches with front-panel view and VLAN colours
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]>
2026-10-30 08:54:37 +01:00
MrBlakeandClaude Opus 5.5 8aa8d3fe1e fix: do not spread unplaced VMs once a VM of the cluster is pinned
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]>
2026-10-29 11:12:15 +01:00
MrBlakeandClaude Opus 5.5 afa15eb46a feat: spread cluster VMs without a fixed host over the cluster hosts
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]>
2026-10-29 11:02:35 +01:00
MrBlakeandClaude Opus 5.5 675574ee00 feat: CPU & RAM as a device tab next to Disks
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]>
2026-10-29 11:00:30 +01:00
MrBlakeandClaude Opus 5.5 8624ddb62f docs: use the new Hardware menu name for the disk CSV import
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-29 10:53:45 +01:00
MrBlakeandClaude Opus 5.5 c8b581089c feat: CPU & RAM per server with a catalogue of Intel and AMD server CPUs
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]>
2026-10-29 10:53:36 +01:00
MrBlakeandClaude Opus 5.5 8396b7c64a docs: add screenshots and generalise README
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-26 20:58:18 +01:00
MrBlakeandClaude Opus 5.5 95fd28f2a4 feat: MSA import reads disk group exports and loosely named columns
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]>
2026-10-21 15:02:46 +02:00
MrBlakeandClaude Opus 5.5 a7801ec297 feat: import the disk CSV export of an HPE MSA
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]>
2026-10-21 14:06:22 +02:00
MrBlakeandClaude Opus 5.5 d45afa5e54 feat: several slot areas per device, e.g. front bays and a PCIe card
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]>
2026-10-19 14:46:48 +02:00
MrBlakeandClaude Opus 5.5 14cb5d5829 feat: own Disks main menu and disk list grouped by device
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]>
2026-10-19 14:14:58 +02:00
MrBlakeandClaude Opus 5.5 3ac6a53fa8 docs: use English UI names in the disks README section
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-19 12:51:10 +02:00
MrBlakeandClaude Opus 5.5 2980500f53 docs: describe drag and drop of disks in README
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-19 12:32:09 +02:00
MrBlakeandClaude Opus 5.5 a296c57536 fix: drop unsupported user argument from disk tables and show disk count in tab badge
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]>
2026-10-19 12:09:29 +02:00
MrBlakeandClaude Opus 5.5 adbd697c0a feat: add disk management tab for servers, NAS, SAN and MSA devices
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]>
2026-10-19 12:01:56 +02:00
MrBlakeandClaude Opus 5.5 cbb8128385 fix: downscale oversized bulk uploads so NetBox can render thumbnails
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]>
2026-10-02 10:19:19 +02:00
MrBlake f7c9ce995f Merge branch 'main' of https://git.mrblake.cc/MrBlake/Netbox-Utilities 2026-10-02 10:14:54 +02:00
MrBlakeandClaude Opus 5.5 a9fd36f31c fix: allow 50 MP smartphone photos in bulk image upload
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]>
2026-10-02 10:14:13 +02:00
MrBlakeandClaude Opus 5.5 a85e4d6375 docs: rewrite README in English with standard structure
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 13:36:57 +02:00
MrBlakeandClaude Opus 5.5 c7b65f123b feat: make site prefix column sortable
Clicking the Prefix column header sorts device and rack lists by site
name, which starts with the prefix.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-25 11:10:29 +02:00
MrBlakeandClaude Opus 5.5 337cd28c23 feat: filter device and rack lists by site prefix
Adds a site_prefix filter to the device and rack filtersets and filter
forms. It matches the first word of the site name case-insensitively
and accepts several comma-separated prefixes. Bumps version to 0.14.0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-25 11:07:03 +02:00
MrBlakeandClaude Opus 5.5 ae4b05d539 feat: integrate site prefix column from Netbox-Prefixes
Device and rack tables show the first word of the site name as the
first data column. Replaces the separate netbox_site_prefix plugin and
can be disabled with site_prefix_column_enabled.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-24 15:38:47 +02:00
MrBlakeandClaude Opus 5 ad4085a2db feat: prefilter the B side of a cable by tenant group, tenant and site
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]>
2026-09-23 11:27:03 +02:00
MrBlake ff8dacc68c fix: pair LC patchpanel ports by number 2026-08-31 11:22:53 +02:00
MrBlake f3d658b52b feat: filter connection VLANs by group 2026-08-25 12:11:18 +02:00
MrBlake d245ae0f79 ui: place connection VLANs below cable B side 2026-08-25 12:03:45 +02:00
MrBlake 4421000409 fix: ignore reverse relations during tenant autofill 2026-08-19 12:40:17 +02:00
MrBlake bd748ef985 feat: assign VLANs to network connections 2026-08-19 12:24:40 +02:00
MrBlake 1c6708216c fix: preserve shared rack units during import 2026-08-19 10:53:44 +02:00
MrBlake 7216dad2b4 fix: separate rack width import locks 2026-08-19 10:43:33 +02:00
MrBlake 639dc958a5 feat: preserve rack widths in netbox export 2026-08-19 10:33:17 +02:00
MrBlake 839b076d94 fix: preserve reorder drag width and images 2026-08-13 16:10:47 +02:00
MrBlake 79a071597c fix: restore visible rack integration widgets 2026-08-13 11:21:48 +02:00
MrBlake e42580d651 fix: bind rack integrations to rendered devices 2026-08-13 10:51:59 +02:00
MrBlake 270d821219 fix: render rack integrations server-side 2026-08-13 10:15:13 +02:00
MrBlake 33490d40c4 fix: preserve native reorder rack devices 2026-08-13 09:58:34 +02:00
MrBlake a5f8cb62c7 fix: restore populated rack and reorder views 2026-08-13 09:37:59 +02:00
MrBlake bc2024ac13 fix: render all devices sharing rack units 2026-08-13 09:09:55 +02:00
MrBlake a0358136b2 fix: restore rack and reorder width views 2026-08-13 08:35:21 +02:00
MrBlake 70825c4040 feat: integrate rack widths across plugins 2026-08-12 17:12:19 +02:00
MrBlake ec67e6b7d0 revert: defer rack images to NetBox 2026-08-12 16:02:43 +02:00
MrBlake 4ee78ae4fe fix: update rack width controls and images 2026-08-12 15:57:22 +02:00
MrBlake c663069825 fix: render partial-width devices in rack SVG 2026-08-12 15:41:40 +02:00
MrBlake 7dc9b4d91d fix: handle NetBox device form clean result 2026-08-12 15:24:01 +02:00
MrBlake c38ab30acc fix: render rack width fields in device template 2026-08-12 14:28:35 +02:00