From b6c53fa09eb1a6fa1440954606cc3699cf0c3cb5 Mon Sep 17 00:00:00 2001 From: hakasapl Date: Tue, 5 Jul 2022 12:15:59 -0400 Subject: [PATCH] added netbox topology plugin --- Dockerfile-Plugins | 4 ++++ configuration/configuration.py | 2 +- plugin_requirements.txt | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 Dockerfile-Plugins create mode 100644 plugin_requirements.txt diff --git a/Dockerfile-Plugins b/Dockerfile-Plugins new file mode 100644 index 0000000..2c984be --- /dev/null +++ b/Dockerfile-Plugins @@ -0,0 +1,4 @@ +FROM netboxcommunity/netbox:latest + +COPY ./plugin_requirements.txt / +RUN /opt/netbox/venv/bin/pip install --no-warn-script-location -r /plugin_requirements.txt \ No newline at end of file diff --git a/configuration/configuration.py b/configuration/configuration.py index 1db6051..64ef4a6 100644 --- a/configuration/configuration.py +++ b/configuration/configuration.py @@ -192,7 +192,7 @@ NAPALM_ARGS = {} PAGINATE_COUNT = int(environ.get('PAGINATE_COUNT', 50)) # Enable installed plugins. Add the name of each plugin to the list. -PLUGINS = [] +PLUGINS = [ "netbox_topology_views" ] # Plugins configuration settings. These settings are used by various plugins that the user may have installed. # Each key in the dictionary is the name of an installed plugin and its value is a dictionary of settings. diff --git a/plugin_requirements.txt b/plugin_requirements.txt new file mode 100644 index 0000000..6de4f5d --- /dev/null +++ b/plugin_requirements.txt @@ -0,0 +1 @@ +netbox-topology-views \ No newline at end of file