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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for netbox_interface_synchronization-4.0.3.tar.gz
Algorithm Hash digest
SHA256 07326e3110bc4ab5b83b2bad2735ae27be08ba9c94653d309e5dc8d0fa17caba
MD5 0ffd9d6f7d93c1b3b814267ee724f14f
BLAKE2b-256 60c2315ff13c7d965b7b14a392703183f6a00c80bfc61e1fd8c0f2c0daf625df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netbox_interface_synchronization-4.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1a46614b572ab2ce5c2fa11968d61ea75587692f0ec691b3c090b549b3f0405a
MD5 4c1ceb28da1cc3ea0363297e2d8bb3c0
BLAKE2b-256 07b509c9ada60603f44b2ee89fe67516e5eb98550072d9016f9e714fa86b4d4d

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