Adds min_version/max_version to the plugin config for NetBox 4.7.x and extends the rack view's cable topology with optional wireless and power cable display, rendered with distinct colors and dash patterns from regular network cables. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
28 lines
727 B
Python
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.1"
|
|
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
|