Netbox Plugin software version manager of software components, including versions and installations.
netbox version >= 4.0
- WARNING: This plugin is only tested with a single NetBox version at this time.
- CSV/Bulk imports for SoftwareProduct, Version and Installation are currently broken (WIP)
To install the plugin, first using pip and install netbox-svm:
cd /opt/netbox
source venv/bin/activate
pip install netbox-svm
Next, enable the plugin in /opt/netbox/netbox/netbox/configuration.py, or if you have a /configuration/plugins.py file, the plugins.py file will take precedence.
PLUGINS = [
'netbox_svm'
]
Then you may need to perform the final step of restarting the service to ensure that the changes take effect correctly:
python netbox/manage.py migrate netbox_svm
sudo systemctl restart netbox
When using the Docker version of NetBox, first follow the netbox-docker quickstart instructions to clone the netbox-docker repo and set up the docker-compose.override.yml
.
Next, follow these instructions (based on the NetBox docker variant instructions) to install the NetBox SVM plugin:
-
Add
netbox_svm
to thePLUGINS
list inconfiguration/plugins.py
. -
Create a
plugin_requirements.txt
withnetbox-svm
as contents. -
Create a
Dockerfile-SVM
with contents:FROM netboxcommunity/netbox:v4.0 COPY ./plugin_requirements.txt / RUN /opt/netbox/venv/bin/pip install --no-warn-script-location -r /plugin_requirements.txt
-
Create a
docker-compose.override.yml
with contents:version: '3.7' services: netbox: ports: - 8000:8080 build: context: . dockerfile: Dockerfile-SVM image: netbox:svm netbox-worker: image: netbox:svm netbox-housekeeping: image: netbox:svm
Now, build the image: docker compose build --no-cache
And finally, run NetBox with the SVM plugin: docker compose up -d
To draft a release;
update the netbox_svm/__init__.py
file to reflect the new version, then from the src
directory run
$ python -m build
$ twine upload dist/*
On Github.com create a similar tag and version. These steps could be automated with a github workflow.