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
Built Distribution
File details
Details for the file netbox_interface_synchronization-4.1.4.tar.gz
.
File metadata
- Download URL: netbox_interface_synchronization-4.1.4.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 138729f3609beb1e5e15bb01ccd8edf3397016649ee2269f5ec2bf78b836fa0e |
|
MD5 | 18befc79cbcbe9829387122ed8570df9 |
|
BLAKE2b-256 | 05a369c30064cc99468989a1b502a8b58457c6e0f0edb08dbe59f7288b47f0c7 |
File details
Details for the file netbox_interface_synchronization-4.1.4-py3-none-any.whl
.
File metadata
- Download URL: netbox_interface_synchronization-4.1.4-py3-none-any.whl
- Upload date:
- Size: 21.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9caa06915ecce1bf14116879260f6df266f6b4db37c893e3d387ecd9526f06c |
|
MD5 | 1f04641a620760ce72d96f909aefc852 |
|
BLAKE2b-256 | 6773de2aefec8e998597a6f1b954cef09d35a300b7706645adf748138dc4d0a3 |