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

17 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-04-02 15:19 +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.3.0" 

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.2.0" 

17 required_settings = [] 

18 default_settings = {} 

19 author = "Marcin Zieba" 

20 author_email = "marcinpsk@gmail.com" 

21 

22 def ready(self): 

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

24 super().ready() 

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

26 

27 

28config = InterfaceNameRulesConfig