2024-05-12 20:58:17 +03:00
|
|
|
from netbox.plugins import PluginConfig
|
2021-04-20 10:22:26 +03:00
|
|
|
|
|
|
|
|
|
|
|
class Config(PluginConfig):
|
|
|
|
name = 'netbox_interface_sync'
|
2024-05-12 20:58:17 +03:00
|
|
|
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'
|
2024-05-12 20:58:17 +03:00
|
|
|
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
|
2022-01-11 18:21:11 +03:00
|
|
|
'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
|
2022-01-18 19:56:57 +03:00
|
|
|
'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
|