Skip to main content

A Nautobot plugin for working with cables

Project description

Nautobot Cable Utilities

Utilities for working with cables in Nautobot. Enables you to change cable endpoints and work with cable templates.

Please note that this plugin uses internal Nautobot components, which is explicitly discouraged by the documentation. We promise to keep the plugin up to date, but the latest version might break on unsupported Nautobot version. Your mileage may vary.

Installation

The plugin can be found on pypi. You should therefore be able to install it using pip:

pip install nautobot-cable-utils

Make sure to use the same version of pip that manages Nautobot, so if you’ve set up a virtual environment, you will have to use <venv>/bin/pip instead.

After that, you should be able to install the plugin as described in the Nautobot documentation. No change to PLUGINS_CONFIG is necessary.

Usage

This plugin has two main purposes: reconnecting cables and working with cable templates.

Automatic Router

This plugin contains an automatic router which supports automatic cable creation between two devices. It uses already pre-connected patch panels in racks to find a way between two racks. Therefore, you can click on Auto-Link on an interface to start into the auto-router.

Auto Link Button

Afterwards you can select your destination and you will see a proposed cable trace and a list of cables which will be created with Planned status afterwards.

Auto Router Form

Principle Explanation

We build a graph, where our verticies are all racks in your Netbox instance and edges are rear-port cables in rack-mounted patch panels. Afterwards, we path-find our way from source rack to destination rack and build a list of needed cables. This list gets visualized and displayed in the confirmation view and gets created with Planned status afterwards.

Reconnecting cables

If you want to reconnect a cable, just go to its detail view. There should be a button called Reconnect that will send you to a form in which you can change cable endpoints.

Reconnect button

The form that it will send you to is fairly similar to the cable creation view, but it will not allow you to edit the cable’s properties.

Reconnect form

Working with cable templates

Cable templates can be found under Plugins, where you will be able to add them one by one or import them via CSV (both buttons next to Cable templates). They have all the same properties as regular cables, plus a cable number.

Cable template form

Cable templates can be used in any planned cable. If you navigate to that cable’s detail view, an additional button named Commission will appear.

Commission button

If you click on it, you will be able to select the cable template you want to use for it (by cable number). The cable takes on the properties of the template (length, color, etc.) and the template will not be selectable again for future cables.

If a cable template should be removed or changed the function Undo Commission can be used. On a previously commissioned cable which uses a valid template this button will appear

Undo Commission button

By pressing this button the commissioned cable will be removed but the cable trace will be left unaffected. A planned cable will take place which can be commissioned with another cable template if wanted.

Bulk Commission on Devices

To save time a bulk commission function can be used directly out of a selected device. If a device has planned cables an additional button Device Commission will appear:

Device Commission button

By pressing this button all cables will can be commissioned in a loop.

Device Commission form

The form shows you some important information while commissioning cables. On the top the amount of planned cables on the current device is shown. On the left hand side the connection details and on the right hand side the input field for a cable template are displayed.

By pressing the button Create the current cable will be commissioned with the selected (cable)template. By using the button Skip the current cable will be left out and the next planned cable is displayed. By pressing Cancel the bulk commission will stop and you will be redirected to the previously selected device. After one cable is created or skipped the next planned cable will be displayed.

Important Note! This process is session-dependent. If the form is unexpectly closed or left without pressing the Cancel button the current process of the form is paused and will be continued at the same point if re-opened until the current session has expired or another device is selected. To review skipped cables the form must be exited by pressing Cancel and freshly opened.


Have fun!

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

nautobot_cable_utils-1.0.1.tar.gz (130.6 kB view details)

Uploaded Source

Built Distribution

nautobot_cable_utils-1.0.1-py3-none-any.whl (146.4 kB view details)

Uploaded Python 3

File details

Details for the file nautobot_cable_utils-1.0.1.tar.gz.

File metadata

  • Download URL: nautobot_cable_utils-1.0.1.tar.gz
  • Upload date:
  • Size: 130.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for nautobot_cable_utils-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f3b95d62e358e2d6715dec67ee6d6c072cc28b026feb6b83d18ab2199b2a0595
MD5 834b95fe5ff6da6d2bada90e8cbf0cca
BLAKE2b-256 fc8b999a5534b8a00bc0e8774dad3700b4e5cec319684b3d29ee324e128aff0c

See more details on using hashes here.

File details

Details for the file nautobot_cable_utils-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nautobot_cable_utils-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ade43af0369ff14ff223f02c6aa5139b121580bd9ee57ee40b143b8ad64efdcb
MD5 8471deafeb28d8a6939f8c3ec5e02cd4
BLAKE2b-256 f6cb8f17fd1bb0c1422d9abfe31358d140c7e8634f95c6631c4229e968954c79

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