NetBox Labs, Diode NetBox plugin
Project description
Diode NetBox Plugin
The Diode NetBox plugin is a NetBox plugin. It is a required component of the Diode ingestion service.
Diode is a NetBox ingestion service that greatly simplifies and enhances the process to add and update network data in NetBox, ensuring your network source of truth is always accurate and can be trusted to power your network automation pipelines.
More information about Diode can be found at https://netboxlabs.com/blog/introducing-diode-streamlining-data-ingestion-in-netbox/.
Compatibility
NetBox Version | Plugin Version |
---|---|
>= 3.7.2 | 0.1.0 |
Installation
Source the NetBox Python virtual environment:
cd /opt/netbox
source venv/bin/activate
Install the plugin:
pip install netboxlabs-diode-netbox-plugin
In your NetBox configuration.py
file, add netbox_diode_plugin
to the PLUGINS
list.
PLUGINS = [
"netbox_diode_plugin",
]
Restart NetBox services to load the plugin:
sudo systemctl restart netbox netbox-rq
See NetBox Documentation for details.
Configuration
Source the NetBox Python virtual environment (if not already):
cd /opt/netbox
source venv/bin/activate
Three API keys will be needed (these are random 40 character long alphanumeric strings). They can be generated and set to the appropriate environment variables with the following commands:
# API key for the Diode service to interact with NetBox
export DIODE_TO_NETBOX_API_KEY=$(head -c20 </dev/urandom|xxd -p); env | grep DIODE_TO_NETBOX_API_KEY
# API key for the NetBox service to interact with Diode
export NETBOX_TO_DIODE_API_KEY=$(head -c20 </dev/urandom|xxd -p); env | grep NETBOX_TO_DIODE_API_KEY
# API key for Diode SDKs to ingest data into Diode
export DIODE_API_KEY=$(head -c20 </dev/urandom|xxd -p); env | grep DIODE_API_KEY
Note: store these API key strings in a safe place as they will be needed later to configure the Diode server
Configure the plugin to use the previously generated API keys:
cd /opt/netbox/netbox
./manage.py configurediodeplugin
Running Tests
make docker-compose-netbox-plugin-test
License
Distributed under the PolyForm Shield License 1.0.0 License. See LICENSE.md for more information.
Required Notice
Copyright NetBox Labs, Inc.
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
File details
Details for the file netboxlabs-diode-netbox-plugin-0.2.1.tar.gz
.
File metadata
- Download URL: netboxlabs-diode-netbox-plugin-0.2.1.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 231f68b44055ca7d631b1de17b8c58aef19a9d77a2539d1756fd7c0d6ed998c4 |
|
MD5 | 5d7d30aa5669134ded3d1ded8865bb80 |
|
BLAKE2b-256 | 297c9cee122087b260a85865ecb5ebcbf7c75bfef3b4fa3a55e4e6dabdab92a5 |