Skip to main content

A Netbox plugin that supports Virtual Circuit management

Project description

NetBox Virtual Circuit Plugin

A plugin for NetBox that supports Virtual Circuit management.

Definitions

A Virtual Circuit is a circuit created by routing two or more VLANs together.

Each Virtual Circuit is identified by a name, a numeric ID (0-32767), along with a context. Each Virtual Circuit must be assigned one of the following operational statuses:

  • Pending Configuration
  • Configured
  • Pending Deletion
  • Configuration Error

When a VLAN is assigned to a Virtual Circuit, it can not exist in another Virtual Circuit without first being removed.

Installing

Since the plugin is published on PyPI, simply issue:

pip install netbox-virtual-circuit-plugin

to download and install it.

To enable to plugin, add the plugin's name to the PLUGINS list in configuration.py like so:

PLUGINS = ['netbox_virtual_circuit_plugin'] # Note that the name here use underscore, not hyphen.

Don't forget to restart NetBox to load the new plugin.

You might also have to manually run the database migrations for Netbox to create the appropriate tables for virtual circuits.

python3 manage.py migrate

For more information about installing plugins, refer to NetBox's documentation.

Compatibility

Below is a table describing the compatibility of various NetBox versions with NetBox Virtual Circuit Plugin versions.

Netbox 2.8 NetBox 2.9 Netbox 2.10 Netbox 2.11
1.0.x x
1.1.x to 1.5.x x
1.6.x and above x
1.7.x and above x

Using

Once the plugin is installed correctly as instructed above, one can find the Virtual Circuit section under Plugins navigation tab via NetBox UI that is ready to use with correct admin permission.

As for REST API use cases, the 2 group endpoints are exposed at:

  • /api/plugins/virtual-circuit/virtual-circuits
  • /api/plugins/virtual-circuit/vlans

While the former one is for creating/retrieving/modifying/deleting Virtual Circuits, the later one is for assigning and managing Virtual-Circuit-to-VLAN connections. For more information, refer to /api/docs as it also conforms to Swagger Specification for hosted visual documentations.

Developing

Plugins are essentially self-contained Django apps which integrate with NetBox to provide custom functionality. For more information, see NetBox documentation.

To help setup the development environment, it comes with a CLI helper based on Makefile, including the following commands:

changelog        Generate a changelog file from GitHub Issue Tracker
clean            Clean up build artifacts
deploy           Run a local development deployment of the plugin with NetBox
docker           Build a local docker image
github-tag       Create and push a tag with the current version
help             Print usage information
migrate          Run makemigrations in Django and produce a migration file locally
release          Package and distribute the current release to PyPI
test             Run unit tests
version          Print the version

That said, one can simply build and run a local development image of the plugin with NetBox with a single line:

make build && make deploy

The application will be available after a few minutes at http://0.0.0.0:8000/. The default credentials are:

  • Username: admin
  • Password: admin
  • API Token: 0123456789abcdef0123456789abcdef01234567

Below are several screenshots of the UI:

Navigation view

Add a Virtual Circuit

List all Virtual Circuits

Assign a VLAN to a Virtual Circuit

Virtual Circuit Single View (2 VLANs assigned)

List of all connections

Contributing

If you experience a bug, would like to ask a question, or request a feature, open a new issue and provide as much context as possible. All contributions, questions, and feedback are welcomed and appreciated.

License

NetBox Virtual Circuit Plugin is licensed under GPLv3. See LICENSE for more info.

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-virtual-circuit-plugin-1.7.0.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

File details

Details for the file netbox-virtual-circuit-plugin-1.7.0.tar.gz.

File metadata

  • Download URL: netbox-virtual-circuit-plugin-1.7.0.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.7.0

File hashes

Hashes for netbox-virtual-circuit-plugin-1.7.0.tar.gz
Algorithm Hash digest
SHA256 79457c094312fb6183f5c01447da179e51e832590b1566dfba681207fc112f67
MD5 8b2297818c1fda2e4f821851e5ea003d
BLAKE2b-256 baf72561a478d0f4bdf735439c9e4f15b39408ee6ba819c9e1967c1d225ca65a

See more details on using hashes here.

Provenance

File details

Details for the file netbox_virtual_circuit_plugin-1.7.0-py3-none-any.whl.

File metadata

  • Download URL: netbox_virtual_circuit_plugin-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 38.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.7.0

File hashes

Hashes for netbox_virtual_circuit_plugin-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 53436fd1f125687fda0a39511cf1b7bfd829bb5bf12c072e6a7cb0656084a147
MD5 3c83b8d6de91c9899187e1539d5fbac4
BLAKE2b-256 65f25f7e7d46e5ba65fad1e7212ef3bee08a34f180de4e41b76ffc87bdffc284

See more details on using hashes here.

Provenance

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