Find diff between the intended device configuration and actual.
Project description
NetBox Config Diff Plugin
NetBox plugin for Config Diff.
- Free software: Apache-2.0
- Documentation: https://miaow2.github.io/netbox-config-diff/
About
With this plugin you can find diff between the rendered configuration for a device to its actual configuration, retrieved from the device itself, or stored in DataSource. Read about DataSources for further details.
Device configuration renders natively in NetBox. This feature was introduced in 3.5 version. NetBox Labs blog post about it.
Plugin supports a wide list of vendors (Cisco, Juniper, Huawei, MicroTik etc.) with the help of Scrapli. Read Scrapli and scrapli-community documentations to find full list of vendors.
Compatibility
NetBox Version | Plugin Version |
---|---|
3.5 | =>0.1.0 |
Installing
For adding to a NetBox Docker setup see the general instructions for using netbox-docker with plugins.
Install with pip:
pip install netbox-config-diff
Add to local_requirements.txt
:
echo netbox-config-diff >> local_requirements.txt
Enable the plugin in /opt/netbox/netbox/netbox/configuration.py
,
or if you use netbox-docker, your /configuration/plugins.py
file,
and define credentials for devices connection:
PLUGINS = [
"netbox_config_diff",
]
PLUGINS_CONFIG = {
"netbox_config_diff": {
"USERNAME": "foo",
"PASSWORD": "bar",
},
}
Run database migrations:
python manage.py migrate
Collect static from the plugin:
python manage.py collectstatic --noinput
Restart NetBox service:
systemctl restart netbox
Usage
Read the docs about how to use plugin.
Screenshots
Compliance finished with error
Render diff between configurations
No diff
Credits
Based on the NetBox plugin tutorial:
This package was created with Cookiecutter and the netbox-community/cookiecutter-netbox-plugin
project template.
Project details
Release history Release notifications | RSS feed
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
Hashes for netbox-config-diff-1.2.1b1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a04b01d7e70a729c33ce56d7ac1e8bf555585212123e22aa49ba13ed6dee66f3 |
|
MD5 | c8314ffe40cbc0a747ee01c0b4f3bd2b |
|
BLAKE2b-256 | daf07bb74a20d1b0badc92810a716135b146736d9db991e8a794f27d4076ff54 |
Hashes for netbox_config_diff-1.2.1b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98e1c11c23fbf76f22693a8e654152771b5b0ad8ad79bd82cc202d611f7545e9 |
|
MD5 | 4b424f0027509ee1b48e1405b89de4bc |
|
BLAKE2b-256 | e68e5d67ccf33e34758525f8881f22c24140fcf33536c952dcad832e32a4dfbe |