Coverage for netbox_interface_name_rules / __init__.py: 100.00%
19 statements
« prev ^ index » next coverage.py v7.13.4, created at 2026-10-16 10:13 +0000
« prev ^ index » next coverage.py v7.13.4, created at 2026-10-16 10:13 +0000
1# SPDX-License-Identifier: Apache-2.0
2# Copyright (C) 2025 Marcin Zieba <marcinpsk@gmail.com>
3from netbox.plugins import PluginConfig
5__version__ = "1.10.0"
8class InterfaceNameRulesConfig(PluginConfig):
9 """NetBox plugin configuration for Interface Name Rules."""
11 name = "netbox_interface_name_rules"
12 verbose_name = "Interface Name Rules"
13 description = "Automatic interface renaming when modules are installed into bays."
14 version = __version__
15 base_url = "interface-name-rules"
16 min_version = "4.3.0"
17 # The default "graphql.schema" would resolve to the submodule, not the schema list.
18 graphql_schema = "graphql.schema.schema"
19 required_settings = []
20 default_settings = {}
21 author = "Marcin Zieba"
22 author_email = "marcinpsk@gmail.com"
24 def ready(self):
25 """Connect signal handlers after all apps are loaded, and prepare for netbox-branching when it is installed."""
26 super().ready()
27 from . import branching, signals # signals registers the post_save handler
29 branching.ready()
32config = InterfaceNameRulesConfig