Skip to main content

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

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.1.4. 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

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.4.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for netbox_interface_synchronization-4.1.4.tar.gz
Algorithm Hash digest
SHA256 138729f3609beb1e5e15bb01ccd8edf3397016649ee2269f5ec2bf78b836fa0e
MD5 18befc79cbcbe9829387122ed8570df9
BLAKE2b-256 05a369c30064cc99468989a1b502a8b58457c6e0f0edb08dbe59f7288b47f0c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netbox_interface_synchronization-4.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b9caa06915ecce1bf14116879260f6df266f6b4db37c893e3d387ecd9526f06c
MD5 1f04641a620760ce72d96f909aefc852
BLAKE2b-256 6773de2aefec8e998597a6f1b954cef09d35a300b7706645adf748138dc4d0a3

See more details on using hashes here.

Supported by

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