Skip to main content

NetBox cesnet_services Plugin

NetBox plugin for CESNET services.

Features

Enables CESNET services in NetBox:

  • BGP connections — tracks BGP peering sessions with last-seen monitoring and status badges
  • LLDP Neighbors / LLDP Leafs — stores discovered LLDP adjacencies and leaf relationships
  • ServiceCoreTrunk — core trunk between two nodes with linked path segments
  • ServiceCoreLink — core link with topology, SAPs, L2 (QinQ encapsulation, LLDP, Flowspec), IS-IS/OSPF routing and IP addresses; belongs to one or more CoreTrunks
  • ServiceIP — IP service with SAP attachment, routed/physical device and interface attributes, VLAN encapsulation (dot1q / QinQ S-VLAN & C-VLAN as ipam.VLAN links), IPv4/IPv6 addresses, VRF (null = Global), and routing (static or BGP)

Compatibility

NetBox Version Plugin Version Notes
4.5.4 – 4.6.99 3.0.5 ServiceIP QinQ VLAN fields converted to ipam.VLAN FKs
4.5.4 – 4.6.99 3.0.4 ServiceIP VRF field (null = Global)
4.5.4 – 4.6.99 3.0.3 ServiceIP routed/physical device & interface fields
4.5.4 – 4.6.99 3.0.2 GraphQL schema fix: DatetimeFilterLookup resolves DuplicatedTypeName error
4.5.4 – 4.6.99 3.0.1 ServiceCoreTrunk, ServiceCoreLink, ServiceIP models + full API/UI/tests
4.5.4 – 4.6.99 3.0.0 NetBox 4.6 support (Django 6.0)
4.5.4+ 2.1.0 last_seen field, bulk ops, status badges
4.5.4+ 2.0.1 GraphQL fix: StrFilterLookup replaces FilterLookup[str]; requires NetBox 4.5.4
4.5.0–4.5.3 2.0.0 Breaking change: Filter system updated, NOT compatible with 4.4.x
4.4.x 1.2.8 Last version compatible with NetBox 4.4.x
4.4.0 1.2.5
4.3.1 1.2.4
4.3.1 1.2.3
4.2.8 1.2.2

Installing

For adding to a NetBox Docker setup see the general instructions for using netbox-docker with plugins.

Prerequisites

  • cesnet-service-path-plugin — required from version 3.0.1 onwards. The ServiceCoreTrunk and ServiceCoreLink models reference Segment objects from this plugin. Both plugins must be installed and listed in PLUGINS.
  • NetBox 4.5.4 – 4.6.99 (for plugin version 3.0.x)
    • Important: Plugin version 3.0.x requires NetBox 4.5.4 due to StrFilterLookup (ships with strawberry-graphql-django >= 0.79.0). Starting the plugin on NetBox 4.5.0–4.5.3 will raise an ImportError.
    • For NetBox 4.5.0–4.5.3, use plugin version 2.0.0
    • For NetBox 4.4.x, use plugin version 1.2.8 or earlier

Installation

You can install with pip:

pip install netbox-cesnet-services-plugin

or by adding to your local_requirements.txt or plugin_requirements.txt (netbox-docker):

# For NetBox 4.5.4 – 4.6.99
netbox-cesnet-services-plugin==3.0.5

# For NetBox 4.5.4 – 4.6.99 (previous releases)
# netbox-cesnet-services-plugin==3.0.4
# netbox-cesnet-services-plugin==3.0.3
# netbox-cesnet-services-plugin==3.0.2
# netbox-cesnet-services-plugin==3.0.1

# For NetBox 4.5.4 – 4.6.99 (without new service models)
# netbox-cesnet-services-plugin==3.0.0

# For NetBox 4.5.4 only
# netbox-cesnet-services-plugin==2.1.0

# For NetBox 4.5.0–4.5.3
# netbox-cesnet-services-plugin==2.0.0

# For NetBox 4.4.x (use 1.2.8 or earlier)
# netbox-cesnet-services-plugin==1.2.8

Configuration

Enable the plugin in /opt/netbox/netbox/netbox/configuration.py, or if you use netbox-docker, your /configuration/plugins.py file.

You can optionally set device platforms for filtering choices in LLDPNeighbor form:

PLUGINS = [
    'cesnet_service_path_plugin',   # required by netbox_cesnet_services_plugin >= 3.0.1
    'netbox_cesnet_services_plugin',
]

PLUGINS_CONFIG = {
    "netbox_cesnet_services_plugin": {
        "platforms" : ["ios", "iosxe", "iosxr", "nxos", "nxos_ssh"],
        "bgp_last_seen_warning_days": 2,   # days until last_seen badge turns orange (default: 2)
        "bgp_last_seen_danger_days": 5,    # days until last_seen badge turns red (default: 5)
    },
}

Credits

Based on the NetBox plugin tutorial:

This package was created with Cookiecutter and the netbox-community/cookiecutter-netbox-plugin project template.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netbox_cesnet_services_plugin-3.0.5.tar.gz (48.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netbox_cesnet_services_plugin-3.0.5-py3-none-any.whl (88.6 kB view details)

Uploaded Python 3

File details

Details for the file netbox_cesnet_services_plugin-3.0.5.tar.gz.

File metadata

File hashes

Hashes for netbox_cesnet_services_plugin-3.0.5.tar.gz
Algorithm Hash digest
SHA256 4c0314b81131345d54b64a75a98f1c3125c4157e2123290140cbd7e219a475e9
MD5 43514145e71bf16bda1ed60772908ea0
BLAKE2b-256 6c2c5e32549c0c85715e0557a615ef0e2695ff37fa68c92caf801c4fa6a5a954

See more details on using hashes here.

File details

Details for the file netbox_cesnet_services_plugin-3.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for netbox_cesnet_services_plugin-3.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e63b5e2d972dba8784c061d4dde7778201bf5ffd8c269978dec92e774f133723
MD5 1ab905bc349c2c7b04fb2270ddbc149c
BLAKE2b-256 6506f01a6e0962b1cd4002bac2bea15686f74f5622a7c2265b54361b20f33631

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page