Skip to main content

No project description provided

Project description

Netbox Software Plugin

A plugin designed to faciliate the storage of site, circuit, device type and device specific software within NetBox

Features

  • Store software against the following NetBox models:

    • Circuits
    • Devices
    • Device Types
    • Sites
  • Upload software to your NetBox media/ folder or other Django supported storage method e.g. S3

  • Supports a wide array of common file types (bmp, gif, jpeg, jpg, png, pdf, txt, doc, docx, xls, xlsx, xlsm)

  • Store links to external URL's to save duplication of remote software

Compatibility

NetBox Version Plugin Version
3.2+ 0.2.4

Installation

A working installation of Netbox 3.2+ is required. 3.4+ is recommended.

Package Installation from PyPi

Activate your virtual env and install via pip:

$ source /opt/netbox/venv/bin/activate
(venv) $ pip install netbox-software

To ensure the Netbox software plugin is automatically re-installed during future upgrades, add the package to your local_requirements.txt :

# echo netbox-software >> local_requirements.txt

Enable the Plugin

In the Netbox configuration.py configuration file add or update the PLUGINS parameter, adding netbox_software:

PLUGINS = [
    'netbox_software',
]

(Optional) Add or update a PLUGINS_CONFIG parameter in configuration.py to configure plugin settings. Options shown below are the configured defaults:

PLUGINS_CONFIG = {
     'netbox_software': {
         # Enable the management of device specific software (True/False)
         'enable_device_software': True,
         # Location to inject the software widget in the device view (left/right
         'device_software_location': 'left',
     }
}

(Optional) Add or replace the built-in software Type choices via Netbox's FIELD_CHOICES configuration parameter:

The colours that can be used are listed in the Netbox CSS netbox-light.css:

(https://github.com/netbox-community/netbox/blob/develop/netbox/project-static/dist/netbox-light.css)

The bg- must not be specified in the configuration. Here are a few examples from the CSS:

  • bg-indigo = #6610f2 --> 'indigo'
  • bg-blue = #0d6efd --> 'blue'
  • bg-purple = #6f42c1 --> 'purple'
  • bg-pink = #d63384 --> 'pink'
  • bg-red = #dc3545 --> 'red'
  • bg-orange = #fd7e14 --> 'orange'
  • bg-yellow = #ffc107 --> 'yellow'
  • bg-green = #198754 --> 'green'
  • bg-teal = #20c997 --> 'teal'
  • bg-cyan = #0dcaf0 --> 'cyan'
  • bg-gray = #adb5bd --> 'gray'
  • bg-black = #000 --> 'black'
  • bg-white --> 'white'
FIELD_CHOICES = {
    'netbox_software.DocTypeChoices.device+': (
        ('mysoftware', 'My Custom Device software Type', 'green'),
    )
}

Apply Database Migrations

Apply database migrations with Netbox manage.py:

(venv) $ python manage.py migrate

Restart Netbox

Restart the Netbox service to apply changes:

sudo systemctl restart netbox

Re-index Netbox search index (Upgrade to 3.4 only)

If you are upgrading from Netbox 3.2 or above to Netbox 3.4, any previously inserted software may not show up in the new search feature. To resolve this, re-index the plugin:

(venv) $ python manage.py reindex netbox_software

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_software-0.2.5.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

netbox_software-0.2.5-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

Details for the file netbox_software-0.2.5.tar.gz.

File metadata

  • Download URL: netbox_software-0.2.5.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-94-generic

File hashes

Hashes for netbox_software-0.2.5.tar.gz
Algorithm Hash digest
SHA256 e59304c3cad55bbd13d2ba9ec88b4041acfc618d863af6ab19c935edaae07e2d
MD5 1b4c7a32215bef0330a9b0e471f6a819
BLAKE2b-256 536bfe8e4d55e2016b0ff8d00fa4afb26c071f43ba4d69007fa98e04f45cbd77

See more details on using hashes here.

File details

Details for the file netbox_software-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: netbox_software-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 28.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-94-generic

File hashes

Hashes for netbox_software-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 354f4eac3931186947981a2f2e0e1b7c5a109a919bba8e010ace69d996e2c41c
MD5 bdf2bcbad9ab23829ff77b76ede0f3c5
BLAKE2b-256 3ba17edb719984c40bd68f5b141907f61168601374f5db51601d6ae881687080

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