Skip to main content

NetBox SVM

Netbox Plugin software version manager of software components, including versions and installations.

PyPi Stars Badge Forks Badge Pull Requests Badge Issues Badge GitHub contributors License Badge

Install Require

netbox version >= 4.0

Known Issues

  • 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)

Installation Guide

In mono service:

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

In docker env

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:

  1. Add netbox_svm to the PLUGINS list in configuration/plugins.py.

  2. Create a plugin_requirements.txt with netbox-svm as contents.

  3. 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
    
  4. 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

Releasing Guide

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.

Metadata

Release files for netbox-svm 1.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for netbox-svm 1.1.7
File Size Uploaded
netbox_svm-1.1.7.tar.gz 20.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for netbox-svm 1.1.7
File Interpreter ABI Platform
netbox_svm-1.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 51.9 kB

Release files / netbox_svm-1.1.7.tar.gz

Download URL netbox_svm-1.1.7.tar.gz
Size 20.2 kB
Tags Source
SHA-256 checksum
How to use checksums
63f4fd2bf06073dde7b739309aaa1bf79a8dc4095dc2dfad4df732693f63c028
BLAKE2b-256 checksum
How to use checksums
595e5b6edfaaa10109843bbeae94841d077e3c3e55933869e40bd03619533c14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.12

Release files / netbox_svm-1.1.7-py3-none-any.whl

Download URL netbox_svm-1.1.7-py3-none-any.whl
Size 31.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ccd4779c6d880f967f0bcc4be4184436a3d0c9f26ba40ec1afe099b4c2cb722
BLAKE2b-256 checksum
How to use checksums
872019fb078275c3f36309eec7b08dcf678465e6571e28fd91cdfcf6cd404678
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.1.7 This release

2 release files

1.1.6

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page