Files
mrb-netbox-topology-views/netbox_topology_views/__init__.py
T
MrBlakeandClaude Sonnet 5 f08df4fd52 fix: detect power cables by termination type and move toggle into topology card
Power-cable detection previously relied on cable.type, which is usually
unset for power patch cables (e.g. PDU-to-PDU), so they never got the
distinct color. Power cables are now also detected by termination
component type (PowerPort/PowerOutlet/PowerFeed).

Wireless/power display is now toggled client-side via checkboxes in the
Kabeltopologie card header (before the SVG/PNG/draw.io export buttons)
instead of a server round-trip through the top filter form, so toggling
is instant and affects exports too.

Bump plugin version to 4.5.2.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-17 10:45:27 +02:00

28 lines
727 B
Python

from netbox.plugins import PluginConfig
class TopologyViewsConfig(PluginConfig):
name = "netbox_topology_views"
verbose_name = "Topology views"
description = "A plugin to render topology maps"
version = "4.5.2"
author = "Mattijs Vanhaverbeke, Codex & Claude"
author_email = "author@example.com"
base_url = "netbox_topology_views"
min_version = "4.7.0"
max_version = "4.7.99"
required_settings = []
default_settings = {
"static_image_directory": "netbox_topology_views/img",
"allow_coordinates_saving": False,
"always_save_coordinates": False,
}
def ready(self):
from . import signals
super().ready()
config = TopologyViewsConfig