Skip to main content

Syncing interfaces with the interfaces from device type for NetBox devices

Project description

netbox-interface-sync

Русская версия

Overview

This plugin allows you to compare and synchronize interfaces between devices and device types in NetBox. It can be useful for finding and correcting inconsistencies between interfaces.
Tested with NetBox versions 2.10, 2.11

Installation

If your NetBox installation uses virtualenv, activate it like this:

source /opt/netbox/venv/bin/activate

Install the plugin from PyPI:

pip install netbox-interface-sync

or clone this repository, then go to the folder with it and install the plugin:

pip install .

To enable to plugin, add the plugin's name to the PLUGINS list in configuration.py (it's usually located in /opt/netbox/netbox/netbox/) like so:

PLUGINS = [
    'netbox_interface_sync'
]

Don't forget to restart NetBox:

sudo systemctl restart netbox

Usage

To compare the interfaces, open the page of the desired device and find the "Interface sync" button: Device page Mark the required actions with the checkboxes and click "Apply". Interface comparison

Plugin settings

If you want to override the default values, configure the PLUGINS_CONFIG in your configuration.py:

PLUGINS_CONFIG = {
    'netbox_interface_sync': {
        'exclude_virtual_interfaces': True
    }
}
Setting Default value Description
exclude_virtual_interfaces True Exclude virtual interfaces (VLANs, LAGs) from comparison

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-interface-sync-0.1.3.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

netbox_interface_sync-0.1.3-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file netbox-interface-sync-0.1.3.tar.gz.

File metadata

  • Download URL: netbox-interface-sync-0.1.3.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6

File hashes

Hashes for netbox-interface-sync-0.1.3.tar.gz
Algorithm Hash digest
SHA256 45a04a1bee3be7d410464b9a6f0ab6943ed6399712cac752d3cca743852cfc4d
MD5 785bf36b9e20daeafeffb94091aea145
BLAKE2b-256 4f7fa510b1673ac24e34ee4499b0ea8318d6d71ea71e36445356256b3f06c013

See more details on using hashes here.

File details

Details for the file netbox_interface_sync-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: netbox_interface_sync-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6

File hashes

Hashes for netbox_interface_sync-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e7deed78ac097ce07ba64375d22006c7d6b678043ec215e5620fbefbe178185b
MD5 b7d0aba38a16b9940466b55df1d2e90a
BLAKE2b-256 cf0b078a423573c1882aad9deff6f1ff9ef3f52d24b4e97349e3389d412eae3f

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