Skip to main content

Contract management plugin for Netbox

Project description

Contract pluggin

Overview

The pluggin adds contracts and invoices model to Netbox.
It allows to register contract with objects.
Add invoices to contracts.

Installation

Activate venv

To ensure our plugin is accessible to the NetBox installation, we first need to activate the Python virtual environment that was created when we installed NetBox. To do this, determine the virtual environment's path (this will be /opt/netbox/venv/ if you use the documentation's defaults) and activate it:

$ source /opt/netbox/venv/bin/activate

Install the package

$ python3 -m pip install netbox_contract

Configure NetBox

Finally, we need to configure NetBox to enable our new plugin. Over in the NetBox installation path, open netbox/netbox/configuration.py and look for the PLUGINS parameter; this should be an empty list. (If it's not yet defined, go ahead and create it.) Add the name of our plugin to this list:

# configuration.py
PLUGINS = [
    'netbox_contract',
]

Customize the internal partie field.
Internal partie reference the legal entity of your organization that is a partie to the contract.

# configuration.py
FIELD_CHOICES = {
    'netbox_contract.Contract.internal_partie': (
        ('Nagravision SARL', 'Nagravision SARL', 'green'),
        ('Nagra USA', 'Nagra USA', 'green'),
        ('Nagra India', 'Nagra India', 'green'),
    )
}

Run database migrations

(venv) $ cd /opt/netbox/netbox/
(venv) $ python3 manage.py migrate

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_contract-1.0.7.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

netbox_contract-1.0.7-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

Details for the file netbox_contract-1.0.7.tar.gz.

File metadata

  • Download URL: netbox_contract-1.0.7.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for netbox_contract-1.0.7.tar.gz
Algorithm Hash digest
SHA256 3378cf5650f855f3c3a4a3214121218eacfde52b908f2f74b4d6e7ded7f22e39
MD5 7f5d6d8570982646e62fb7cb2b36ca78
BLAKE2b-256 106fb5490926edb9e971f89823e12b9b0ddae01c8078953f82141513fa7c26da

See more details on using hashes here.

File details

Details for the file netbox_contract-1.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for netbox_contract-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 63026a7866ddbd2e5cb5d48a8d76d986ff23afdabadd4e432a15b70a155a22bf
MD5 1bc35be667448b9ae8c9d6f3d2681dc5
BLAKE2b-256 e12c64ef28430dbd2f7d2b9f29a0f7dd7c8a4f8b30865da96fc18d94e18fd05e

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