Syncing interfaces with the interfaces from device type for NetBox devices
Project description
netbox-interface-sync
Overview
This plugin allows you to compare and synchronize interfaces between devices and device types in NetBox. It can be useful for finding and correcting inconsistencies between interfaces.
Tested with NetBox versions 2.10, 2.11
Installation
If your NetBox installation uses virtualenv, activate it like this:
source /opt/netbox/venv/bin/activate
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_sync'
]
Don't forget to restart NetBox:
sudo systemctl restart netbox
Usage
To compare the interfaces, open the page of the desired device and find the "Interface sync" button: Mark the required actions with the checkboxes and click "Apply".
Plugin settings
If you want to override the default values, configure the PLUGINS_CONFIG
in your configuration.py
:
PLUGINS_CONFIG = {
'netbox_interface_sync': {
'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-sync-0.1.2.tar.gz
.
File metadata
- Download URL: netbox-interface-sync-0.1.2.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 977cbd52aa63eb039156b5c9f8a3ccb11bfac0006eb594a26028767fc23b5b29 |
|
MD5 | 06749b821e63fc7680e481c8ae9721a2 |
|
BLAKE2b-256 | 911023c302892015ddb9ebc17c98879841654b86416c268cc04ac48c4f622b11 |
File details
Details for the file netbox_interface_sync-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: netbox_interface_sync-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe360bd9c9f217c038a2df8d83af10e4765bb5bc65e75e667aca1aad872058a1 |
|
MD5 | 7b25b7fe650185f6c2fe90c6e3562e16 |
|
BLAKE2b-256 | d26634f8010b9b41e1a5061910f673b1cfa551063ffbde028c62994da93480d9 |