Skip to main content

Software Version Management Netbox Plugin fork from netbox-slm 1.7.0

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netbox_svm-1.1.0.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

netbox_svm-1.1.0-py3-none-any.whl (40.7 kB view details)

Uploaded Python 3

File details

Details for the file netbox_svm-1.1.0.tar.gz.

File metadata

  • Download URL: netbox_svm-1.1.0.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for netbox_svm-1.1.0.tar.gz
Algorithm Hash digest
SHA256 28c82a5a2bd833484caca93685acab3e471eb29375c6c86b046c563c4cc5c278
MD5 68c389b6590625bedee9a44c8fe23e9f
BLAKE2b-256 f7c528434f7a1dc4481952237364d3e4ccfd6979ba847ed6047a6e227f0cd59d

See more details on using hashes here.

File details

Details for the file netbox_svm-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: netbox_svm-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 40.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for netbox_svm-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 394bfa8f94595a2c31158f8a03c4fd08363abff98b1b9d78d0231ee88c5be43c
MD5 236f8ea360a579ab1e80dfa49456ee07
BLAKE2b-256 68d02701639c24e0286905b60175a61090fa4b239dde5642e96652325a1de7fb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page