Skip to main content

Syncing existing interfaces with the interfaces from a device type template in NetBox 4+

Project description

netbox-interface-synchronization

Overview

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

Compatibility

Tested with NetBox versions 4.0.0 - 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 interfaces, edit the device and set the new device type and save the device. Then find the "Sync Interfaces" 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.1.7.tar.gz (19.3 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.1.7.tar.gz.

File metadata

File hashes

Hashes for netbox_interface_synchronization-4.1.7.tar.gz
Algorithm Hash digest
SHA256 9baa41da192330191728b6d46e391a71fe4974b8a218855fc5c71580cbeb0f04
MD5 5561faa6818d3087007caa8d234580e4
BLAKE2b-256 a3a9875cff16e2076cb11e35c73ce7319b6ee813114f635acea7f370ac7e5295

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netbox_interface_synchronization-4.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8d7bb2bad66ec66709ae3d9610ed8428155aaf15e98c0f5839eedf463ebe4cdb
MD5 fe0466fac24c7a6f189904ce22c16644
BLAKE2b-256 d335f596af23219b30799366879e8bd4cb6c63655d58f4ce7a71ded1ceb30d24

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