- New section "Netzwerk-Topologie": one diagram per site built from NetBox cable paths (traced through patch panels), layered top-down by cabling (provider > firewall/router > core > access > endpoints), barycenter ordering, "2x" for parallel links, provider circuits as clouds and devices outside the scope dashed. Labels: management IP, model, ports. - New export format "draw.io": the topology as an editable .drawio file (one page per site, symbols embedded). - 14 built-in symbols drawn with Pillow; automatic mapping from role, model and manufacturer, passive gear (patch panels, PDUs, UPS) hidden. - New TopologySymbol model (migration 0002) with list/edit/delete UI, symbol gallery, custom icon upload and a "Topologie-Symbol" button on device type and device role pages. Bump version to 0.4.0 - requires "manage.py migrate". 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.4.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
|