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
  • ServiceNNI — network-to-network interconnect: trunk from one CESNET node (port or LAG) to a partner network; the tenant (partner) is required
  • ServiceCoreLink — L3 link between two core routers: its sides A and B are ServiceEndpoints; LLDP, Flowspec, IS-IS/OSPF routing; belongs to one or more CoreTrunks
  • ServiceDCILink — link between two DCI switches: its sides A and B are untagged ServiceEndpoints on a port or LAG, without addresses (unnumbered, ip unnumbered loopback0)
  • ServiceIP — IP service (Static, BGP or BGP indirect) with VRF (null = Global), customer prefixes and BGP peer AS; its attachments are ServiceEndpoints (Static: exactly one, BGP: 1..N, mixed connection types). A BGP indirect service (IP PNI) has no endpoints: it rides on a ServicePNI (pni), takes its VRF, and its prefixes go into the PNI's prefix-set. Routing prefixes of ServiceIP and ServicePNI carry their prefix-set match (eq / ge / le, none = exact; API routing_prefix_matches)
  • ServiceL2VPN — L2VPN service (VPWS, EVPN-VPWS, VPLS, EVPN-ELAN) on a NetBox vpn.L2VPN, which carries the type and the identifier (PW-ID or EVI, unique per pseudowire / EVPN family); MTU, xconnect / bridge group and p2p / bridge-domain names, EVPN-VPWS service number, bridge-domain storm control. Its attachments are ServiceEndpoints without L3 (port / dot1q / QinQ, VLAN rewrite): point-to-point exactly two, multipoint two or more
  • ServicePNI — peering network interface: a BGP peering with a partner ISP (the tenant) through which CESNET hands over customers via the partner's network. Always BGP, one VRF (null = Global), the partner's peer AS (required; every BGP session must use it as remote AS) and routing_prefixes, the prefixes the peer may announce (the content of the PNI's single prefix-set, filled by the orchestrator from the IP PNI services riding on it). Its 1..N attachments are ServiceEndpoints with the rules of a BGP ServiceIP; all of them share the PNI's route-policies and prefix-set. Policy / prefix-set names are not stored
  • ServiceEndpoint — one attachment of any service to the network (generic owner: service_type + service_id): role (A / B / hub / spoke / root / leaf), connection type (Direct / Indirect Local / Indirect L2), physical device & interface (port or LAG, optionally the port of an NNI), MTU, encapsulation (none / port / dot1q / QinQ with S-VLAN & C-VLAN as ipam.VLAN links, VLAN rewrite), service device & interface (the port or sub-interface with the service configuration), IPv4/IPv6 P2P addresses, static next hops. Each service declares its endpoint rules (count, L3, encapsulations, next hops, roles)
  • Port holders — a port or LAG is held exclusively by a Core Trunk / NNI side or an untagged endpoint (none / port); tagged endpoints (dot1q / QinQ) ride on trunk ports and share a port, but never with the same VLAN tags. A LAG and its members block each other. The available-ports API lists the free ports for a given use
  • ServiceIPBGPSession — links a netbox-bgp BGPSession (one per address family) to a BGP endpoint and carries the announce-P2P / default-originate / next-hop-self flags and the neighbor options; serves BGP ServiceIP and ServicePNI endpoints. Optional TCP-AO key chain (tcp_ao_keychain), exclusive with the password

Compatibility

NetBox Version Plugin Version Notes
4.7.0 – 4.7.99 6.4.0 ServiceIP routing type BGP indirect (IP PNI) riding on a ServicePNI (pni); eq / ge / le prefix-set match of routing prefixes
4.7.0 – 4.7.99 6.3.0 ServicePNI with endpoints and BGP sessions; service-pni API; TCP-AO key chain on ServiceIPBGPSession
4.7.0 – 4.7.99 6.2.0 ServiceL2VPN (VPWS, EVPN-VPWS, VPLS, EVPN-ELAN) on vpn.L2VPN, with endpoints; service-l2vpn API
4.7.0 – 4.7.99 6.1.0 BGP neighbor options on ServiceIPBGPSession
4.7.0 – 4.7.99 6.0.0 Breaking: ServiceIPEndpoint → generic ServiceEndpoint (service-endpoints API, routed_* → service_*); Core Link sides become endpoints; port-holder rule with available-ports API (replaces available-trunk-ports)
4.7.0 – 4.7.99 5.3.0 ServiceNNI; trunk port rule (a port / LAG serves one Core Trunk or NNI side) with available-trunk-ports API
4.7.0 – 4.7.99 5.2.0 Related services on Tenant, incl. child tenants via the parent_tenant custom field (tenant_parent_custom_field)
4.7.0 – 4.7.99 5.1.0 Related services (CoreLink / CoreTrunk / ServiceIP) on Device, Interface, Site and ASN detail pages (services_ext_page)
4.7.0 – 4.7.99 5.0.0 Breaking: ServiceIP split into ServiceIP / ServiceIPEndpoint / ServiceIPBGPSession; requires netbox-bgp >= 0.20.2
4.7.0 – 4.7.99 4.0.0 NetBox 4.7 only (django-tables2 3.0: RelatedLinkColumn → Column(linkify=True)); requires cesnet-service-path-plugin >= 6.3.0
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-bgp >= 0.20.2 — required from version 5.0.0 onwards. ServiceIPBGPSession links netbox_bgp.BGPSession objects. Must be installed and listed in PLUGINS.
  • NetBox 4.7.0 – 4.7.99 (for plugin versions 4.x and 5.x)
    • cesnet-service-path-plugin must be >= 6.3.0
    • For NetBox 4.5.4 – 4.6.99, use plugin version 3.0.x (latest 3.0.5)
  • 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.7.x
netbox-cesnet-services-plugin==4.0.0

# 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_bgp',                   # required by netbox_cesnet_services_plugin >= 5.0.0
    '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.

Metadata

Release files for netbox-cesnet-services-plugin 6.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for netbox-cesnet-services-plugin 6.5.0
File Size Uploaded Provenance Actions
netbox_cesnet_services_plugin-6.5.0.tar.gz 120.5 kB Without provenance Details for netbox_cesnet_services_plugin-6.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for netbox-cesnet-services-plugin 6.5.0
File Interpreter ABI Platform Actions
netbox_cesnet_services_plugin-6.5.0-py3-none-any.whl Python 3 none any Details for netbox_cesnet_services_plugin-6.5.0-py3-none-any.whl

Total release size: 324.0 kB

Release files / netbox_cesnet_services_plugin-6.5.0.tar.gz

Download URL netbox_cesnet_services_plugin-6.5.0.tar.gz
Size 120.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c0d9bab95d56db5971b4b80835bad7dbedee57ad0348c45b37d75354e86290a8
BLAKE2b-256 checksum
How to use checksums
c1a0bb6dae7553cfcf47aa78db0eaec78f144b5d5e8f2beb233325bb052b8aa7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / netbox_cesnet_services_plugin-6.5.0-py3-none-any.whl

Download URL netbox_cesnet_services_plugin-6.5.0-py3-none-any.whl
Size 203.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eef515b089c10642f11d20307ba849ad1477f9d23d45eae476c4bf878b12f13f
BLAKE2b-256 checksum
How to use checksums
974d3af8b065ff3739b0dff26b72153e46140e44168ce21cffe7fff162a18bd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for netbox-cesnet-services-plugin 6.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

6.5.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page