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 <noreply@anthropic.com>
This commit is contained in:
2026-09-23 11:27:03 +02:00
co-authored by Claude Opus 5
parent ca1e38a1da
commit ad4085a2db
6 changed files with 386 additions and 3 deletions
+6 -1
View File
@@ -1,6 +1,6 @@
from netbox.plugins import PluginConfig, get_plugin_config
__version__ = "0.12.2"
__version__ = "0.13.0"
class NetBoxUtilitiesConfig(PluginConfig):
@@ -15,6 +15,7 @@ class NetBoxUtilitiesConfig(PluginConfig):
default_settings = {
"navigation_customization_enabled": True,
"connection_vlans_enabled": True,
"connection_tenant_filter_enabled": True,
"reorder_rack_bulk_save_enabled": True,
"topology_views_rack_width_enabled": True,
"tenant_filter_enabled": True,
@@ -40,6 +41,10 @@ class NetBoxUtilitiesConfig(PluginConfig):
from .connection_vlans import install_connection_vlan_support
install_connection_vlan_support()
if get_plugin_config("netbox_utilities", "connection_tenant_filter_enabled"):
from .connection_scope import install_connection_scope_filter
install_connection_scope_filter()
if self.apps.is_installed("netbox_export"):
from .netbox_export import install_netbox_export_rack_width_support