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]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-10-30 09:25:29 +01:00
1 parent 8f2cc22f88
commit 8eb075db9f
13 files changed
+611 -452

No files matched your search

+5 -2
View File
@@ -4,10 +4,13 @@ build-backend = "hatchling.build"
[project]
name = "netbox-utilities"
version = "0.17.0"
description = "Navigation, tenant utilities, connection VLANs, partial-width racks, disks and bulk operations for NetBox 4.6/4.7"
version = "0.18.0"
description = "Navigation, tenant utilities, connection VLANs, partial-width racks, disks, CPU & RAM, switch port export and bulk operations for NetBox 4.6/4.7"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"reportlab>=4.0",
]
license = { text = "MIT" }
authors = [
{ name = "MrBlake" }