Skip to content
Thomas Mangin edited this page Apr 11, 2026 · 3 revisions

Pre-Alpha. This page describes behavior that may change.

Cross-protocol RIB selector. Takes per-protocol best-path selections and picks the winner by admin distance, then hands the result to the FIB programmer.

Category

Infrastructure.

Configuration

plugin {
    external sysrib { use sysrib; encoder json; }
}

Not bound to peers. sysrib sits between bgp-rib and fib-kernel in the FIB pipeline and subscribes to per-protocol selection events from the bus.

Behaviour

For each prefix, sysrib collects the best path from every source protocol and picks the one with the lowest admin distance. Ze only has BGP as a source today, so admin distance is not particularly interesting in practice.

Admin distances match the values every other routing daemon uses.

Protocol Admin distance
Static 10
eBGP 20
iBGP 200

The plugin publishes selection change events for fib-kernel (or fib-p4) to install into the actual forwarding table.

Metrics

Registered via ConfigureMetrics.

Metric Type Meaning
ze_systemrib_routes_best gauge Current system-wide best-route count.
ze_systemrib_route_changes_total{action} counter Best-path changes emitted, labelled by action.
ze_systemrib_events_received_total counter Protocol RIB events received.

See plugin metrics.

Interactions

  • Consumes best-path change events from bgp-rib.
  • Publishes selection events for fib-kernel or fib-p4.

Source

main/internal/plugins/sysrib/

Home

About

First Steps

Configuration

Operation

Interfaces

Plugins

Plugin Development

Chaos Testing

Blueprints

Development

Reference

Clone this wiki locally