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

29 lines
1.2 KiB
Python
Raw Normal View History

from netbox.plugins import PluginConfig
2021-04-20 10:22:26 +03:00
class Config(PluginConfig):
name = 'netbox_interface_sync'
verbose_name = 'NetBox 4 Interface Synchronization'
description = 'Compare and synchronize components (interfaces, ports, outlets, etc.) between NetBox 4 device types ' \
2022-03-03 12:39:16 +03:00
'and devices'
version = '0.4.0'
author = 'based on work by Victor Golovanenko'
2021-04-20 10:22:26 +03:00
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