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]>
This commit is contained in:
1 parent
9fd3e01cdf
commit
9ecad07c96
9 files changed
+776
No files matched your search
@@ -31,6 +31,8 @@ class NetBoxUtilitiesConfig(PluginConfig):
|
||||
"hardware_enabled": True,
|
||||
"hardware_device_roles": ["Server"],
|
||||
"hardware_vcpu_ratio_warning": 4,
|
||||
"switch_ports_enabled": True,
|
||||
"switch_device_roles": ["Switch"],
|
||||
}
|
||||
middleware = [
|
||||
"netbox_utilities.middleware.GlobalTenantFilterMiddleware",
|
||||
@@ -55,6 +57,9 @@ 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