Coverage for /home/runner/work/netbox-InterfaceNameRules-plugin/netbox-InterfaceNameRules-plugin/netbox-InterfaceNameRules-plugin/netbox_interface_name_rules/__init__.py: 100%

18 statements  

« prev     ^ index     » next       coverage.py v7.15.4, created at 2026-08-22 21:16 +0000

1# SPDX-License-Identifier: Apache-2.0 

2# Copyright (C) 2025 Marcin Zieba <marcinpsk@gmail.com> 

3from netbox.plugins import PluginConfig 

4 

5__version__ = "1.5.1" 

6 

7 

8class InterfaceNameRulesConfig(PluginConfig): 

9 """NetBox plugin configuration for Interface Name Rules.""" 

10 

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" 

23 

24 def ready(self): 

25 """Connect signal handlers after all apps are loaded.""" 

26 super().ready() 

27 from . import signals # noqa: F401 — registers post_save handler 

28 

29 

30config = InterfaceNameRulesConfig