Skip to main content

Manage contracts and services in NetBox.

Project description

netbox-plugin-itsm

A NetBox plugin for managing IT service management (ITSM) data — products, contracts, and contract services — and linking them to objects within NetBox such as devices, IP addresses, circuits, and virtual machines.

Features

  • Product catalogue — define products and organise them into product groups
  • Contract management — track contracts per tenant with active/planned/terminated status
  • Contract services — link products to contracts with optional quantity
  • Contract service items — attach any NetBox object (device, IP, circuit, VM, etc.) to a contract service
  • Full NetBox integration: change logging, tagging, custom fields, and global search

Requirements

  • NetBox 4.0 or later (tested up to 4.6)

Installation

Add the plugin to the NetBox Python virtual environment:

source /opt/netbox/venv/bin/activate
pip install netbox-plugin-itsm

Or install in development mode from source:

source /opt/netbox/venv/bin/activate
pip install setuptools
python setup.py develop

Enable the plugin in /opt/netbox/netbox/netbox/configuration.py:

PLUGINS = [
    'netbox_itsm',
]

Run migrations:

python /opt/netbox/netbox/manage.py migrate

Collect static assets:

python /opt/netbox/netbox/manage.py collectstatic

Restart the NetBox service.

Development

Setup

source /opt/netbox/venv/bin/activate
pip install setuptools
python setup.py develop
python /opt/netbox/netbox/manage.py migrate

Useful commands

# Open the NetBox shell
python /opt/netbox/netbox/manage.py nbshell

# Run a local dev server
python /opt/netbox/netbox/manage.py runserver 127.0.0.1:8001

Updating data models

After changing a model, generate and apply a migration:

python /opt/netbox/netbox/manage.py makemigrations netbox_itsm
python /opt/netbox/netbox/manage.py migrate

Testing

Install test dependencies (only Django is required — NetBox itself is not needed):

pip install pytest pytest-django django

Run the test suite:

pytest

Tests use module-level stubs for all NetBox and third-party dependencies, so they run in any environment with Django installed. No database or NetBox installation required.

License

AGPL-3.0-or-later — see LICENSE for details.

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_plugin_itsm-0.2.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netbox_plugin_itsm-0.2-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

Details for the file netbox_plugin_itsm-0.2.tar.gz.

File metadata

  • Download URL: netbox_plugin_itsm-0.2.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for netbox_plugin_itsm-0.2.tar.gz
Algorithm Hash digest
SHA256 b1a474fb799bc88a5606b291902baf0e456e4484e2a09446836853db881f8776
MD5 01059e752b5435aeb9e4616df1dfdc01
BLAKE2b-256 8032ab806b41967d482618c3a612cea455fe381eee7e4d7abc69670092418fff

See more details on using hashes here.

File details

Details for the file netbox_plugin_itsm-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for netbox_plugin_itsm-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c0e179e82d5358a5ddc28557891d3255e22f1ef003bf37b52d6653e5eefb4009
MD5 d80c09d0b116f1a0f5b57e0c7de7336b
BLAKE2b-256 a29e5dc854538a12e8f347a722cb58b6a064b422545572673894a3ef5703ca36

See more details on using hashes here.

Supported by

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