Skip to content

configuration

Thomas Mangin edited this page Nov 14, 2026 · 4 revisions

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

This is the configuration section. Read Overview first if you have not edited a Ze config before. Everything else here can be reached out of order.

A keyword Ze no longer accepts is refused at parse, and the error names its replacement: a peer's process <name> { } is now attach process <name> { }, and certificate-fingerprint is now ca <pki-ca-name>. The full list is in Configuration reference.

Ze accepts one syntax and converts no old one. ze config migrate [format set|hierarchical] <file> only rewrites a current config between the set form (the default) and the hierarchical form, hashing plaintext passwords on the way. A config in an older Ze syntax is refused as a parse error, never rewritten. ExaBGP configs go through ze exabgp migrate instead (ExaBGP migration).

A value the schema does not accept is refused the same way wherever it is written: a config file, ze start, a reload, the editor, the web, REST, gRPC and gNMI. The refusal names the setting's full path and the value, lists what the leaf accepts, proposes the closest value when one is close, and ends with the exact line that fixes it. A range gives its bounds and a pattern its format in words, never a regular expression:

line 18: bgp peer peer1 session capability route-refresh: "requre" is not an accepted value (did you mean require?)
route-refresh accepts only these values:
  enable   Advertise the capability; no enforcement
  disable  Do not advertise the capability; no enforcement
  require  Advertise the capability; refuse the session when the peer does not offer it
  refuse   Do not advertise the capability; refuse the session when the peer offers it
fix: route-refresh require;

A reload that refuses a config reports reload error: reload: config validation failed: ... with the same text, and the daemon keeps the config it runs. The editor's form of the refusal, with a set to type, is in Editor Workflow.

In the editor, commit always takes a subcommand: commit now, commit now force, commit confirmed <N> (optionally force), commit accept, commit abort, or commit verify. A bare commit is refused with that list, so a typo never applies a configuration. See Editor Workflow.

Route policy has one shape: filters are defined in the top-level policy { } block and attached per direction with filter { import { filters [ ... ]; final accept; } } at bgp, group or peer level. An EBGP peer with no policy in a direction rejects announcements in that direction (RFC 8212). See Route Policy.

Pages

  • Overview. How config works in Ze: YANG-modeled, atomic commits, draft sessions per user, hot reload.
  • YANG Model. Where the schemas live, how paths map, and what the validators enforce.
  • Editor Workflow. Edit, diff, commit, rollback, and commit confirmed.
  • Archive and Rollback. Revisions, archive destinations, manual and scheduled archives.
  • System. Host identity, users, SSH, listeners, logging, DNS.
  • Interfaces. Netlink-driven interface management, addressing, DHCP, bridges, mirroring.
  • FIB. The bgp-rib -> sysrib -> fib-kernel pipeline and best-path selection.
  • RPKI. RTR cache servers, VRP validation, fail-open timeouts.
  • Fleet. Multi-instance management over TLS.
  • Telemetry. Prometheus metrics endpoint.
  • Authorization. Profile-based command authorization.
  • BGP. Peers, families, capabilities, and the rest of the BGP subtree.

Home

About

First Steps

Configuration

Operation

Interfaces

Plugins

Plugin Development

Chaos Testing

Blueprints

Development

Reference

Clone this wiki locally