Skip to main content

This plugin allows you to compare and synchronize component names and types between devices and device types in NetBox 4+

Project description

netbox-interface-synchronization

Overview

MAJOR UPDATE

Thanks to a massive contribution from bastianleicht the Interface Synchronization plugin has become the Component Synchronization plugin.

This plugin allows you to compare and synchronize component names and types between devices and device types in NetBox 4+. It can be useful for finding and correcting inconsistencies between components when changing the device type.

Compatibility

Tested with NetBox versions 4.3.1 This plugin is not compatible with Netbox 2 or 3

Installation

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

source /opt/netbox/venv/bin/activate

Install the plugin from PyPI:

pip install netbox-interface-synchronization

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_synchronization'
]

Don't forget to restart NetBox:

sudo systemctl restart netbox

Usage

To sync the components, edit the device and set the new device type and save the device. Then find the "Sync Components" button at the bottom of the page: 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_synchronization': {
        'exclude_virtual_interfaces': True
    }
}
Setting Default value Description
exclude_virtual_interfaces True Exclude virtual interfaces (VLANs, LAGs) from comparison

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netbox_interface_synchronization-4.5.0.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file netbox_interface_synchronization-4.5.0.tar.gz.

File metadata

File hashes

Hashes for netbox_interface_synchronization-4.5.0.tar.gz
Algorithm Hash digest
SHA256 26512d6de4a3412d20ccdb8a8707265b594bc5094b6a496cead9fc9734438ad0
MD5 c38459028ff06374103dd6346d85cf64
BLAKE2b-256 b67a81ab348f963f1f4b936c31da54ce88c947f0a779032e0c12b7f15dc9a1a4

See more details on using hashes here.

File details

Details for the file netbox_interface_synchronization-4.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for netbox_interface_synchronization-4.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc5e5b89068000702c849fed7e97e4a15bae90397c79b3e55f87df734ba04675
MD5 3ead6b0a8c666fa07cb74a7aa7bd2d40
BLAKE2b-256 7cab12e455e64cc610a9ac04081d566bae21506b35e6a2829b30b766fe600683

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page