Files
netbox-plugin-dns-bridge/netbox_dns_bridge/__init__.py
T
sven fe24dbdd98 Add configurable catalog zone naming
- New setting 'catalog_zone_name' (default: 'catz') to change the name of
  the per-view catalog zone. Full DNS names (multiple labels) are
  supported; names are handled as dns.name.Name objects, making the
  comparison case-insensitive and tolerant of trailing dots.
- New setting 'catalog_zone_name_includes_view' (default: False). When
  enabled, the catalog zone name is prefixed with the view name:
  '<view>.<catalog_zone_name>'.
- The transfer endpoint now serves exactly the one configured catalog
  zone name per view instead of accepting both 'catz' and
  '<view>.catz'.
- The catalog zone NOTIFY now targets only the configured name instead
  of notifying for both variants. Scheduling moved to
  catalog_zone_manager, which owns all catalog zone naming.
2026-09-22 22:22:26 +02:00

29 lines
744 B
Python

from netbox.plugins import PluginConfig
from django.conf import settings
__version__ = "1.6.0-rc2"
class DNSBridgeConfig(PluginConfig):
name = "netbox_dns_bridge"
verbose_name = "Netbox DNS Bridge"
description = ""
version = __version__
author = "Sven Luethi"
author_email = "dev@sven.luethi.co"
base_url = "dns-bridge"
def ready(self):
super().ready()
self.settings = settings.PLUGINS_CONFIG.get(self.name, None)
if not self.settings:
raise RuntimeError(
f"{self.name}: Plugin {self.verbose_name} failed to"
" initialize due to missing settings. Terminating Netbox."
)
from . import signals
config = DNSBridgeConfig