FRR | BFD config wrong with HA sync on backup host

Open
#5,957 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
php
Domain
networking

Research direction

Start in the FRR plugin under net/frr in the plugins repo, where the BFD configuration is written into the FRR template and then HA-synced; find the code that emits the BFD peer stanzas and the sync path that copies the primary host's addresses. Reproduce on a backup node by triggering HA sync and comparing show bfd peers there against the primary. Done means backup sessions use the backup node's own source address and configured timers, or BFD is deliberately excluded from sync.

Written by the indexing model from the issue text.

Description

support

When using HA synchronization to a backup host, the FRR BFD configuration is synchronized with the IP addresses of the primary host.

The BFD sessions are established successfully. However, if non-default BFD timers are configured, the sessions on the backup host use the default timer values instead.

Diagnostics on the backup host show two BFD sessions for each session configured on the primary host:

  • One session using the primary host's IP address with the configured timer values.
  • One session using the backup host's IP address with the default timer values.
    A possible solution would be to exclude the BFD configuration from FRR HA synchronization, as manual changes are overwritten during each synchronization.

A better solution would be to allow the source interface to be specified instead of a static source IP address, so that each HA node automatically uses its own local interface IP address.

Dominant language
PHP
Stars
1.2k
Forks
926
Avg merge
1d 10h
Merged PRs (30d)
25

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from opnsense/plugins

All issues in opnsense/plugins

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.