Repository navigation
Releases
v0.84.0
Added
bgp_rib_outbound_eviction_recovery_seconds{outcome}measures one receiver's recovery build after an owed-row cap eviction or when a dirty resync during an EVPN selection hold defers a rebuild until release. A refused data commit has its own series. See the metric reference.bgp_rib_outbound_owed_drain_step_seconds{scope}: the duration of one owed-route drain step toward one receiver on the RIB actor, withscopecursor(IPv4 or IPv6 unicast or labeled unicast, or EVPN, owed whole),keyed(a receiver's owed routes) orwhole(one whole-family pass of another family). Bucket edges include 50 ms and 250 ms. See the metric reference.- Config diffs and SIGHUP errors name individual restart-required RPKI, BMP and MRT fields. Credential values, free-form BMP text and MRT paths are redacted.
rbgp config last-reloadand theGetLastSighupReloadRPC list the fields observed to require a restart. The versioned CLI JSON envelope advances torbgp-json/1.5. ListSessionEventsreportsevicted_totalandoldest_retained_unix_ms,bgp_session_event_history_evicted_totalcounts evictions, andNeighborState.last_error_unix_msrecords whenlast_errorwas set.rbgp events sessionsprints a stderr note after an eviction, andrbgp neighborshows when the last error occurred, in JSON aslast_error_unix_ms. The proto fields are additive.- During a startup IPv4 or IPv6 unicast selection release, a
ListReceivedRoutes,ListBestRoutesorListAdvertisedRoutesclient can setaccept_releasingto read the rows already committed. Every page from this daemon carriesselection_release.releasing_families, including empty and final pages. A client that omits the opt-in gets its page after the release, and readiness counts andbgp_rib_loc_prefixeskeep the last complete value until it finishes. A limitedrbgp ribquery opts in and names the releasing families after the rows, and in JSON asreleasing_families; against an older daemon the text reports that release status is unavailable and JSON omits the field. The proto fields are additive. See pagination.
Changed
bgp_rib_actor_turn_duration_secondsandbgp_rib_actor_work_duration_secondsgain a 250 ms bucket edge (le="0.25"), between the existing 200 ms and 500 ms edges, so a turn or work unit can be placed against a 250 ms bound. The existing edges are unchanged and buckets are cumulative, so queries and dashboards that read an existinglevalue,_sumor_countare unaffected; each series exports one more bucket line. See the metric reference.- After non-unicast selection release, receivers get End-of-RIB over several RIB turns. Outstanding release work runs every 10 ms. An uncontended VPN release visits up to eight receivers per tick. An RT-Constrain membership rebuild releases up to two completed holds per tick after the initial batch. A full writer keeps its ordinary retry deadline: a refused End-of-RIB is offered again one second later. Due retries then run eight receivers per 10 ms tick until each has had one offer, and the next round waits another second.
bgp_rib_dirty_resync_totalno longer counts ticks that only retry or release End-of-RIB markers. - MRT dumps encode and write bounded chunks instead of retaining a second complete route table and encoded file. Peer metadata is captured at the start; peers joining during a dump are excluded. EVPN steps visit at most 4,096 slots, including vacancies, and use temporary disk sorting to retain record order. Owned route chunks and encoded records each have an 8 MiB cap; an oversized prefix fails the dump without publishing a partial file. A neighbor whose EVPN table is removed, cleared or replaced mid-dump keeps the rows already read and the rest is skipped as withdrawn. The dump is staged in the output directory for its whole duration, and startup removes stage files a previous process left behind. See dump consistency and limits.
- When the first member of an eligible unicast update group joins a RIB with at least 10,000 best routes, the RIB can install unrelated updates while it builds the group table. The initial member replay follows publication of the complete table. This applies to plain single-best unicast groups with no export policy or peer-specific export controls. A policy change that needs the same unfinished table keeps the old policy in effect until the table is ready and earlier route updates have reached distribution. A cold registration can reclaim an unused table left by a completed policy preparation. When a policy change needs a different cold destination, unrelated updates can still reach peers under the installed policy while the first build finishes or the unused table is retired.
Removed
- Removed
rustbgpd --migrate-config downgrade-v0.64and its--validatoroption. To roll back to v0.64.0, restore a config that release accepts or use the v0.83.0 offline tool to convert the RFC 8212 posture. See the rollback procedure. - The deprecated config key spellings
max_prefixes_ipv4,max_prefixes_ipv6,max_prefixes_received_ipv4,max_prefixes_received_ipv6,max_prefixes_out_ipv4,max_prefixes_out_ipv6andrecovery_delay_secsare no longer accepted. The published JSON schema no longer lists them.
Fixed
- An administrative reset (
rbgp neighbor reset, gRPCResetNeighbor) no longer leaves the peer's routes retained under graceful restart or LLGR in two cases. When the peer negotiated the RFC 8538 N bit and draining queued output before the close raised Cease / Out of Resources, that plain Cease/8 made both sides retain each other's routes; it is now sent as a Cease / Hard Reset carrying the Cease/8. When the reset found the session Idle after an earlier graceful-restart loss, it only restarted the connection and left the retained routes stale; it now purges them first. See Reset a peer session. - A paced first-member update-group build no longer starts over repeatedly while another peer sends large UPDATEs. With Extended Message, one UPDATE can change 2,048 or more best routes; a steady stream of them changed routes faster than the build picked the changes up, so the build threw its partial table away and began again for as long as the stream lasted. The build now picks up changes on every one of its turns while more than 2,048 are waiting, which matches the rate at which route input can change best routes.
- When a config transaction (
ApplyConfigTransactionor gNMISet) has applied new policy chains live and then fails to publish the candidate, its rollback now restores the prior chains instead of re-applying them as a new forward edit. Previously the rollback went through the forward edit's qualification, so a peer that came up without Route Refresh after the apply made the whole rollback refuse, and every target kept the candidate chains until the daemon fenced. - Aborting, canceling (gNMI) or timing out a commit-confirmed config transaction now restores the prior import policy even when a peer lost Route Refresh inside the confirm window. Before, the rollback was applied as a new import edit, which is refused for such a peer, so it failed with
abort_failed/auto_revert_failedand the unconfirmed candidate kept running behind the mutation fence. The prior policy is installed and that one session is reset so the peer resends its routes under it; a forward import edit for such a peer, including a history rollback, is still refused. - A route change event no longer rebuilds the whole table of every update-group member that is waiting to be resynced in the same RIB actor turn. This covers an UPDATE, a withdrawal, a route injection, a source session going down, an RPKI or ASPA validation change, a graceful-restart or LLGR stale sweep and an End-of-RIB stale purge, including an End-of-RIB with nothing stale and a source going down with no routes left. Those members were resynced inline, one after another, so with many members dirty after backpressure one unrelated event could hold every other peer's updates for seconds, and for minutes at full-table scale. The event now leaves each dirty member to the resync tick, which rebuilds one member per slice within its poll budget, and records the change in the member's withdrawal residue as it does when the member's channel is full.
- Disabling a peer (
rbgp neighbor disable, gRPCDisableNeighbor, a configadmin_down) or deleting it (gRPCDeleteNeighbor,rbgp neighbor delete, removal by a config reload) no longer leaves routes retained when the peer negotiated RFC 8538 Notification Graceful Restart. The plain Cease / Administrative Shutdown made both sides keep each other's routes as stale for the restart time, then any LLGR stale time, although the session was not coming back. The NOTIFICATION is now a Cease / Hard Reset wrapping the Administrative Shutdown and any RFC 9003 shutdown communication (RFC 8538 §5.1, §5.2), as is a Cease / Out of Resources raised while the teardown drains queued output. A disable that finds the session Idle or reconnecting purges routes still retained from an earlier session loss. A dynamic peer removed because a config rollback left no range that admits it, and an interface-only (unnumbered) neighbor removed from the configuration, are handled like a deleted peer. The session-crash and maximum-prefix latches stop the peer the same way; a maximum-prefix breach already sent its own Cease as a Hard Reset. See Enable / disable a peer. - Pace export-policy reload and rollback for changed residual peers with no currently sendable address family. These peers can still enumerate the routing table during ...
v0.83.0
Release framing — paced reloads, recovery in place and bounded work. Export-policy reloads at scale are now paced: on a 700-peer, 400,400-route test bed, a grouped reload completes in under 2 s instead of about 107 s, a distinct-chain reload that v0.82.0 rolled back now commits, and no RIB turn in either exceeds 0.9 s. Steady-state route-reflector throughput is unchanged. The gRPC and metrics/readiness servers and the RPKI tasks now recover in place instead of exiting the daemon. A long export-policy reload or rollback is bounded by a stall timeout instead of a fixed deadline and keeps serving BFD and session events meanwhile. gNMI requests, policy dry runs and MRT dumps bound their work, more long RIB turns keep answering readiness, and credential, config, policy-source and MRT files are held to stricter rules. The string event
timestampfields,Route.medand the listeneraccess_modekey are removed; read the upgrade notes before upgrading.rustbgpd-fsm0.15.1 andrustbgpd-rpki0.10.1 are patch releases on wire 0.28.0.
Security
- gNMI
Getaccepts at most 16 paths, asSubscribedoes, and renders paths that select the same data once. A request whose paths would render more than 65,536 leaf updates returnsRESOURCE_EXHAUSTEDbefore rendering, and rendering runs on the blocking pool, at most four requests at once per listener. Previously oneGetcould put the all-neighbors path in its prefix and send millions of empty paths, each rendering every neighbor in memory on an async worker shared with BGP sessions. - gNMI
Subscriberenders the paths that select the same data once per snapshot, poll, sample tick, and heartbeat, and bounds each render at 65,536 leaf updates, asGetdoes. A subscription whose paths would render more than that against the current roster getsRESOURCE_EXHAUSTEDbefore any update orsync_response, and a stream whose roster grows past the bound ends withRESOURCE_EXHAUSTEDat its next render. Large renders run on the blocking pool and shareGet's four render slots per listener. A dial-out target whose subscription ends with an error status before delivering data now logs it atwarnand backs off instead of reconnecting everybackoff_initial. Previously each sample tick rendered up to 16 paths against the whole roster on an async worker shared with BGP sessions, discarding duplicates only after rendering. TestPolicyandComparePolicy(rbgp policy testandrbgp policy compare) now evaluate route pages on the blocking pool instead of the async runtime that serves BGP sessions and other RPCs, and bound the reads that set up the walk and the walk itself at 60 s after the compile, after which the request returnsDEADLINE_EXCEEDEDwith the number of routes it evaluated. The CLI waits long enough for the daemon's compile and walk bounds to report first. The two dry-run slots per API listener now cover evaluation as well as the compile, so a third concurrent request returnsRESOURCE_EXHAUSTEDwhile two walks run. Previously a costly candidate over a large table held one async worker per request for the length of the walk.TestPolicyrejectsshow_changesabove 1,000 withINVALID_ARGUMENT, matchingshow_rejectedandmax_samples, so one request can no longer return a rendered diff for every route in the table.rbgp policy testrejects--show-changesabove 1000 before sending.- Bound credential reads to 4 MiB and configuration reads to 64 MiB, refusing non-regular and world-writable credential files, including public listener certificates, CA bundles and CRLs. Read gNMI dial-out TLS credentials outside runtime workers and report their permissions in doctor. Enforce the same config limit before normalized documents are accepted or written, confine dial-out candidate credential paths, and scrub validation buffers.
- Read candidate
.rpolentry modules,[policy] rpol_rootsand dataset files belowoperator_onlyat the canonical path the confinement check accepted, without resolving the named path again. A symlink retargeted, or a root or ancestor directory replaced by a symlink, between the check and the read can no longer redirect the read outside the accepted policy directories; the read is refused instead. Candidate configs keep the paths as written, and operator, boot and SIGHUP loads are unchanged. - Resolve the policy directories that confine candidate sources below
operator_onlyonce, when the config is read at boot or SIGHUP, instead of again for every candidate. They hold until the next accepted reload, which resolves them again; API commits keep the directories already resolved. A nested policy directory replaced by a symlink in between no longer extends the confinement to the symlink's target. Whether each[policy] rpol_rootsentry is a directory or a file is fixed at the same time. An entry that is a regular file admits only that file as a path a candidate names: another module cannot import it, its own imports are looked up only under the candidate's policy directories and not relative to its directory, and a directory later put in its place is not a policy directory. The file each gRPC credential path resolved to at boot or SIGHUP stays out of candidate sources until the next accepted reload, across API commits, and so does the file the path resolves to when a candidate is loaded; a credential symlink rotated in between keeps both targets out. A credential file moved aside by rename is not covered under its new name. Operator, boot and SIGHUP loads are unchanged. - Update the locked MCP SDK to
rmcp3.9.0 for RUSTSEC-2026-0462. The affected Streamable HTTP client transports are disabled in the stdio MCP server build. - MRT dump files are now created 0600 and a missing
[mrt] output_diris created 0700, instead of following the process umask (0644 and 0755 under umask 022). Dumps carry routes, peer addresses, ASNs and router IDs. An existingoutput_dirand the directories above it are now held to theruntime_state_dirownership and mode rules before each dump. See[mrt]. - Refuse
<config>.unconfirmed-*backups beside the resolved config target as candidate policy sources belowoperator_only, and check opened source file identities so hardlinks cannot bypass protection of the running config and credential files. Confined candidate loads fail closed when the accepted physical target is missing or replaced. - Retain accepted config target authority across launch-link changes and rollback, reject backup hardlink aliases and source-open symlink swaps, and use the accepted config at EVPN candidate admission. Below
operator_only, fail closed when the config directory exceeds 4096 entries, and returnUNAVAILABLEwhen it changes during source reads. Recheck accepted target and parent identities on each source read to reject ancestor-directory replacement without repeating the backup inventory. Only candidates that name.rpolor dataset files need the accepted config file unchanged on disk. Loading a config needs only search permission on its ancestor directories, and backups are identified without read permission. - Route listings sort and deduplicate their community and large-community filter terms once per request and match each route with a binary search. Previously the RIB compared every term against every scanned route, so one listing carrying a very long community filter could hold the RIB for the whole table scan. Matching results are unchanged.
- Update the locked
rustixdependency to 1.1.6 for RUSTSEC-2026-0486, fixing unsound extended-attribute buffer handling. The separate 0.38 series is unaffected and remains unchanged.
Added
- Session state, FSM event and BGP notification logs include the session ID and last installed TCP endpoints. Sent collision-resolution notifications also record the owning FSM state before teardown, allowing packet captures to be correlated with the closing connection.
InjectionService.BatchListFlowSpecExportDispositionsreads the per-peer export dispositions of up to 1000 locally injected FlowSpec rules, global or VPN, in one paged walk, asBatchListPathExportDispositionsdoes for unicast keys. A key with no local rule is listed withfound = false, and a malformed key is listed at its position with a per-keyerror(invalid_key, with akeys[i]:message); neither fails the call. An empty, oversized or duplicate key list returnsINVALID_ARGUMENTnaming the key's index. Each page reads its keys in one RIB turn, and a resumed page returnsABORTEDwhen any listed rule changed. The RPC is asensitive_read, like the single-keyListFlowSpecExportDispositions, and this diagnostic RPC is outside v1. Clients need a daemon newer than v0.82.0; older daemons returnUNIMPLEMENTED. See FlowSpec batch read-back.rbgp healthprints the running daemon's version (Version:, anddaemon_versionin JSON,nullwhen an older daemon reports none). After a package upgrade without a restart it differs fromrustbgpd --version, which reads the binary on disk; the upgrade runbook now verifies with it. The opt-inrbgp-jsonenvelope carries this additive field at version 1.3 in this release;rbgp-ribstays at 1.1. See Package upgrade and rollback.[mrt] max_fileskeeps at most that many dumps, deleting the oldest<file_prefix>.*.mrt[.gz]files after each successful publish. Unset keeps every dump, as before; 0 is rejected. Restart-required like the rest of[mrt]. See[mrt].NeighborStategainsadmin_state, which says whether the daemon holds a neighbor down and which owner did: an operator disable, the configuredadmin_down, a max-prefix shutdown latch, or the latch after repeated session task crashes.rbgp neighborand the TUI show a held-down neighbor as `Idl...
v0.82.0
Release framing — hardening and composable policy. This release hardens the daemon against peers, RTR caches and API clients: explicit resource limits on Add-Path paths, RPKI records, BFD timers and outbound queues, fail-closed handling of runtime state, and refusal of malformed or out-of-state input.
.rpolbecomes composable, with callable policies and typed parameters, and several policy semantics change; read the upgrade notes before reloading existing policy files. The daemon also originates IPv4 and IPv6 VPN FlowSpec through the controller API, outside the v1 inventory.rustbgpd-wire0.28.0,rustbgpd-fsm0.15.0 andrustbgpd-rpki0.10.0 move to a new wire line together.
Security
- BFD local discriminators are now drawn at random from the operating system's CSPRNG instead of counting up from 1. A control packet selects its session by Your Discriminator alone (RFC 5880 §6.8.6), so with sequential values a configured peer could derive another session's discriminator from its own and send packets that moved that session's state. Random values stop that guessing. They do not authenticate the sender: a host that can observe a session's packets on the same segment can still forge its state (RFC 5880 §9). See BFD configuration.
- An Init or Up BFD session now discards a packet with Your Discriminator zero unless its My Discriminator matches the peer's learned discriminator. Previously an on-link sender spoofing the peer's address with TTL 255 could force an Up session Down with one forged packet, and the session then echoed the sender's discriminator. Down sessions still accept the zero-discriminator bootstrap, and the real peer can still signal Down after its own detection timeout. See BFD configuration.
- Bound Birdwatcher route requests to four concurrent workers and a ten-second HTTP deadline. Empty and oversized peer views now avoid the global primary route scan; other adapter scans refuse incomplete results above the new
--max-scan-routesmatching/returned-row limit (10,000 rows by default). This bounds adapter transfer and retention, not native RIB query CPU work. Operators serving larger nonempty views may need to raise this limit. - Prepare FIB status rows and their unfiltered order before publication, and build each filter's order on first use within that publication, so paged
ListFibRoutesrequests copy only their returned rows instead of converting and sorting the complete FIB on every page. Retired publications are released by the blocking publisher rather than by an API reader. - A candidate config sent over the API could make the daemon read any file it can read, even from an observer (
sensitive_read) principal throughDiffRuntimeConfig,PlanConfigTransactionorStreamPlanConfigTransaction(rbgp config diffandrbgp config plan). The candidate named the file as an.rpolfile, policy root, dataset, or gRPC TLS or token file. Three effects followed: a compile error echoed the first lines of that file, a device such as/dev/zerowas read without a size limit, and a FIFO blocked the peer-manager actor until a writer appeared. Belowoperator_only,.rpol, root and dataset paths must now resolve under the running config's policy directories: its[policy] rpol_rootsand the directories of its.rpoland dataset files. gRPC credential paths must be ones the running config already uses. The running config file and its credential files are never sources, not even through an.rpolimport, and stay protected after a config transaction or an EVPN apply installs a candidate. A candidate cannot raiserpol_max_graph_bytesabove the running value, and every refusal is the same message, so it reveals nothing about what a path names.ApplyEvpnRuntimecandidates are held to the same limits, taken from the on-disk config, and at most four load at once. Operator callers can still stage candidate sources elsewhere, asrs-config-renderdoes. For every API caller, errors for those files give the path, line and column and the compiler stage, without file text. Every.rpol, dataset and gRPC credential read during a config load, including on-disk loads, now refuses anything but a regular file without waiting on it and stops at a size bound. Diff and plan load the candidate on the blocking pool, so the peer-manager actor keeps serving other requests while it loads. - Pin external workflow actions to full commit SHAs and container base images to digests, with checks that reject mutable references. Dependabot tracks action pins and Dockerfile base-image digests.
- CLI unicast, BGP-LS and topology listings stop with an error when a daemon repeats a continuation token, including multi-page cycles. The repeated page is rejected before its rows are consumed.
rbgp doctor'sdaemon.config_freshnesscheck now compares the config file's mtime with the daemon's last config-file marker at full filesystem timestamp resolution. The daemon records the marker as seconds and nanoseconds; before this, both sides were whole seconds, so an edit saved in the same second as the daemon's own read or write was reported as current. Any difference from the marker now warns, including a file replaced with an older timestamp. A whole-second marker from an older daemon keeps the previous comparison. Two saves within one filesystem timestamp tick still cannot be told apart.- Bound the work and log volume of an UPDATE that repeats a path attribute. RFC 7606 §3 (g) dispositions are unchanged: a duplicate
MP_REACH_NLRIorMP_UNREACH_NLRIstill resets the session, and other duplicates are still discarded after the first occurrence. Previously each repeated occurrence produced its own decode record and WARN line, so a single UPDATE could emit thousands of log lines while the session stayed up. Repeats of one type now share one record per cause. The malformed-attribute WARN is now one summary line per UPDATE, logged with the action finally applied and the decoder cause behind it, and is emitted at power-of-two counts per TCP connection; every cause is still logged at DEBUG.bgp_update_malformed_totalstill counts every malformed UPDATE. - EVPN duplicate-MAC detection now counts only MAC moves detected by local learning (RFC 7432 §15.1). Remote Type 2 announcements and withdrawals also counted. A BGP peer that repeatedly advertised a MAC learned on this VTEP could reach the threshold with no local activity. With
action = "suppress_local", that withdrew the local Type 2 and filtered remote FDB programming for the MAC forrecovery_seconds. A local learn against a remote advertisement still counts, so a genuine duplicate MAC is still detected. Seeevpn_duplicate_mac_moves_total. rbgp diff snapshot from-bmpno longer copies an UPDATE's path attributes once per NLRI. The routes of one UPDATE now share one attribute set, the capture is read one BMP message at a time, and the snapshot is streamed to stdout after validation. Previously a 64 KiB capture could grow past 600 MiB of memory and abort under a memory limit instead of exiting 2. The snapshot is measured before the first byte is written: past the new 4 GiB output limit the conversion exits 2 with nothing on stdout. Input that continues past the 1 GiB input limit, as a pipe or a growing file can, is refused rather than converted from its first 1 GiB. Output bytes are unchanged. Seefrom-bmpbounds.rbgp diff snapshot from-mrtnow reads the dump once, one record at a time, into a private temporary file that is copied to stdout only after the whole dump converted, instead of loading the whole file and every decoded route. Memory stays near one record; previously a 21 MB dump could request a single 768 MiB allocation and abort instead of exiting 2. A record longer than 16 MiB, or a snapshot longer than 4 GiB, refuses the dump with exit 2 and nothing on stdout. Output bytes are unchanged. See the MRT view contract.- FSM Error NOTIFICATIONs for unexpected messages identify OpenSent, OpenConfirm or Established with RFC 6608 subcodes 1, 2 or 3 and carry the unexpected message type. Malformed UPDATEs before Established now receive the same FSM Error; malformed headers and OPENs keep their existing error codes. Session teardown and route cleanup are unchanged.
- Native gRPC mTLS listeners accept an optional
tls_client_crl_file: PEM certificate revocation lists checked against every client certificate chain at the TLS handshake. A revoked operator certificate was previously accepted until it expired. The CRL reloads with the other credentials on SIGHUP. Once configured it fails closed: a missing, empty, or unparsable file fails startup,--check, and the credential reload, and a CRL past itsnextUpdaterefuses every client until a fresh one is reloaded. A listener with a CRL offers no TLS session resumption, so a client cannot reuse a session from before an expiry or revocation. Listeners without the field are unchanged. See client certificate revocation. - gRPC credential files are now checked before they are read, at config load, startup, every SIGHUP credential reload,
--check, and inrbgp doctor. Atoken_file,tls_cert_file,tls_key_file, ortls_client_ca_filewhose target is not a regular file is refused, as is a world-writable token or private key; previously a FIFO at one of these paths could stall startup. A token or private key readable by every local user, owned by someone other than the daemon user or root, or open to a group other than the daemon's is still accepted, with one warning per load or reload that names the file, its mode and owner, and the remedy. The warning count...
v0.81.0
Security
- Update the protobuf build tooling's
pulldown-cmarkdependency to 0.13.5 for RUSTSEC-2026-0414.
Added
- Export route explain responses and
rbgp rib advertised --explainexpose validation-state codes for the deciding export-policy deny term. - FlowSpec injection and read-back accept direct target-IP redirect/copy actions for IPv4 and IPv6, distinct from the existing VRF redirect action. The IPv6 target uses path attribute 25, with lossless 20-octet raw values exposed in
ipv6_extended_communities;rbgp flowspecrenders the typed targets and includes nonempty raw values in JSON. Ordinary eBGP export filters non-transitive 20-octet values under the existing community policy, preserving received Partial flags; empty attribute 25 values cannot be encoded. BMP unicast snapshots retain attribute 25 inunknown_attrs, preserving value order, duplicates and received Partial flags. See the API contract and ADR-0143. Controllers need an implementing daemon release; an older server may ignore new fields. This does not add bounded lease mutations, qualify router forwarding, or enable a scrubber controller. - Guarded FlowSpec mutations (ADR-0144):
InjectionServicegainsIssueMutationWindow,AddGuardedFlowSpec,DeleteGuardedFlowSpecandRenewGuardedLease. A guarded add or renewal commits only inside a server-issued mutation window (at most 120 s; 64 live windows per owner). A guarded add never shortens the owner's lease: it caps any extension at its window and keeps a later deadline set under another window. A guarded renewal sets the lease to exactlynow + lease_seconds, capped at its window, so it can shorten the lease of every rule the owner holds. The owner's lease never outlives the latest-expiring window it used, so a request delayed before its handler, in the RIB queue or behind RIB work cannot revive a diversion after the owner's windows end; a controller reads the deadline back rather than inferring it from one window. Each guarded add carries a nonzero revision, and a guarded delete removes the rule only at its revision, so a late delete cannot remove a newer admission of the same key. Guarded owners live in their own namespace, reported asguarded:<owner>, which the leased and unleased methods cannot reach;DeleteFlowSpecwithoverride_ownerstays the break-glass. Read-back addsadmission_revisiontoFlowSpecRouteEntryandLeasedKey, andListLeasedKeysaccepts a guarded owner name. All four methods areoperator_only; successful window issues and guarded renewals audit at INFO. The methods and fields are outside the v1 contract; see guarded FlowSpec mutations. bgp_rib_actor_turn_duration_seconds{kind}times every RIB actor turn, the synchronous handling of one inbound RIB message, labelled by message kind (routes,peer_up,peer_down,query, and nine more). Every series is exported at zero from startup, and a new message type cannot build until it is assigned a kind. A turn of 200 ms or longer logs oneslow RIB actor turnWARN with the kind, duration, and the peer, route or member count where one applies, at most once per 10 seconds with a count of suppressed turns. See the operations reference.
Changed
- FlowSpec rules injected through
AddFlowSpecorAddLeasedFlowSpecare now selected and sent to Established peers at once after a planned restart, instead of waiting out RFC 4724 selection deferral. A configured neighbor that has not re-established a session does not hold selection. Received FlowSpec rules and the FlowSpec End-of-RIB still wait for the deferral to release; when it releases, the ordinary best-path order decides between a local and a received rule with the same key. Locally injected IPv4/32, IPv6/128and BLACKHOLE unicast routes also bypass selection deferral; other unicast injections remain deferred while the gate is active. See the ADR-0141 amendment. The v1 contract and the End-of-RIB grace window documentation now describe the unicast deferral window and state thatMarkReplayCompletedoes not shorten it. - After a planned restart, Graceful Restart selection deferral waits only for eligible peers that have re-established a session. A configured neighbor that stays down no longer holds selection for the full restart window. The existing marker-derived upper bound remains.
- Activating a hold preserves each current session's admitted routes while RTBH updates continue. Missing initial routes replay before End-of-RIB after release, and conditional advertisement settling restarts with its full interval. Controller replay grace remains a separate completion gate.
- Neighbor diagnostics distinguish dormant startup rosters from released selection-deferral families.
- Limit the unicast Graceful Restart selection-deferral bypass to locally injected IPv4
/32, IPv6/128or BLACKHOLE65535:666routes. Untagged defaults, aggregates and other non-host injections wait with received candidates. Removing BLACKHOLE from a non-host injection withdraws its old advertisement without exposing a received fallback before selection resumes. The existing injected FlowSpec exemption is unchanged. See the injection contract. - Clean VPN update-group members with identical announcement views share one payload and UPDATE encoding. Source and RT-Constrain exceptions, recovery and differing transport profiles retain per-member delivery. VPN labels, next hops, withdrawal order and terminal markers are preserved.
- Outbound Add-Path path IDs for unicast now stay with a path while it is sent, instead of following rank order. A new path takes the lowest free ID, and rank decides only which paths fit
send_max. A rank change no longer re-announces every path below it. Received paths keep their source peer's IDs, lowest first in rank order; when one peer contributes several paths, one leaving can still move a survivor to that peer's lowest ID, and two of its paths swapping rank swap their IDs. - The guarded FlowSpec mutation contract (ADR-0144) moves into the v1 inventory:
IssueMutationWindow,AddGuardedFlowSpec,DeleteGuardedFlowSpecandRenewGuardedLease, theadmission_revisionread-back onFlowSpecRouteEntryandLeasedKey, and theguarded:<owner>name in lease listings. They were outside the v1 inventory when added. The contract pins window-checked commits, the window cap on the lease deadline, revision-fenced adds and deletes, the guarded owner namespace and the definitive refusal statuses. Like the FlowSpec controller boundary, it pins the API shape only; forwarding, timing after controller loss and GR/LLGR retention stay outside the guarantee. See the v1 contract. - Published crates:
rustbgpd-wire0.26.1 → 0.27.0 (breaking),rustbgpd-fsm0.13.1 → 0.14.0 andrustbgpd-rpki0.8.1 → 0.9.0. Wire adds the IPv4 direct target-IPFlowSpecAction::RedirectToIpand the lossless twenty-octetIpv6ExtendedCommunitywith IPv6 target-IP helpers, and decodes path attribute 25 asIpv6ExtendedCommunitiesorIpv6ExtendedCommunitiesPartialinstead ofUnknown. FSM and RPKI move to wire 0.27 with no other API change.
Fixed
- An Add-Path receiver no longer briefly loses an RTBH path when a blackholing path that its session cannot send replaces it in the same pass as one it can. An example is a path whose attributes push a single UPDATE past a 4096-byte receiver's message ceiling. The unsendable path could take over the departing RTBH path's ID. The rejection then withdrew that ID before the sendable path's announcement. Path ID planning now checks such paths with the session's encoder whenever the prefix already has a blackholing row on the wire. A path the encoder rejects never keeps or takes a blackhole path ID, so the sendable path replaces the RTBH path in place. Prefixes with no blackholing row do no extra work.
- An Add-Path receiver no longer briefly loses an RTBH path when another path for the same prefix is announced above it or deleted. Path IDs followed rank order, so these changes renumbered the RTBH path, and the transport's withdraw-first UPDATE order or a separate re-announcement left a window with no blackhole for that prefix. Each Add-Path update now also sends its blackholing rows before any ordinary row, so a receiver that kept our routes across a session flap never sees an ordinary path replace its RTBH path first. A path that starts carrying BLACKHOLE (a received update or export policy) in the same pass as an RTBH path is deleted takes over that path's ID in place.
- Service RIB readiness queries while constructing and replacing inbound Enhanced Route Refresh stale inventories. Bound inventory growth by hash shard while preserving family isolation and exact stale-route counts.
- Allow metrics snapshots up to 64 MiB in
rbgp doctor,metrics,top, andevpn diagnose, so per-peer metrics above gRPC's default 4 MiB limit remain available. Doctor retains the full metrics file in its diagnostic bundle and explicitly marks the system section partial if collection fails. ListPathExportDispositionsandExplainAdvertisedRoutenow compare a route-server client's advertised route in that client's own form, after its route-server control communities are scrubbed and any prepend applied, for grouped members and per-client-best peers. An unchanged route that carries a control community readsCOMMITTEDinstead ofnot_yet_committed, including a route frozen during Graceful Restart selection ...
v0.80.1
Fixed
- A burst of route-server client session downs no longer withdraws slowly. With
rs_control_communitiesenabled, the default forroute_server_client, the RIB checked each departing session's withdrawals separately for every remaining client, so concurrent downs queued behind one another. In the scale benchmark's flap-storm cell (700 clients, 400,400 prefixes, 50 clients down at once), withdraw p50 fell from about 3.5 s on v0.80.0 to about 0.25 s. Withdrawals now share the update-group path unless a withdrawn route carries a control community for the client's route-server ASN; those keep the per-client check, so a client a route was suppressed toward is still not sent its withdrawal.
v0.80.0
Security
- Updated
rustls-webpkito 0.103.16 for RUSTSEC-2026-0382, which rejects certificate paths through distrusted emSign intermediates whose private keys are public.rustbgpduses it to verify gRPC mTLS client certificates and gNMI dial-out collector certificates, andrbgpuses it to verify the daemon's gRPC server certificate. Both verify against the operator-configured CA bundle, not a bundled root store, so exposure requires a configured trust anchor that chains to an emSign root. - Updated
webpki-rootsandwebpki-root-certsto 1.0.10 for RUSTSEC-2026-0381 and RUSTSEC-2026-0383, which remove theemSign ECC Root CA - G3root. Only thers-config-rendertool's HTTPS fetches use these bundled roots; therustbgpdandrbgpbinaries do not link them.
Added
[[bmp.collectors]] on_identity_conflict = "exclude"lets a neighbor whose link-local address another BMP-monitored neighbor already holds, on a different interface, establish with its session left out of BMP instead of being refused. The default,"refuse", keeps the earlier behaviour; any refusing collector refuses. An excluded neighbor is reported inNeighborState.bmp_identity_excluded,rbgp doctor(asinterface_only.<if>.bmpfor an interface-only neighbor, which also reports a learned address refused withbmp_identity_conflict) andbgp_bmp_identity_excluded_neighbors, and admissions are counted inbgp_bmp_identity_conflicts_total{outcome}. See the configuration reference.ListConditionalAdvertisementsreports each attached neighbor as anattached_neighborsrow, with a barepeer_addressand thepeer_interfaceof an IPv6 link-local neighbor. The bare-addressattached_peerslist is unchanged and now superseded.rbgp policy conditional-advertisementsshows a link-local neighbor asfe80::1%eth0, and its--jsonoutput addsattached_neighborsbesideattached_peers.InjectionService.BatchListPathExportDispositionsreads the export dispositions of up to 1000 locally injected unicast route keys per paged walk. It lists keys in request order, and a key with no local route when its page is read appears withfound = falseinstead of the call failing withNOT_FOUND. A page holds at mostpage_sizeentries: each peer row is one, so one key's rows can span several pages. Each entry costs at most one export explain. A resumed page returnsABORTEDwhen any named key's route content or presence, the Established peer set or their export policy differs from the first page. A route added and removed again between pages is not detected. See batch read-back.ListPathExportDispositionsand the batch form takeinclude_configured. It also lists every managed peer without an Established session, with the new dispositionPATH_EXPORT_DISPOSITION_NOT_ESTABLISHEDand reasonnot_established, so a controller no longer joins the result withListNeighbors. A neighbor added or removed between pages, or a listed peer becoming Established, returnsABORTED.ListPathExportDispositionsrows carrydeny_validation: for apolicy_deniedrow, onerpki_<state>oraspa_<state>code for each validation state the deciding export-policy statement's match tests, so a controller can tell a route-origin-validation deny of an RPKI-Invalid blackhole from any other policy deny without parsingdetail. Other rows leave it empty. See export read-back.- Fast external failover: a directly connected eBGP session now closes as soon as the kernel confirms that the interface carrying it lost carrier, went administratively down, was removed, or lost the session's local address, instead of waiting for the hold timer. A session qualifies only when its own connection proves it: the local address is on that interface and the peer is inside its connected prefix, or the peer is a link-local neighbor on that interface. Multihop, loopback-sourced and iBGP sessions are untouched. The stop sends no NOTIFICATION, retains no routes under Graceful Restart or LLGR, and the session reconnects normally. A netlink overrun is treated as unknown and stops nothing.
fast_external_failoverturns it off per neighbor or peer group (hot-applied) or in[global](restart-required); see the configuration reference. Operator-visible: the teardown cause names the interface and reason (fast external failover: interface eth1 (ifindex 4) carrier lost) in the neighbor's last error and the session-lost event,bgp_session_down_totalcounts it aslocal_no_notification, andbgp_netlink_subscription_overruns_totalgains theactor="fast_external_failover"label value. - Interop leg M126 runs the official FastNetMon Community 1.2.9 package against
rustbgpd-gobgp-bridge, rustbgpd and FRR 10.7.1: a replayed attack bans and unbans an IPv4 /32 and an IPv6 /128, which reach FRR with BLACKHOLE (65535:666) and a next-hop-self address, through a rustbgpd restart, a bridge restart and an unban while rustbgpd is stopped. Therustbgpd:devimage now includes the bridge binary. See the M126 receipt. examples/flowspec-controller/is a FlowSpec controller backend profile: border-router neighbors that carry onlyipv4_flowspec/ipv6_flowspec, with rules injected over gRPC. From the first release that ships it, the v1 upgrade chain archives it beside the route-server and route-reflector examples, so a later release that stops accepting that configuration fails the archived-fixture parse test.InjectionService.ListFlowSpecExportDispositionsreports the per-peer export disposition of one locally injected FlowSpec rule, named by itsAddFlowSpeckey, with the rows, reasons,include_configured, paging andABORTEDcheck ofListPathExportDispositions. A received rule with the same key never counts as the local rule's export. The RPC is asensitive_read, and this new diagnostic RPC is outside v1. See FlowSpec read-back.- gNMI
state/peer-asreports the AS the session negotiated for a neighbor withremote_asn = "external"or"internal", and omits the leaf while that session is not Established, instead of reporting 0. ASAMPLEsubscription deletes the leaf when the session goes down. Numeric neighbors are unchanged. See the gNMI reference. - Opt-in planned-restart End-of-RIB grace window:
gr_eor_grace_timeon a neighbor or peer group (default off) holds End-of-RIB toward a Graceful Restart helper after a marker-backed restart until one deadline fixed at daemon start, so injection controllers can replay routes before the helper removes its stale copies. Routes and withdrawals keep flowing; every End-of-RIB path respects the hold. Release is timer-driven and logged, andbgp_gr_eor_grace_released_total{peer,reason}counts it withreason="deadline". The window closes the observed gap only when replay completes before release; see the configuration reference. Operator-visible: an explicit outbound replay ends in a wire End-of-RIB, so it is now refused while the grace window holds that peer's family, as it already was during restart selection deferral; retry after the window ends. - Replay-complete signal for the planned-restart End-of-RIB grace window: list injection controllers in
[global] gr_eor_replay_owners, and each calls the newInjectionService.MarkReplayComplete(owner, incarnation)after it replays its desired state into the current daemon incarnation. The held End-of-RIB is released as soon as every listed controller has signalled, counted asbgp_gr_eor_grace_released_total{peer,reason="replay_complete"}; the window's deadline still releases it otherwise, with a WARN log naming the controllers that never signalled. The signal is ordered behind the controller's earlier injections, so the window closes the gap when every listed controller signals before the deadline. A stale incarnation isFAILED_PRECONDITIONwithErrorInforeasonINCARNATION_MISMATCH. The RPC isoperator_onlyand outside the v1 inventory. An empty list keeps the timer-only window. rustbgpd-gobgp-bridgesignals replay complete asgobgp-bridgeafter a post-restart reconcile pass finishes without a failure. See the configuration reference.ttl_security(GTSM, RFC 5082) is accepted on interface-only neighbors. When the neighbor binds a learned address, the BGP listener enforces Hop Limit 255 on connections from that address on that interface before the peer can be matched for inbound, and removes the selector only after that endpoint's peer is retired. A connection learned from an inbound SYN gets the same check, and active opens send Hop Limit 255. The IPv6 listener answers with Hop Limit 255 from startup, or from the reload or config transaction that introduces interface-only GTSM, before the neighbor can bind, and never lowers it; a GTSM peer that sends no RAs and dials in is therefore learned. Turningttl_securityon or off reloads as a session settings edit, and a deleted neighbor's selector is removed after its peer. A connection accepted under a selector that a reload has since turned off has its Hop Limit minimum cleared before the new session takes it. The selector matches by address and interface, so it never applies to a neighbor on another link that shares the address.ttl_security_hopsabove 1 is rejected, since the peer is directly connected. See Interface-only neighbors.- An interface-only neighbor now also learns its peer's link-local address from the peer's BGP connec...
v0.79.0
Added
rbgp rib deleteandrbgp flowspec deletetake--owner <name>and--override-ownerfor entries added under an injection lease, so an operator can remove a stuck blackhole or filter whose controller is gone. Without them, deleting an owned entry fails with exit status 1, names the owner and points at both flags.rbgp ribroute tables gain aLeasecolumn, andrbgp flowspec received 0.0.0.0lines aleasesuffix, when an entry is owned;--jsonrows gain aleaseobject (owner,generation,remaining_ms). Output for unowned entries is unchanged.tools/gobgp-bridgeaddsrustbgpd-gobgp-bridge, a separate tool outside the daemon and the v1 contract. It serves GoBGP v3AddPathwith binary IPv4 or IPv6 unicast NLRI and attributes on loopback, so RTBH detectors that drive GoBGP can announce and withdraw blackholes through rustbgpd's injection API without client changes. Other GoBGP methods returnUNIMPLEMENTED. Injected routes do not survive a daemon restart; see the bridge README for the supported subset, the security warning and restart behaviour.rustbgpd-gobgp-bridgekeeps the bans it has announced in memory and re-adds them on a reconcile pass (--reconcile-interval-secs, default 30), so a rustbgpd restart no longer ends mitigation for detectors that announce each ban once. A withdrawal the daemon could not acknowledge is retried on each pass and stops the ban from being replayed. The bridge tracks at most 65,536 paths and refuses new bans beyond that withRESOURCE_EXHAUSTED. The set does not survive a bridge restart; see the bridge README.- Owner-scoped leases on injected routes and FlowSpec rules (ADR-0141), so a stopped controller's state expires instead of living until the daemon restarts.
InjectionService.AddLeasedPathandAddLeasedFlowSpecadd under an owner's lease and return its generation;RenewLeaserenews it and returnsFAILED_PRECONDITIONfor a generation that is not live, including one from before a restart;ListInjectionLeaseslists the table. When a lease runs out, the daemon withdraws all of the owner's entries in one RIB turn, logs a WARN line, and counts it in the newbgp_injection_lease_expiries_totalcounter; the newbgp_injection_leasesgauge reports the owners in the table. An unexpected exit of the lease expiry task is a component failure: the daemon shuts down and exits 1.DeletePathandDeleteFlowSpecgainownerandoverride_owner, and local route and FlowSpec read-back reportinjection_owner,lease_generationandlease_remaining_ms. Unowned injection is unchanged. At most 64 owners hold a live lease, each with at most 16,384 entries. The new RPCs and fields are outside the v1 inventory for now. See leased injection. SelectionDeferralFamilyStatecarries a canonicalfamilylabel next to its numericafi/safi, andrbgp neighborJSON and detail output show it. The field is empty from an older daemon.InjectionService.AddPathaccepts an unspecified next hop (0.0.0.0or::) as next-hop self, resolved per session at export to the session's local address (IPv6: the neighbor'slocal_ipv6_nexthop, else the session's local IPv6 address) on eBGP, iBGP and route-server-client sessions. This is the default next hop of many RTBH controllers. An IPv6 route with no local IPv6 next hop on a session is refused for that peer with the exact-export reasonmissing_ipv6_next_hopinstead of being sent with::, and[[fib_tables]]rejects the route with the new reasonnext_hop_unspecified.AddPathResponse.outcomereportsCREATED,REPLACEDorUNCHANGEDagainst the previous local route, andDeletePathRequest.allow_missingreturnsOKwith outcomeNOT_PRESENTfor an absent route, mirroring the FlowSpec controller contract. The API reference documents the contract, restart re-injection and the transports for clients without TLS support.- The v1 inventory now pins
NeighborService.ResetNeighborand the everyday command paths:rbgp neighbor add,delete,enable,disable,reset,refresh-inandrefresh-out;rbgp peer-group list,get,set,delete,attachanddetach;rbgp neighbor-set list,get,setanddelete;rbgp dynamic-neighbor list,addanddelete; andrbgp policy chainwith itsshow,set-import,set-export,clear-importandclear-exportsubcommands. Operator-visible:rbgp neighbor <addr> softresetis nowrbgp neighbor <addr> refresh-in, pairing withrefresh-outandreplay-out;softresetremains accepted as an alias. Its--jsonresult reports"action": "refresh_inbound"(previously"softreset"), matchingrefresh_outboundandreplay_outbound. RouteEventandBgpEventcarry a typedint64 timestamp_unix_ms. The decimal-stringtimestampfield is still populated but deprecated; new clients should read the typed field, which carries the event time at millisecond resolution, so it orders events within the same second.rbgp rib addprints the unicast injection outcome, for exampleRoute 10.99.0.0/24 added (unchanged), andrbgp rib deletetakes--allow-missing, which exits 0 and printsRoute 10.99.0.0/24 not presentfor an absent route; without the flag a missing route is still an error. The--jsonresults of both carryoutcome(created,replaced,unchanged,deleted,not_present, orunknownfor an older daemon), asrbgp flowspec addanddeletealready do. The API reference describes the outcomes.- Each tagged release publishes the exact tagged
proto/rustbgpd.protoas therustbgpd.protorelease asset, with arustbgpd.proto.sha256checksum, so controllers can pin generated stubs to a daemon release instead of hand-vendoring the file. The API reference has the download, verify and regenerate recipe. Publishing the file promotes no alpha field into the v1 contract. InjectionService.ListPathExportDispositionsreports, for one route added withAddPathand named by its(prefix, prefix_length, path_id)key, one export disposition per Established peer: committed to the peer's Adj-RIB-Out, withheld with a bounded reason (for examplefamily_suppressed:missing_ipv6_next_hop,export_policy,outbound_prefix_limit,exact_export_rejected:<reason>ornot_selected), or pending. A route for the same prefix from another source never counts as this route's export, and a committed disposition does not mean the peer received the route. Peers are paged in address order. The method is asensitive_readand joins the v1 inventory withAddPathandDeletePath. See the export read-back reference.
Changed
rbgpruns on a single-threaded async runtime instead of starting one worker thread per host CPU on every invocation, so one-shot commands start faster and their startup cost no longer grows with the host's core count. Scripts, exporters, and probes that callrbgpin a loop benefit most.- A dirty update-group member that holds an admitted-key recovery proof now resyncs with fewer full passes over that proof: the commit reuses the pre-send reservation, retention checks skip unused entry lookups, proof keys are no longer copied into a temporary prior or the resync's prefix scope when the existing fallback already covers a refusal, and proof lookups compare addresses as integers. Wire output, withdrawal duties and recovery memory are unchanged; full-table mass-dirty recovery spends less RIB-actor time per proof-backed member.
rustbgpd-gobgp-bridgenow passes a0.0.0.0or::next hop through as next-hop self instead of refusing it, so detectors keep their default next hop. Withdrawals useDeletePathwithallow_missing, and the bridge logs the daemon's add and delete outcome for each request. See the bridge README.InboundPrefixLimitStatenames each inbound max-prefix bound withfamilyandstage, the labels of thebgp_max_prefix_*metrics, instead of a singlescopestring (field 1, now reserved by number and name).familyisaggregateor a canonical family label, andstageisacceptedorreceived. A row now joins its metric series without rebuilding the label. Themax_prefix_warningsession event detail, theinbound_prefix_limits[]rows ofrbgp neighbor --json, the "Inbound Prefix Limits" block of the human detail view, and therbgp doctorcheck namepeer.<address>.inbound_prefix_limit.<family>.<stage>use the same spelling. See the API reference.- Prometheus series that carry an address family now use one
familylabel with the canonical configuration family labels (ipv4_unicast,l2vpn_evpn,linkstate, and so on). The RIB gaugesbgp_rib_prefixes,bgp_rib_adj_out_prefixesandbgp_rib_loc_prefixespublish one series per family instead of per table, soafi_safi="all"no longer hides an IPv4 + IPv6 unicast sum. The max-prefix series split the oldscopeintofamilyandstage(acceptedorreceived), so they join the RIB gauges withon(peer, family).bgp_rpki_vrp_countlabels its address familyafi. The old label names and values are not emitted alongside the new ones; see the upgrade note for the complete mapping and the operations reference for the series. Operator-visible: dashboards, alerts and scripts that select or aggregate onafi_safi,scopeorafmust be updated; the shipped alert rules and Grafana dashboards are. - Output now uses one spelling per value, the one configuration uses. The gRPC `NeighborConf...
v0.78.0
Security
- Update rustls to 0.23.46, fixing RUSTSEC-2026-0346 (session
Debugoutput could expose TLS secrets) and RUSTSEC-2026-0347 and RUSTSEC-2026-0349 affecting the gRPC TLS listener andrbgpclient.
Added
- Prepare bounded recovery provenance and connection-fenced reset handling for EVPN update groups. The counter
bgp_evpn_recovery_provenance_exhausted_total{cause}records resets accepted by the captured connection. EVPN grouping remains inactive pending storage, encoding and qualification; current private EVPN exports are unchanged. - Prepare shared EVPN route storage and admitted member projections for update groups, retaining received route-target and reflection inputs across staging, regroup and replay. EVPN grouping remains inactive pending live admission, shared encoding and qualification.
- A pinned FRR 10.7.1 interoperability leg for global IPv4 and IPv6 SRv6 service routes, proving selection, Prefix-SID preservation through route reflection and independent withdrawals. This is a control-plane proof; SRv6 service import, origination and forwarding remain unsupported.
bgp_outbound_eor_deferrals_total{peer}counts End-of-RIB markers that were deferred because the peer writer channel was full or closed. These deferrals were previously only logged. The marker stays pending and is retried after the peer's next resync.bgp_outbound_route_drops_totalis unchanged. The Grafana "RIB ingest pressure" panel plots the new counter.NeighborStatereports outbound resync and update-group recovery fallback per peer:outbound_resync_pending,outbound_dirty_secondsandupdate_group_recovery_fallback(thecauselabel ofbgp_update_group_recovery_fallback_total).rbgp neighbor <addr>shows them asOutbound ResyncandRecovery Fallback, and its JSON adds the same keys.rbgp doctoraddspeer.<addr>.outbound_resync, yellow while a fallback cause is set or a resync has been pending for 60 seconds, andrib.update_group_recovery, yellow once apeer_limit,daemon_limitorallocation_failurefallback has occurred since daemon start. See Update-group recovery fallback. The additive fields change the v1NeighborServicemessage-graph digest.- Bounded received and advertised VPN, labeled-unicast and RT-Constrain route pages, with typed family selectors, exact or longer prefix filters, and RD or membership filters as appropriate. Views distinguish the required received/advertised neighbor from an optional best-route source filter. An additive EVPN best-route page filters MAC, ESI and VXLAN VNI without copying the full table. EVPN received/advertised pages also accept the explicitly unstable MAC, ESI and VNI filters, with exact raw RD input available on the new family pages and existing EVPN peer pages. New EVPN peer filters require daemon acknowledgement before the CLI prints a result, preventing an older server from silently ignoring them. New
rbgp rib vpn|labeled|rtc received|advertisedandrbgp evpn bestcommands expose mutation-fenced continuation tokens and JSON page metadata. Group-owned VPN advertised pages refuse reads while that destination is resynchronizing. Existing unpaged RPCs and CLI arrays are unchanged.ListVpnRibRoutes,ListLabeledRibRoutesandListRtcRibRoutesand therbgp rib vpn|labeled|rtccommand paths join the v1 inventory in the scopedroute-reflector-l3vpn,route-reflector-labeled-unicastandroute-reflector-rtcroles, andListBestEvpnRouteswith route types 1 to 5, including its MAC, ESI and VNI filters, joins the scopedroute-reflector-evpnrole (see Changed). The MAC, ESI and VNI filters on EVPN received/advertised pages and therbgp evpn bestcommand remain outside v1. rbgp policy checkworks as a CI and editor gate. Every check now computes the static lints, and--deny-lints[=LINT,...]fails the check with exit code 4 on the named lints (or all of them), after the existing 1, 2 and 3. Without the flag, lints stay warnings and exit codes are unchanged.--fail-on-emptyexits 2 when the file and its imports define no tests.-joutput is now the versionedrbgp-policy-check/1.0document; a newfindingsarray locates each compile error and lint by file, line and column, with a stable code, severity, label and notes. Existing keys, including the message-onlydiagnosticsstrings, keep their shape. See the CLI reference.rbgp policy compareand theComparePolicyRPC compare a candidate.rpolexport chain with the chain installed for one peer over the same live Loc-RIB walk, and report only the routes that change: newly rejected, newly accepted, and accepted with different attributes, with exact counts and at most 1,000 samples per class.--replace MEMBERswaps one installed member and keeps the rest of the chain, so routes an earlier member rejects are not reported as candidate accepts. Native egress steps apply to neither side. The run is read-only, moves no counters, requiresSensitiveRead, and is outside the v1 inventory (comparing with the installed chain).bgp_readiness_probe_failures_total{reason}counts each failed/readyzprobe once, by the failing component:deadline,peer_manager_unavailable,peer_manager_timeout,rib_unavailable,rib_timeout,rib_stalledordaemon_unavailable. Readiness status, response bodies and deadlines are unchanged.bgp_inbound_connections_dropped_total{reason}now exports every reason at 0 from startup, so a first drop is visible toincrease(). See HTTP probes.- Log slow
/readyzHTTP phases when accepting a connection through reading its request line, or starting its probe through writing its response, exceeds 100 ms. Warnings separate handler startup, request-line reads, the core probe and response writes; existing probe-failure warnings also include elapsed context. Readiness status, response bodies and deadlines are unchanged. bgp_update_group_recovery_limit_bytes{scope}exports the fixed unicast/VPN update-group recovery caps (peeranddaemon), andbgp_rib_outbound_dirty_peersandbgp_rib_outbound_dirty_oldest_secondsreport how many peers are currently dirty and awaiting outbound resync and how long the longest-waiting one has been dirty, sampled from RIB state. See update-group recovery fallback.- Measure stalls in process instead of through sampled
/readyzprobes.bgp_rib_actor_slice_seconds{stage}times every poll of the RIB actor (stage="actor_poll") and the slices between sampled readiness checkpoints, andbgp_rib_actor_slice_max_microseconds{stage}reports the longest slice since the previous metrics render. A 10 ms tokio probe recordsbgp_runtime_scheduler_lateness_seconds, andbgp_runtime_worker_busy_microseconds_total{worker}exports each runtime worker's busy time, so RIB actor occupancy can be told apart from runtime worker saturation. The histograms resolve 1 ms to 2 s with dense buckets around 25, 50, 100, 200 and 500 ms. The overview dashboard gains panels for both, and the operations reference documents them. Readiness semantics and deadlines are unchanged. - Opt-in RFC 9324 local re-evaluation: with
local_revalidation = truein[rpki], sessions whose import policy matches RPKI or ASPA state keep their pre-policy IPv4/IPv6 unicast input, and a VRP or ASPA change re-runs import policy locally for the covered routes instead of sending inbound Route Refresh to every dependent peer. Each session retains at most 65,536 validation rejects; beyond that it falls back to Route Refresh until the session resets. FlowSpec families and IRR dataset swaps keep Route Refresh. See local re-evaluation. - Policy tests support
removes large-community GA:*:*,not removedcommunity assertions, andwith onlyto require an exact modification set. The IXP Manager renderer tests pin the wildcard export scrub and retention of other ASNs' communities. RT/RO removal checks follow their decoded identity across encodings. [policy] require_passing_tests(defaultfalse) makes every config load run the in-languagetestblocks of each loaded.rpolunit and refuse the load when one fails, naming the file, the test, and the expected and actual outcome. With it on, the daemon refuses to start on such a policy and a SIGHUP reload is rejected without runtime effect, keeping the running policy.rustbgpd --checknow runs these tests whether or not the setting is on and exits 1 on a failure, so a config whose.rpoltests fail no longer passes--check. Theconfig source loadedlog line gains anrpol_test_msphase. See the configuration reference..rpolin-language tests can assert what a policy removes and what it leaves alone:with removes community LIT(and thelarge-community/ext-communityforms),without community LIT, andwithout local-pref|med|next-hop|prepend. Previously a scrub term was covered only byexpect p == accept, which still passed after the scrub was deleted.expect chain [p1, p2(args), ...]evaluates several policies as one configured chain, through the daemon's own chain assembly and merge rules, with coverage attributed to each member. The renderer's shared hygiene policy now includes a test that fails if any scrub term is removed. See Tests.rbgp config last-reload, its--jsonoutput andGetLastSighupReloadnow report the RIB-side outbound convergence of acompleteSIGHUP reload:convergingwith the number of peers ...
v0.77.0
Security
rs-config-renderparses YAML withyaml_serde0.10.7 instead of the deprecatedserde_yaml0.9.34, clearing RUSTSEC-2024-0449 (unsafe-libyamlunmaintained).yaml_serdeis the YAML organization's maintained continuation ofserde_yamlwith the same libyaml port, so template-context parsing is unchanged. Therustbgpddaemon never carried this dependency; no configuration change is needed.
Added
rbgp doctorwarns when an established eBGP peer has no effective inbound prefix limit after peer-group inheritance, naming the peer and available configuration keys. iBGP and route-reflector clients are excluded; the advisory warning retains exit status 0.- Opt-in
[evpn_core_isolation](ADR-0140) holds the CE-facing links of bound Ethernet Segments administratively down while the PE has no Established or GR-retained L2VPN/EVPN session, or every configureduplinksentry has lost carrier, and at startup until EVPN has synced, so an all-active CE moves its traffic to the other ES member instead of hashing flows into a PE that drops them. Every member of a bound bond is taken down (the bond stays up); a segment with no remote ES peer seen while the core was up is not held. A hold releases after EVPN has stayed synced forhold_after_sync_seconds(default 10) or, with a warning, afterbackstop_seconds(default 180). Each admin-down is preceded by a durable identity receipt inruntime_state_dir; clean shutdown, the newrustbgpd --release-core-isolation --runtime-state-dir DIRstop-hook helper, and the next start raise only links whose recorded identity still matches, and report the rest asownership_ambiguous. Newevpn_es_core_isolation_state{interface, state}andevpn_core_isolated{signal}gauges andrbgp doctorchecksevpn.es.<interface>.core_isolationandevpn.core_isolation.uplinksreport it. See[evpn_core_isolation]. - Pinned GoBGP 4.10.0 interoperability coverage for EVPN Types 1–5 route reflection through graceful restart, End-of-RIB stale sweep and long-lived graceful restart marking and expiry. This receipt does not change EVPN stability classifications or add a dataplane support promise.
- Neighbors and peer groups accept
admin_down = true, with an optional RFC 9003admin_down_reasonof at most 128 bytes, to keep a configured neighbor administratively down across restarts without deleting it. The peer is added disabled: it makes no connection attempts, refuses inbound connections, reads 0 inbgp_peer_admin_enabled, and stays listed inrbgp neighbor. OnSIGHUP, setting the key sends Cease/Administrative Shutdown with the reason and clearing it enables the peer. The runtimerbgp neighbor <addr> enable|disabletoggle stays transient and holds until a restart or a reload that changes the key.admin_downis rejected on a peer group referenced by[[dynamic_neighbors]].rbgp config importmaps BIRDdisabled, FRRneighbor X shutdown [message ...]and GoBGPadmin-downto the new key. See Administrative down. - A dynamic neighbor whose session went idle stays visible while the RIB retains its GR or LLGR stale routes:
rbgp neighbor,ListNeighborsandGetNeighborStatereturn a row for it with its retention phase and time left, marked by the new presence-awareretention_onlyfield ("retention_only": truein JSON, sourceretention only (no session or configuration)). The row disappears when retention ends.rbgp doctorruns only the retention check for such a row, andrbgp diff advertisedrefuses it as not configured. Therbgp neighbor --jsonlist now also carries the optionalgr_retentionrows, with stale-route counts, andgr_retention_available. See Graceful Restart. rbgp neighbor PEERandNeighborService.GetNeighborStateshow a per-family stale-route retention row while the RIB retains GR or LLGR stale routes for a peer, including while its session is down: the phase (gr_restart,gr_awaiting_eor, orllgr), the time until the RIB's next sweep or LLGR promotion for that family, and the stale-route count. The newgr_retentionrows and the presence-awaregr_retention_availableflag are additive;rbgp doctorwarns, naming the time left and the stale-route count, for each family in the LLGR phase. See Graceful Restart.- Neighbors and peer groups accept per-family inbound limits for the non-unicast families a route reflector carries:
max_prefixes_l3vpn_ipv4_unicast,max_prefixes_l3vpn_ipv6_unicast,max_prefixes_ipv4_labeled_unicast,max_prefixes_ipv6_labeled_unicast,max_prefixes_l2vpn_evpn,max_prefixes_ipv4_flowspec,max_prefixes_ipv6_flowspecandmax_prefixes_rtc. Each bounds the unique routes accepted in its family, with Add-Path paths of one route collapsed, independently of the aggregatemax_prefixesand of every other family, so a VPN leak can be capped without capping the peer's EVPN routes.max_prefix_actionapplies per family:shutdownsends Cease/1 carrying the RFC 4486 AFI, SAFI and bound,blockwithholds net-new routes of that family while the session stays Established, andwarningreports. The keys hot-apply on reload.bgp_max_prefix_usage,bgp_max_prefix_limit,bgp_max_prefix_headroomandbgp_max_prefix_blockinggain the family label as ascopevalue while the bound is set. See the neighbor reference. rbgp config last-reloadandrbgp doctorexpose the latest SIGHUP result, including a closed failure reason and bounded applied/unapplied operation identities for partial reloads. gRPC credential publication is recorded as an applied operation on success or a known partial result on failure. Doctor also warns when the retained reload task fails.
Fixed
- In-place
rbgp policy fmtrewrites use a unique sibling temporary file, preserve file permissions, and sync the file and parent directory. MRT dumps also sync their completed payload before rename and the output directory afterward. Both writers remove their temporary file when publication fails. - Show still-current Linux EVPN L2 apply failures in the
evpn_current_apply_failuresmetric and instance status, including host-wide failures and operations held by permanent suppression or retry backoff. Clear them after success, withdrawal, or a changed operation shape. - Legacy unscoped EVPN remote-MAC FDB programming checks foreign VLAN siblings before changing the bridge entry, including a static row present only on the port's PVID. A conflicting sibling blocks programming or removal until the operator clears it; explicitly configured bridge VLANs retain their own scope. Shared nexthop groups also defer installs and updates while a blocked row retains a reference to the group.
- Forward aliased known unicast through a healthy bound all-active Ethernet Segment when only an ES peer learned the CE MAC. Eligible peer Type 2 routes now create owned local-port FDB rows with pre-apply local/foreign ownership checks, VLAN scope, and duplicate-MAC quarantine. Withdrawal, drain, link failure, and segment removal remove that forwarding state. All-active CE forwarding requires
interface; peer-only routes do not create new BGP advertisements. After restart, live peer forwarding retains validated local VLAN siblings and converts an adopted overlay row without waiting for orphan-reap grace. Single-active DF recovery retains ordinary local MAC relearning. Reconciliation repairs incomplete owned legacy VLAN row sets and retains desired adopted rows while their startup attachment is not ready. - An EVPN Type 1 Ethernet A-D route with an all-zero ESI no longer resets the session. A single-homed VPWS per-EVI route carries ESI 0 (RFC 8214 §4), so a reflector now accepts and reflects it unchanged; the per-ES form is accepted too. A Type 4 Ethernet Segment route with an all-zero ESI names no multihomed segment (RFC 7432 §8.1.1) and is now handled as RFC 7606 treat-as-withdraw for its UPDATE instead of a session reset.
- An EVPN Type 2 route with MAC Address Length 0 no longer resets the session. RFC 9135 §9.1.1 makes it treat-as-withdraw: its UPDATE withdraws its other routes, and the route itself is dropped. Because the MAC Address Length is part of the route key (RFC 7432 §7.2), it never removes the peer's 48-bit route for the same MAC, in an announcement or a withdrawal, and it is never reflected. A Type 5 route announced with both a non-zero ESI and a non-zero gateway IP is now treat-as-withdraw (RFC 9136 §3.2) instead of being accepted and reflected. An
MP_UNREACH_NLRIwhose EVPN routes were all dropped, including unsupported route types, is no longer mistaken for End-of-RIB. Likewise, anMP_REACH_NLRIwhose NLRI were all dropped still counts as carrying NLRI, so a treat-as-withdraw error in its UPDATE no longer escalates to a session reset (RFC 7606 §5.2). - Unicast export explain reports
outbound_prefix_limit_reachedwhen a peer's outbound maximum withholds a net-new prefix, including the family, limit, and usage. Grouped peer explanations use the same admitted route view as advertised listings; admitted prefixes remain exportable at the limit. bgp_gr_stale_routes{peer}now falls as a reconnected peer re-advertises or withdraws its stale routes before End-of-RIB, and when the GR timer purges routes, either at promotion to LLGR (families without LLGR andNO_LLGRroutes) or while older LLGR-stale routes remain. It was set only at GR entry, End-of-RIB and the LLGR sweep, so it overstated the retained routes in between. The gauge now reads per-family counters the RIB maintains on every stale-route change instead of scanning the peer's routes. Tearing down a peer whose only remaining retention was an LLGR deadline from an earlier restart now also clear...
v0.76.0
Added
just bench-converged-rejoin <out-dir> <base> <head>measures the reloadstall converged-rejoin (GR helper) flapstorm, base against head at a low and a high K in alternating order, one fresh daemon per cell behind the quiet-host gate. Its shape and bars are written tocampaign.jsonbefore the first cell, andACCEPTANCEoverrides the bars from a JSON file. The verdict is PASS, FAIL or INVALID, and any missing or malformed cell makes it INVALID.SMOKE=1runs a small pipeline check that applies every validity check but no performance bar, andDRY_RUN=1prints the plan. Seebench/scale/reloadstall/README.md.- Conditional advertisement conditions accept prefix ranges (alpha, outside the v1 inventory). A
condition_prefixesentry may be a table such as{ prefix = "10.0.0.0/8", le = 24 }or{ prefix = "2001:db8::/32", ge = 48, le = 64 }, with prefix-listge/lesemantics, beside the existing exact strings. Invalid bounds are load errors. Ranges are tracked as routes change, without a table walk.rbgp policy conditional-advertisementsandPolicyService.ListConditionalAdvertisementsreport each range's bounds, its count of present prefixes, and up to eight of them. See configuration. - Conditional advertisement status and peer-group attachment (alpha, outside the v1 inventory).
rbgp policy conditional-advertisements(aliasconditional) and the newPolicyService.ListConditionalAdvertisementsRPC (sensitive_readtier, 2 s deadline) list each installed definition with every condition prefix's observation, the applied gate (pending,advertise, orsuppress), the settle timer and its remaining time, and the attached neighbors;--jsonprints the same fields.[peer_groups.<name>] conditional_advertisementsattaches definitions to every static member that sets no list of its own, with theexport_policy_chainoverride rule; dynamic neighbors do not inherit it.SetPeerGroupkeeps the configured group value, and a SIGHUP reload that changes it runs on the generation route. See configuration. - Conditional advertisement for IPv4 and IPv6 unicast (alpha, outside the v1 inventory).
[policy.conditional_advertisements.<name>]defines anadvertise_policypredicate,advertise_if = "present" | "absent", exactcondition_prefixes, an optionalcondition_policy, and asettle_timedebounce (default 5 s); static neighbors attach definitions withconditional_advertisements = [...]. Matching routes are advertised to an attached neighbor only while the condition holds. The gate runs last, just before the neighbor's export chain, in every unicast export mode (single best, Add-Path,per_client_best, ORR); a suppressed route is withdrawn silently, and anadvertise_policyevaluation error suppresses. Conditions react to route changes rather than a scan timer. Attached neighbors use the per-peer export path with the update-group reasonconditional_advertisement, andrbgp rib --prefix P advertised PEER --explainreportsconditional_advertisement_suppressedorconditional_advertisement_eval_error. New metrics:bgp_conditional_advertisement_condition,bgp_conditional_advertisement_permitted, andbgp_conditional_advertisement_transitions_total; acondition_policyevaluation error counts onbgp_policy_eval_errors_totalwithdirection="condition". See configuration and ADR-0137. - The unsent-data threshold experiment can run isolated container RTT legs with daemon-only cgroup accounting, receiver-ingress delay and live TCP RTT evidence. The native namespace path now uses the same ingress shaping and rejects missing delay or dropped packets. Production defaults are unchanged.
[[ethernet_segments]]acceptsesi = "auto-lacp", which derives the RFC 7432 §5 Type 1 ESI from the CE's LACP system MAC and port key as reported by the 802.3ad bond named byinterface. Readiness is checked at runtime: the daemon andrustbgpd --checkdo not depend on the bond. The segment originates nothing while its bond is missing, down, not 802.3ad, or partnerless, logging the reason. It is added when LACP converges, and it is withdrawn and re-originated under the new ESI when the CE is replaced, with no restart. Type 2 (STP) derivation is not implemented. See Auto-derived ESI.esi = "auto-lacp"Ethernet Segment readiness is visible outside the log. The newevpn_es_auto_esi_state{interface, state}gauge is a state set per configured bond, withstateeitherreadyor the not-ready reason (no_partner,down,not_lacp_mode, …).rbgp doctoradds anevpn.es.<interface>.auto_esicheck that names the reason, and the shipped alert rules addEvpnAutoLacpSegmentNotReady(not ready for 10 minutes). See Auto-derived ESI.- Allow single-homed VLAN-aware bundle members to bind an IP-VRF configured with
overlay_index_mode = "interface_less". Routed Type 5 prefixes retain Ethernet Tag0and the separate IP-VRF L3VNI, RD, route targets and Router MAC; member Type 2/3 routes retain their Ethernet Tags. Linux SVI/VRF attachments remain operator-provisioned. Bundle multi-homing, locally assigned VNIs, non-zero-tag Type 5, and GW-IP/ESI overlay-index resolution through bundle members remain unsupported. A local SR Linux 25.10.1 receipt qualifies routed forwarding, Type 5 withdrawal and binding reloads; EVPN remains alpha. See the bundle configuration. rbgp evpn instancesand theListEvpnInstancesAPI now report, per L2VNI, the remote Type 1 EAD-per-EVI and Type 2 routes that the VTEP does not program, by reason (for exampleethernet_tag_mismatch). The newEvpnInstanceState.remote_route_drop_countsfield carries the same current values as theevpn_l2_remote_route_drops{vni,reason}gauge. The human output addsremote-route-drops=[reason=N,...]when a VNI has drops; JSON addsremote_route_drop_counts. See the API reference.- The VTEP now counts remote Type 1 EAD-per-EVI and Type 2 routes that match a local L2VNI by VNI and route target but carry another Ethernet Tag. Before, it skipped them silently. The new
evpn_l2_remote_route_drops{vni,reason}gauge reports them with reasonethernet_tag_mismatch. The routes stay in Adj-RIB-In and are still reflected.[[evpn_instances]]also gainsservice_interfaceandethernet_tagfor the VLAN-aware bundle service, validated against the bundle rules. See the configuration reference. - A daemon started with no
[[ethernet_segments]]now takes its first Ethernet Segment live. SIGHUP orApplyEvpnRuntimecan add an explicit-ESI segment or anesi = "auto-lacp"segment without a restart, where both were rejected withFAILED_PRECONDITIONbefore. The segment orchestrator starts with the first committed segment; theauto-lacpreadiness probe starts the first time the committed config names anauto-lacpbond. A refused or failed apply starts neither. Coordinated shutdown drains a live-started orchestrator the same way as one started at boot. See Auto-derived ESI. Operator-visible: on a daemon with no Ethernet Segment,SetEthernetSegmentDrainfor an unconfigured ESI now returnsNOT_FOUNDinstead ofUNAVAILABLE. - EVPN preference DF election now honors RFC 9785 Don't-Preempt recovery: recovering segments wait three seconds for remote Type 4 routes (within 30 seconds of daemon start, also until an L2VPN/EVPN session is established, every established one has sent End-of-RIB, and graceful-restart selection deferral no longer holds L2VPN/EVPN), inherit a protected reference PE's preference with DP=0, and restore configured values when becoming the reference. Equal-preference elections prefer DP=1 before the lowest originator IP. Explicit administrative DF changes still force a switchover; mixed DP and remote routes arriving after the wait cannot guarantee non-preemption. Single-active attachment circuits stay blocked during the recovery wait.
EvpnService.ListEthernetSegmentsandrbgp evpn es listreport the DF preference and Don't-Preempt bit the local Type 4 route carries (advertised_df_preference,advertised_df_dont_preempt) beside the configured values, and whether RFC 9785 recovery is still waiting for remote Type 4 routes (df_recovery_pending,df_recovery_remaining_ms). The advertised values differ from the configured ones while a recovering PE inherits another PE's preference.- The VTEP now serves single-homed VLAN-aware bundle members (RFC 8365 §5.1.2, ADR-0092). An
[[evpn_instances]]row withservice_interface = "vlan_aware_bundle"and an explicitethernet_tagis accepted. It originates its IMET and its local MAC-only, MAC+IP and SVI-MAC Type 2 routes under that Ethernet Tag, and programs remote Type 2 and Type 3 routes only when they carry its tag, its VNI and a bundle route target. The FDB rows land on the member'sbridge_vlan, so the same MAC under two tags is kept in two VLANs. For a bundle member,evpn_l2_remote_route_dropsnow also countsvni_mismatch(route target and tag select the member but the VNI differs) andmultihoming_unsupported(a multi-homed Type 2 or an EAD-per-EVI route). For every L2VNI it also counts received IMET routes under another Ethernet Tag asethernet_tag_mismatch.ListEvpnInstancesaddsservice_interfaceandethernet_tag, and ...