Page MenuHomeVyOS Platform

Add CLI support for watchfrr timeout configuration "set system frr watchfrr-timeout"
Closed, ResolvedPublic

Description

Currently in VyOS 1.5, the watchfrr timeout value (default 90 seconds) is not exposed in the VyOS CLI, The only way to change this parameter|valeu is by manually editing

etc/frr/daemons and setting:

watchfrr_options="--timeout=120"

This change does not survive VyOS commits, as /etc/frr/daemons so is regenerated from a template on every commit. The workaround requires a post-config script in /config/scripts/vyos-postconfig-bootup.script to reapply the change after each commit and reboot.

For large-scale deployments (ISP and IXP routers, full-table BGP, 100+ peers), the default 90-second timeout is insufficient. During heavy BGP reconvergence, the bgpd event loop may take longer than 90 seconds to complete processing, causing watchfrr to trigger a premature restart of bgpd, which in turn causes all BGP sessions to drop and reconvergence to restart from scratch, creating a crash loop.

The proposed CLI would be:

set system frr watchfrr-timeout <seconds>

This should map to the

watchfrr_options="--timeout=<seconds>" line in /etc/frr/daemons,

following the same pattern already used by set system frr file-descriptors.

Current workaround (not persistent across VyOS commits):

sed -i 's/#watchfrr_options=""/watchfrr_options="--timeout=120"/' /etc/frr/daemons
systemctl reload frr

Details

Version
1.5.0
Is it a breaking change?
Perfectly compatible
Issue type
Feature (new functionality)

Event Timeline

c.faria triaged this task as Normal priority.
c.faria created this object in space S1 VyOS Public.

I'm working on this and will submit a vyos-1x PR against current. Planned CLI: set system frr watchfrr-timeout <seconds>, rendering watchfrr_options="--timeout=<seconds>" in /etc/frr/daemons.

natali-rs1985 changed the task status from Open to In progress.May 5 2026, 1:21 PM
natali-rs1985 assigned this task to anderbake.
Viacheslav changed the task status from In progress to Needs testing.May 12 2026, 3:01 PM
Viacheslav moved this task from Need Triage to Completed on the VyOS Rolling board.