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.8.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

netbox_contract-1.0.8-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: netbox_contract-1.0.8.tar.gz
  • Upload date:
  • Size: 13.8 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.8.tar.gz
Algorithm Hash digest
SHA256 6ce815002e11872fe060133515b509fdea0e66b085f2bc518a17b34bf09b91ce
MD5 fe9ce6ff87fc565925cf2ca4af16ca11
BLAKE2b-256 9a99c5710137f45e6aa5515ff3a48e5f46e786b8c89ea26379b691919a59adb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netbox_contract-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 4bd7d179fbb9f61c44b8175eb6fae3e255bfc1f104e8da374e9e186341238ad3
MD5 f9a5e8ee296add60083664b9d58c27cf
BLAKE2b-256 09fa3148129d4b68a368f0821008512f5f82484353d6a6acb35f7ce245605f7f

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