Repository navigation
plugins
Pre-Alpha. This page describes behavior that may change.
A plugin in Ze is a unit of behaviour that registers itself with the engine and reacts to events on the bus. The engine itself does not know about BGP. BGP is implemented as a stack of plugins on top of a generic message bus and a generic plugin manager. Interface management, the FIB pipeline, RPKI, address families, and the route selection policy are all plugins by the same definition.
A plugin is either an in-tree Go module compiled into the binary, or an external process started by the daemon and spoken to through a TLS-framed line protocol. The two paths use the same APIs, the same event types, and the same registration model. The trade-off is the obvious one: in-tree plugins have direct access and lower latency; external plugins can be written in any language and crash without taking the daemon down with them.
show plugin list prints the registered set of the binary you are running, and it is the
authority for a name. A few rows below name a subsystem that registers RPC handlers or
an interface backend rather than an entry in the plugin registry: gnmi, host,
iface-netlink, iface-vpp, l2tp, pki, pppoe, storage and tacacs. They are
listed here because an operator looks for them here.
ze --plugins and show plugins were the older spellings. ze --plugins is removed with no alias, and it now answers
unknown command. show plugin declarations [config <path>] lists what each plugin declares. A flag that dispatches enters no command tree, so completion and
ze help command never saw it.
The answer is rows with declared columns, in this order:
| Column | Content |
|---|---|
name |
The registered name, which is the authority for the spelling. |
description |
One line from the plugin's own registration. |
outcome |
What the plugin's setup recorded. See the table below. |
families |
The address families the plugin serves. |
rfcs |
The RFCs the plugin implements. |
capabilities |
The BGP capabilities the plugin contributes. |
reason |
Free text explaining a failed outcome. It is absent when no plugin recorded one. |
outcome takes one of four values:
| Outcome | Meaning |
|---|---|
succeeded |
Setup completed. |
soft-failure |
Setup failed, and the daemon continues without the plugin. |
hard-failure |
Setup failed, and the daemon cannot run. |
unknown |
The plugin recorded no outcome. |
unknown is what most rows show in this build. A plugin reports an outcome only
when it records one, and memlock is the only plugin that records one today.
hard-failure is a mechanism rather than a value an operator sees in this build.
No current plugin produces it, and the daemon refuses to start if one did.
Because the answer is structured data, every row operator applies to it. show plugin list | json, | yaml, | table, | count and | match <name> all work. The command takes no
argument: it answers the whole set, and a reader who wants one plugin narrows it with
| match <name>.
| Plugin | Description |
|---|---|
bgp-rib |
Mandatory RIB store and best-path selection, with eligible process-memory sent-history replay on reconnect. Migration. |
bgp-adj-rib-in |
Per-peer Adj-RIB-In with raw hex replay. |
| Plugin | Description |
|---|---|
bgp |
The core BGP engine: FSM, message handling, peer reactor. |
bgp-healthcheck |
Service healthcheck with FSM-controlled announcement and withdrawal. |
interface |
OS network interface monitoring and management. |
loop |
Route loop detection per RFC 4271. |
| Plugin | Description |
|---|---|
bgp-rs |
Route server: client-to-client reflection per RFC 7947 with zero-copy fast path. Dynamic peers, RS-client role, and a control-community forwarding policy with full multi-community strip and withdrawal delivery to excluded clients. |
bgp-rr |
Route reflector per RFC 4456, as an alternative to the route server forward-all model. |
bgp-filter-community |
Community tag and strip filter (standard, large, extended), RFC 7454 Section 11 own-GA scrub with a function keep-list, RFC 8195 relation tag, and the RFC 7999 blackhole propagation guard. |
bgp-filter-community-match |
Community-match filter (accept/reject on community membership). |
bgp-filter-family |
Named address-family policy filter: removes a family's NLRI, or tears the session down. |
bgp-filter-prefix |
Per-prefix modify path for multi-prefix updates. |
bgp-filter-aspath |
AS-path regex filter. |
bgp-filter-aspath-length |
AS-path length filter (accept/reject by hop count). |
bgp-filter-modify |
Route attribute modifier on import/export: set/increment/decrement local-preference, MED, AIGP; community add/remove (standard, large, extended). |
bgp-filter-remove-private-as |
Strips private ASNs from AS_PATH on export. |
bgp-filter-path-asn |
Named reject-asn list: rejects a route whose AS_PATH carries a listed ASN at a listed position (BCP 194). show bgp reject-asn. See Policies. |
bgp-filter-irr |
IRR-based prefix filtering against the lists the irr plugin fetches and stores (AS-SET expansion via whois, scheduled refresh, PeeringDB AS-SET discovery). Enrolls only peers that opted in, via a filter chain reference or an explicit as-set. See bgp-filter-irr. |
bgp-role |
BGP Role capability enforcement (RFC 9234). |
redistribute-orchestrator |
Dispatches protocol route events (static, kernel, connected, L2TP, AS112 and the IGPs) to every registered redistribution consumer, BGP included. There is no separate bgp-redistribute plugin. |
policy |
Route policy library: the policy config root, named filter instances and the route field vocabulary. Publishes the Loc-RIB import chains. |
| Plugin | Description |
|---|---|
bgp-gr |
Graceful Restart (RFC 4724) and Long-Lived GR (RFC 9494). |
bgp-watchdog |
Deferred announcement controlled by named watchdog groups. |
bgp-route-refresh |
Route Refresh and Enhanced Route Refresh (RFC 2918, RFC 7313). |
| Plugin | Description |
|---|---|
bgp-rpki |
RPKI origin validation (RFC 6811), ASPA path verification with policy enforcement (reject/log-only/accept), RTR v2 (RFC 9582). An UPDATE with an unknown or malformed peer AS is refused before validation (ze_rpki_updates_refused_total). See RPKI. |
bgp-rpki-decorator |
Correlates UPDATE and RPKI events into merged update-rpki events. |
| Plugin | Description |
|---|---|
bgp-capa |
Core capability decoding: multiprotocol, 4-octet ASN, Add-Path, Paths-Limit, extended next-hop, extended message (RFC 4760, RFC 6793, RFC 7911, RFC 8654, RFC 8950). |
bgp-aigp |
Accumulated IGP Metric (RFC 7311), used in best-path selection and readvertised. |
bgp-hostname |
FQDN capability. |
bgp-llnh |
Link-local next-hop for IPv6 (RFC 2545). |
bgp-softver |
Software version capability. |
The IPv4 and IPv6 unicast and multicast families are part of the engine. Everything else is provided by an nlri plugin and is only available if the plugin is loaded.
| Plugin | Description |
|---|---|
bgp-nlri-vpn |
IPv4 and IPv6 MPLS-VPN. |
bgp-nlri-evpn |
L2VPN EVPN. |
bgp-nlri-flowspec |
IPv4 and IPv6 FlowSpec, with VPN variants. |
bgp-nlri-ls |
BGP-LS. |
bgp-nlri-labeled |
MPLS-labelled unicast. |
bgp-nlri-vpls |
L2VPN VPLS. |
bgp-nlri-mvpn |
Multicast VPN. |
bgp-nlri-rtc |
Route Target Constrain. |
bgp-nlri-mup |
Mobile User Plane. |
bgp-nlri-srpolicy |
SR-Policy (SAFI 73) with Tunnel Encapsulation. |
Run show plugin list to list every plugin compiled into the binary you are running.
| Plugin | Description |
|---|---|
bgp-ls-export |
Originates BGP-LS (RFC 9552) from Ze's own IS-IS, OSPF and EPE state. Depends on bgp-nlri-ls. See BGP-LS export. |
bgp-epe |
BGP Egress Peer Engineering (RFC 9086): PeerNode SIDs, with MPLS label install. See BGP EPE. |
| Plugin | Description |
|---|---|
bfd |
Bidirectional Forwarding Detection (RFC 5880/5881/5882/5883). Echo mode, keyed SHA1/MD5 auth, BGP peer opt-in. See BFD. |
bgp-bmp |
BGP Monitoring Protocol (RFC 7854). Receiver and sender with Adj-RIB-Out (RFC 8671). Loads for a bgp config or for environment bmp, and no longer for any other environment block. The receiver's route-action accepts only monitor. The Loc-RIB sender (RFC 9069) carries the best path's full stored attributes and needs the internal plugin: loc-rib true is refused for an external BMP process. See BMP. |
| Plugin | Description |
|---|---|
l2tp |
L2TPv2 LNS/LAC (RFC 2661). Tunnel and session FSMs, PPP negotiation with configurable LNS MRU (64..1500) and authentication { allow [...] }, kernel dataplane. See L2TP. |
l2tp-auth-local |
Static local user list for L2TP and PPPoE PPP authentication. |
l2tp-auth-radius |
RADIUS authentication and accounting for L2TP and PPPoE PPP sessions. See RADIUS. |
l2tp-pool |
IPv4 address and IPv6 prefix pool for L2TP PPP sessions. |
l2tp-shaper |
Traffic shaping for L2TP subscriber sessions. |
firewall |
Stateful packet filtering with nftables backend. See Firewall. |
firewall-irr |
IRR-based prefix-list filtering for firewall rules. Fetches nothing: it reads the lists the irr plugin stores. show firewall irr. |
irr |
IRR data owner: fetches, schedules and stores the IRR prefix lists every consumer (bgp-filter-irr, firewall-irr) enforces, under system irr. The stored lists survive a restart. show irr, update irr, clear irr. See bgp-filter-irr. |
firewall-domain |
DNS-sourced address groups for firewall rules. show, update and clear firewall domain-group. See Firewall. |
traffic |
Per-interface queueing disciplines with tc and VPP backends. See Traffic Control. |
ntp |
NTP client for system clock synchronization with clock readiness gate. Loads only for environment ntp. show system ntp, show system ntp peers and show system date answer from the running process, inside the daemon or external. See NTP. |
sysctl |
Named sysctl profiles (dsr, router, hardened, multihomed, proxy) for interface units. |
tacacs |
TACACS+ AAA client (RFC 8907). SSH authentication, priv-lvl mapping, accounting. See TACACS+. |
dhcpserver |
DHCP server (RFC 2131/2132). Address pools with multiple named ranges, static mappings, lease tracking. See DHCP Server. |
static |
Static route management with ECMP, BFD failover, routing tables, per-route isolation for routes that cannot be programmed. With no fib { } block Ze loads the writer for the selected data plane; when none can program it, start and reload refuse and doctor reports doctor-plugin-no-dataplane-writer. See Static Routes. |
vrrp |
First-hop redundancy (RFC 9568 VRRPv3, RFC 3768 VRRPv2) with a per-group virtual-MAC macvlan, IPv4 and IPv6. Netlink backend only, compile-out ze_vrrp. See VRRP. |
ospf |
Native OSPFv2 (IPv4) and OSPFv3 (IPv6) engine: areas/ABR, stub/NSSA, SPF, redistribution with BGP, key-chain auth, web views. See OSPF. |
isis |
Native IS-IS link-state IGP (ISO/IEC 10589, RFC 1195). L1/L2 levels, DIS/pseudo-node LANs, LSDB + SPF, ECMP, wide metrics, dual-stack IPv6, key-chain auth, redistribution. See IS-IS. |
pppoe |
PPPoE (RFC 2516) in both roles: a client for WAN interfaces, and an access concentrator with subscriber authentication (auth-method, authentication-allow, allow-no-auth), a fixed 1492-octet MRU ceiling, AC-Cookie and PADI rate limiting. Shares the PPP driver, the auth handlers and the IP pool with L2TP. See PPPoE. |
cos |
Class of Service: named profiles and dynamic per-subscriber CoS via RADIUS. Inline 802.1p VLAN QoS maps belong to the interface schema and work without it; a unit that references a named profile is refused at verify in a build without it. See Class of Service. |
policy-routes |
Policy-based routing rules (PBR). See Policy Routing. |
kernel |
Kernel route redistribution via routewatch (RTPROT_KERNEL, RTPROT_REDIRECT). |
connected |
Connected routes: redistributes directly connected interface prefixes. |
routing-table |
Named routing table registry mapping names to kernel table IDs. |
| Plugin | Description |
|---|---|
as112 |
AS112 anycast sink for misdirected reverse-DNS queries (RFC 7534/7535), with watchdog-gated BGP origination of the covering prefixes and optional DoT/DoH. See AS112 DNS. |
dnsresolver |
LAN DNS resolver (RFC 1035, RFC 2181) under service { dns-resolver }: answers recursive queries from allow-from prefixes, from cache or by forwarding to upstream servers chosen by forward dns-source. See DNS. |
geodns |
GeoDNS authoritative server with per-source-IP answers on the shared DNS harness, and optional DoT (RFC 7858) and DoH (RFC 8484). See DNS. |
as112 and geodns each take tls { certificate <name> }, which names an entry in
the pki {} store instead of a cert-file and key-file pair. The two forms are
mutually exclusive. Each plugin registers a UDP and a TCP listener default, so
ze doctor probes both transports.
| Plugin | Description |
|---|---|
ike |
Native IKEv2 in Go with XFRM dataplane. Claims the vpn and pki config roots. The registered name is ike, not ipsec. See IPsec VPN. |
pki |
X.509 certificate store for IPsec and TLS, served by the ike plugin's pki config root. Health monitoring with certificate expiry warnings. Prometheus metrics. Named by environment.web.certificate and by the as112 and geodns tls { certificate } leaves. |
| Plugin | Description |
|---|---|
ddos-detect |
Automatic volumetric DDoS detection from live traffic stats: per-source packet-rate and bandwidth (BPS) p99 baselines, attack characterization, and incident confidence scoring. Detection reads the trafficstat rate feed, a same-process subscription, so the plugin runs inside the daemon; a detector that sees no traffic is reported as doctor-ddos-detect-blind. See DDoS Mitigation. |
ddos-local |
Local firewall responder (INPUT drop) for box-directed attacks. |
ddos-flowspec |
FlowSpec origination responder for transit attacks, announced upstream to peers. Records each rule it announces and withdraws it when the daemon removes the plugin; a recorded rule no running responder holds is reported as doctor-ddos-flowspec-orphan-announcement. |
ddos-flowtriq |
Flowtriq incident reporter. |
ddos-observe |
Incident lifecycle store behind show ddos incidents. |
copp |
Control-plane policing (CoPP) on the INPUT chain, including TCP/179. |
anomaly-detect |
Report-only behavioral anomaly detector: per-source baselines (fan-out, out/in ratio, destination-port entropy, beaconing), deviation and cohort-rarity scoring, and incident correlation. See Anomaly Detection. |
anomaly-observe |
Incident lifecycle store for the detector's findings, and the show anomaly observe command that reads it. |
anomaly-shape |
Shadow-first responder: surgical per-source firewall rate-limits with per-entity arming, timed auto-revert, a blast-radius cap, and a kill switch. |
| Plugin | Description |
|---|---|
tftpserver |
RFC 1350 read-only TFTP server for PXE boot. |
imageserver |
HTTP image server with Range support for PXE provisioning. |
flowspec-firewall |
FlowSpec-to-nftables bridge: converts FlowSpec rules into nftables firewall entries. |
| Component | Description |
|---|---|
ldp |
Label Distribution Protocol (RFC 5036): UDP multicast discovery, TCP session FSM, label information base. Emits MPLS forwarding entries on the mpls-fib bus. See MPLS / LDP / RSVP-TE. |
rsvp-te |
RSVP-TE (RFC 3209/2205) signaling engine over raw IP (protocol 46): PATH/RESV, ERO explicit routing, bandwidth admission control, soft-state refresh, make-before-break. See RSVP-TE. |
The kernel MPLS FIB itself is programmed by fib-kernel, which stays the single owner of the kernel FIB and consumes push/swap/pop entries from the mpls-fib event bus. Under interface { backend vpp; }, fib-vpp consumes the same entries into VPP MPLS table 0.
| Component | Description |
|---|---|
mrt |
RFC 6396 MRT recording from live BGP sessions. Three independent streams: updates (BGP4MP for UPDATE messages), all (BGP4MP for all messages plus state changes), routes (periodic TABLE_DUMP_V2 RIB snapshots). YANG config, per-peer and direction filtering, extended timestamps, add-path aware, strftime rotation, async writes. See MRT Analysis. |
| Component | Description |
|---|---|
gnmi |
gNMI server (gRPC Network Management Interface) for YANG-modeled config: Capabilities, Get, Set, Subscribe ONCE and STREAM. See gNMI. |
flow-export |
Interface counter and per-flow export over sFlow v5, NetFlow v9 (RFC 3954), and IPFIX (RFC 7011). Also runs the nf_conntrack-backed flow tracking that feeds DDoS attack characterization; ze doctor reports its readiness through the flow-export-conntrack-tracking check. See Flow Export. |
storage |
YANG-modeled SMART disk health: polling, temperature alerting, scheduled self-tests, pure ioctl (no smartctl). |
traffic-usage |
Per-interface and per-subscriber traffic accounting and usage reporting. |
mtu |
Path MTU diagnostic: show mtu measures the path to every IPsec peer and a reference address, and sizes each XFRM tunnel. Registers RPC handlers rather than a registry entry. See Path MTU. |
exabgp-bridge |
Internal ExaBGP process bridge: runs an ExaBGP-style controller script sourced from config delivery. See ExaBGP Migration. |
| Plugin | Description |
|---|---|
interface |
OS network interface monitoring through netlink (Linux). Publishes interface and address events to the bus. |
fib-kernel |
Programs the Linux FIB through netlink, including AF_MPLS push/swap/pop entries from the mpls-fib bus. Loads automatically when the interface backend is netlink and no fib block is written. The startup sweep and the stop flush cover every table it programs (doctor-fib-sweep-incomplete, doctor-fib-flush-incomplete). It installs the primary path only: an OSPF fast-reroute backup is not programmed (doctor-fib-backup-not-programmed). See fib-kernel. |
fib-vpp |
Programs the VPP FIB through GoVPP binary API, including label pushes and the LDP, RSVP-TE and OSPF-SR transit swap and pop in MPLS table 0. Loads automatically under backend vpp with no fib block. Installs under the VPP FIB source ze-fib-vpp and sweeps the routes a previous run left (doctor-fib-vpp-stale-route). See VPP. |
fib-p4 |
Experimental P4 dataplane. |
iface-dhcp |
DHCP client for managed interfaces with route/DNS/NTP discovery. |
iface-ra |
IPv6 Router Advertisement sender (RFC 4861): prefixes for SLAAC, the M and O flags, and RDNSS resolvers (RFC 8106) on an interface unit. Linux and the netlink backend only. See Interfaces. |
iface-netlink |
Netlink-driven interface manager (WireGuard, tunnels, bridges, VLAN). |
iface-vpp |
VPP interface backend via GoVPP (lifecycle, addressing, monitor). |
rib |
System RIB shared between protocols: selects the best route across protocols by administrative distance, with a unified Loc-RIB. Sources: BGP, OSPF, IS-IS, static (main table) and connected. fib-withhold keeps a protocol's routes out of the FIB. The registered name is rib, a different plugin from bgp-rib; it runs inside the daemon or as an external process (ze plugin rib). See System RIB. |
host |
Hardware inventory library and show host surface. |
vpp |
VPP process lifecycle management: startup, DPDK NIC binding, crash recovery, GoVPP connection. |
crashes |
Crash capture: harvests kernel crash records at daemon start and serves crash reports through show crashes [latest | name <file>], which also answers offline when the daemon is down. Three ze doctor checks. |
memlock |
Memory lock: keeps the running executable resident under memory pressure. Linux only, using mlock2 with MLOCK_ONFAULT. Takes no configuration. show plugin list reports whether the daemon took the lock. |
Every route-processing step is a member of the peer's filter list. When a feature's config implies a procedure, the plugin that owns the feature inserts its member into the list itself, and show policy chain peer <selector> shows it like any other. A required member cannot be named, moved or deactivated by the operator; a member that is not required can be turned off with inactive:<plugin>:<filter>.
| Member | Direction | Placed when | Required |
|---|---|---|---|
bgp-role:otc-ingress |
import | the peer sets role import (RFC 9234) |
Yes |
bgp-role:otc-egress |
export | any peer declares a role | Yes |
bgp-role:upstream-asn |
import and export | the peer's role is one the upstream check covers (RFC 7454) | No |
bgp-gr:llgr-ingress |
import | the peer sets long-lived-stale-time (RFC 9494) |
Yes |
bgp-gr:llgr-egress |
export | any peer sets long-lived-stale-time
|
Yes |
bgp-rs:transparency |
export | the session is a route-server client (session rs-client, RFC 7947 Section 2.2) |
No |
bgp-filter-community:blackhole-agreement |
export | every eBGP session that is not a route-server client, while the plugin is loaded | Yes |
The engine and the config code never name these: each plugin declares its insertions at registration. See Route policy.
The daemon starts an external plugin with ZE_PLUGIN_HUB_HOST, ZE_PLUGIN_HUB_PORT, a per-plugin token in ZE_PLUGIN_HUB_TOKEN, and ZE_PLUGIN_CA_PEM, the certificate authority root that issued the engine's certificate. The SDK validates the engine's chain against that root and nothing else. sdk.NewFromEnv reads all of them. ZE_PLUGIN_CERT_FP, the older single-certificate pin, is gone.
A plugin that declares WantsConfig must register OnConfigApply, or call DeclareAppliesNothing(reason) when it holds nothing a reload can apply. Without either, every reload that reaches the plugin is refused at config-verify. See Go plugins.
ze request plugin restart <name> starts a configured plugin again without restarting ze: one its failure policy or the respawn limit left stopped, or a running one, which is stopped first and started with the running configuration. A plugin's own request to restart itself is refused, and the restart waits at most 3 seconds for the old process's cleanup. See Plugin development.
show doctor reports a crashed plugin as doctor-plugin-crashed and a stopped one as doctor-plugin-stopped, with the restart command as its fix, along with the rest of the plugin infrastructure: failed deliveries, dropped subscriptions, unbacked claims, panics, unavailable enrichers, refused reloads and restart overlap. A plugin raises and clears its own report-bus issues with RaiseIssue and ClearIssue, each with the command that fixes it, and declares runtime-phase doctor checks that only the daemon runs. See Health checks.
A command a plugin dispatches is refused when it holds a pipe character outside double quotes, as on REST, gRPC and MCP. See REST API.
Every plugin exposes a few standard Prometheus metrics so you can tell at a glance whether they are healthy.
| Metric | Description |
|---|---|
ze_plugin_status{plugin} |
Current stage. 6 means running. |
ze_plugin_restarts_total{plugin} |
Cumulative restart count. |
ze_plugin_events_delivered_total{plugin} |
Total events enqueued to the plugin. |
When a plugin is disabled (respawn limit exceeded) its metrics are deleted rather than left stale.
Beyond the standard health metrics, Go plugins can register their own Prometheus counters and gauges through a ConfigureMetrics callback on the plugin registration. bgp-rib, bgp-watchdog, bgp-rpki, fib-kernel, and rib each ship with their own metric sets on the same Prometheus endpoint. See Go plugins: Prometheus metrics for the API and naming convention.
- Plugin development for writing your own.
- Configuration overview for how plugins bind to peers and receive events.
- Monitoring for the event-stream surface plugins consume.
Adapted from main/docs/features/plugins.md and main/README.md.
Unreviewed draft. This wiki was authored in bulk and has not been reviewed. File corrections on the issue tracker.
- Install
- Docker
- netlab
- Appliance
- Quick Start
- Use Ze with an AI agent
- ExaBGP Migration
- CLI Tour
- Web UI Tour
- Overview
- YANG Model
- Editor Workflow
- Archive and Rollback
- Backup and Restore
- System
- Interfaces
- VRRP
- BFD
- FIB
- OSPF
- IS-IS
- MPLS / LDP / RSVP-TE
- RSVP-TE
- SRv6
- Static Routes
- Policy Routing
- Firewall
- Traffic Control
- Class of Service
- L2TP/PPP
- PPPoE
- VPP Data Plane
- RPKI
- IPsec VPN
- Path MTU
- TACACS+ AAA
- RADIUS AAA
- AS112 DNS
- DNS
- Authorization
- Fleet
- BGP
- Starting and Stopping
- Show Commands
- Monitoring
- Telemetry
- Flow Export
- DDoS Mitigation
- Anomaly Detection
- Health Checks
- Audit Trail
- Production Diagnostics
- Logging
- Operational Reports
- Healthcheck
- Self-Update
- Zero-Touch Provisioning
- MRT Analysis
- Upgrade and Restart
- Storage
- Policy
- Core
- Resilience
- Validation
- Link State
- Capabilities
- Address Families
- Protocol
- Subsystems
- Infrastructure
- Route Server at an IXP
- Transit Edge with RPKI
- Public Looking Glass
- ExaBGP Migration Walkthrough
- FlowSpec Injection
- Chaos-Tested Peering
- AS Path Topology