Topology: - Orthogonal routing: each parent drops to its own bus lane in the gap below it (interval coloring prevents overlaps), color-coded per parent; parallel links drawn thicker. Adjacent same-row links are straight, other same-row links use a lane above the row. - Port labels sit at the target device, stacked per uplink, instead of piling up at line midpoints. - Crossing reduction via repeated down/up barycenter sweeps; rows wrap at 12 devices. - Wide diagrams scale to page width in HTML/PDF instead of being cut off. Symbols: - New built-in symbols: modem/NTU (RAD), radio link, PoE injector, NAS, tape library, UPS/ATS and PBX. - Detection checks the device role first, then model/manufacturer, and covers the common typos "Acces Point", "Controler" and "Libary". Rooms and cable management are hidden; UPS devices are now shown. Removed the draw.io export format. Bump version to 0.5.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
28 lines
1.0 KiB
Python
28 lines
1.0 KiB
Python
from netbox.plugins import PluginConfig
|
|
|
|
|
|
class CustomerExportConfig(PluginConfig):
|
|
name = "netbox_customer_export"
|
|
verbose_name = "Kunden-Export"
|
|
description = "Kundendokumentation als PDF oder Word exportieren"
|
|
version = "0.5.0"
|
|
author = "Claude"
|
|
base_url = "customer-export"
|
|
min_version = "4.6.8"
|
|
max_version = "4.7.99"
|
|
default_settings = {
|
|
# Branding: Einzelschlüssel (company_name, logo_path, primary_color, docx_template, …)
|
|
# gelten global; "brandings" definiert mehrere Profile. Defaults siehe branding.py.
|
|
"brandings": None,
|
|
# Dotted path zu einer Funktion fn(rack, face, user) -> SVG-String,
|
|
# z.B. der Offline-Renderer aus Netbox-Utilities. None = NetBox-eigener Renderer.
|
|
"rack_svg_renderer": None,
|
|
# Lizenzquellen (Plugin-Modelle), None = Auto-Erkennung (netbox_lifecycle)
|
|
"license_sources": None,
|
|
# Darf der Techniker WLAN-PSKs o.ä. mit exportieren?
|
|
"allow_secrets": False,
|
|
}
|
|
|
|
|
|
config = CustomerExportConfig
|