Skip to content

Conversation

@ipspace
Copy link
Owner

@ipspace ipspace commented Jan 27, 2026

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors how BFD is configured for the Bird daemon by moving BFD protocol configuration out of the generic protocols.j2 and into its own daemon-specific configuration template that is wired via daemon_config.

Changes:

  • Remove the inlined protocol bfd definition from netsim/daemons/bird/protocols.j2.
  • Introduce netsim/daemons/bird/bfd.j2 as a dedicated BFD daemon configuration template using the same BFD settings logic as before.
  • Register /etc/bird/bfd.conf in netsim/daemons/bird.yml as a daemon configuration file and remove the now-redundant Ansible stub template netsim/ansible/templates/bfd/bird.j2.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
netsim/daemons/bird/protocols.j2 Drops the embedded BFD protocol block so BFD config comes from a separate daemon config file instead of the shared protocols template.
netsim/daemons/bird/bfd.j2 New daemon template that renders the protocol bfd stanza based on bfd settings and BGP interfaces, to be included via /etc/bird/bfd.conf.
netsim/daemons/bird.yml Extends daemon_config to add a bfd: /etc/bird/bfd.conf entry so Bird’s main config can include a separate BFD config file.
netsim/ansible/templates/bfd/bird.j2 Removes the obsolete shell stub that previously documented that Bird BFD config lived in daemon/bird/protocols.j2.

@ipspace ipspace linked an issue Jan 27, 2026 that may be closed by this pull request
@ipspace ipspace merged commit 8d08b17 into dev Jan 27, 2026
17 checks passed
@ipspace ipspace deleted the bird-bfd branch January 27, 2026 09:51
ipspace added a commit that referenced this pull request Jan 27, 2026
@@ -0,0 +1,10 @@
{% if bfd is defined %}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't hurt, but shouldn't this be implied by the fact that this file is getting included?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that happens when you say "this is easy enough for an AI agent to solve" and then glance at it and have another AI agent review it 🤷‍♂️🤦‍♂️. Proves that they definitely lack the bigger picture.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI is likely to implement what it is told to do - it depends on the prompt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Move Bird BFD configuration to a separate template

3 participants