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:
1 parent
8f2cc22f88
commit
8eb075db9f
13 files changed
+611
-452
No files matched your search
@@ -1,14 +1,12 @@
|
||||
from netbox.plugins import PluginConfig, get_plugin_config
|
||||
|
||||
__version__ = "0.17.0"
|
||||
__version__ = "0.18.0"
|
||||
|
||||
|
||||
class NetBoxUtilitiesConfig(PluginConfig):
|
||||
name = "netbox_utilities"
|
||||
verbose_name = "NetBox Utilities"
|
||||
description = (
|
||||
"Navigation, tenant utilities, connection VLANs, partial-width racks, disks, CPU & RAM and bulk operations"
|
||||
)
|
||||
description = "Navigation, tenant utilities, connection VLANs, partial-width racks, disks, CPU & RAM, switch port export and bulk operations"
|
||||
version = __version__
|
||||
author = "LKE"
|
||||
base_url = "utilities"
|
||||
@@ -57,9 +55,6 @@ class NetBoxUtilitiesConfig(PluginConfig):
|
||||
from .hardware_integration import install_hardware_support
|
||||
|
||||
install_hardware_support()
|
||||
if get_plugin_config("netbox_utilities", "switch_ports_enabled"):
|
||||
# Registers the "Ports" device tab before NetBox builds the dcim URLs.
|
||||
from . import switch_port_views # noqa: F401
|
||||
if get_plugin_config("netbox_utilities", "site_prefix_column_enabled"):
|
||||
from .site_prefix import install_site_prefix_column
|
||||
|
||||
|
||||
Reference in new issue
Block a user