Skip to content

Commit bd85737

Browse files
authored
Merge pull request #4 from netboxlabs/rboucher-me-patch-1
Update README.md
2 parents 1ba3a4f + 81af8a0 commit bd85737

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

README.md

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# Diode NetBox Plugin
22

3-
Diode NetBox plugin is a [NetBox](https://netboxlabs.com/oss/netbox/) plugin for the Diode ingestion service.
3+
The Diode NetBox plugin is a [NetBox](https://netboxlabs.com/oss/netbox/) plugin and a required component of the [Diode](https://github.com/netboxlabs/diode) ingestion service.
44

5-
Diode is a new NetBox ingestion service that greatly simplifies and enhances the
6-
process to add and update network data
5+
Diode is a NetBox ingestion service that greatly simplifies and enhances the process to add and update network data
76
in NetBox, ensuring your network source of truth is always accurate and can be trusted to power your network automation
87
pipelines.
98

@@ -34,17 +33,35 @@ See [NetBox Documentation](https://netboxlabs.com/docs/netbox/en/stable/plugins/
3433

3534
## Configuration
3635

37-
Set following environment variables for your NetBox:
36+
Source the NetBox Python virtual environment:
3837

39-
* `DIODE_TO_NETBOX_API_KEY=<API_KEY_1>` - API key for the Diode service to interact with NetBox
40-
* `NETBOX_TO_DIODE_API_KEY=<API_KEY_2>` - API key for the NetBox service to interact with Diode
41-
* `INGESTION_API_KEY=<API_KEY_3>` - API key for Diode SDKs to ingest data into Diode
38+
```shell
39+
cd /opt/netbox
40+
source venv/bin/activate
41+
```
42+
43+
Generate 3 API keys as random 40 character long alphanumeric strings:
44+
45+
```shell
46+
echo "export DIODE_TO_NETBOX_API_KEY=$(head -c20 </dev/urandom|xxd -p)"
47+
echo "export NETBOX_TO_DIODE_API_KEY=$(head -c20 </dev/urandom|xxd -p)"
48+
echo "export INGESTION_API_KEY=$(head -c20 </dev/urandom|xxd -p)"
49+
```
50+
51+
**Note:** store these API key strings in a safe place as they will be needed later to configure the Diode server
52+
53+
Set the environment variables based on the random generated strings:
4254

43-
Note: values of these environment variables should be 40 character long alphanumeric strings.
55+
```shell
56+
export DIODE_TO_NETBOX_API_KEY={random_string_1} # API key for the Diode service to interact with NetBox
57+
export NETBOX_TO_DIODE_API_KEY={random_string_2} # API key for the NetBox service to interact with Diode
58+
export INGESTION_API_KEY={random_string_3} # API key for Diode SDKs to ingest data into Diode
59+
```
4460

45-
Configure the plugin by running the following command in your NetBox instance:
61+
Configure the plugin:
4662

4763
```shell
64+
cd /opt/netbox/netbox
4865
./manage.py configurediodeplugin
4966
```
5067

0 commit comments

Comments
 (0)