NetBox Plugin to compare and synchronize interfaces between devices and device types
Go to file
NetTech2001 b48cfaca4b Ready for netboxcommunity
This plugin has been re-developed for Netbox 4. The sync button has been redesigned as well as the colors of the sync table.
2024-05-17 16:00:56 -06:00
docs/images Renamed plugin button on the device view 2021-04-20 08:26:54 +00:00
netbox_interface_sync Ready for netboxcommunity 2024-05-17 16:00:56 -06:00
.gitignore Initial commit 2021-04-20 07:26:48 +00:00
README_ru.md Update README_ru.md 2024-05-12 14:10:22 -06:00
README.md Update README.md 2024-05-12 14:09:15 -06:00
setup.py Update setup.py 2024-05-12 13:00:07 -06:00

netbox-interface-sync

Русская версия

Overview

This plugin allows you to compare and synchronize interfaces between devices and device types in NetBox. It can be useful for finding and correcting inconsistencies between interfaces.
Tested with NetBox version 4.0

Installation

If your NetBox installation uses virtualenv, activate it like this:

source /opt/netbox/venv/bin/activate

Install the plugin from PyPI:

pip install netbox-interface-sync

or clone this repository, then go to the folder with it and install the plugin:

pip install .

To enable to plugin, add the plugin's name to the PLUGINS list in configuration.py (it's usually located in /opt/netbox/netbox/netbox/) like so:

PLUGINS = [
    'netbox_interface_sync'
]

Don't forget to restart NetBox:

sudo systemctl restart netbox

Usage

To compare the interfaces, open the page of the desired device and find the "Interface sync" button: Device page Mark the required actions with the checkboxes and click "Apply". Interface comparison

Plugin settings

If you want to override the default values, configure the PLUGINS_CONFIG in your configuration.py:

PLUGINS_CONFIG = {
    'netbox_interface_sync': {
        'exclude_virtual_interfaces': True
    }
}
Setting Default value Description
exclude_virtual_interfaces True Exclude virtual interfaces (VLANs, LAGs) from comparison