netbox-plugin-interface-sync/netbox_interface_sync/__init__.py

29 lines
1.2 KiB
Python
Raw Normal View History

2021-04-20 10:22:26 +03:00
from extras.plugins import PluginConfig
class Config(PluginConfig):
name = 'netbox_interface_sync'
verbose_name = 'NetBox interface synchronization'
2022-03-03 12:39:16 +03:00
description = 'Compare and synchronize components (interfaces, ports, outlets, etc.) between NetBox device types ' \
'and devices'
2021-10-30 12:27:25 +03:00
version = '0.2.0'
2021-04-20 10:22:26 +03:00
author = 'Victor Golovanenko'
author_email = 'drygdryg2014@yandex.ru'
default_settings = {
2022-03-03 12:39:16 +03:00
# Ignore case and spaces in names when matching components between device type and device
'name_comparison': {
'case-insensitive': True,
'space-insensitive': True
},
# Exclude virtual interfaces (bridge, link aggregation group (LAG), "virtual") from comparison
'exclude_virtual_interfaces': True,
2022-03-03 12:39:16 +03:00
# Add a panel with information about the number of interfaces to the device page
'include_interfaces_panel': False,
2022-03-03 12:39:16 +03:00
# Consider component descriptions when comparing. If this option is set to True, then take into account
# component descriptions when comparing components and synchronizing their attributes, otherwise - ignore
'sync_descriptions': True
2021-04-20 10:22:26 +03:00
}
config = Config