Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the frr generated files compatible with 8.0+ #168

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

fedepaol
Copy link
Member

@fedepaol fedepaol commented Jul 11, 2024

Is this a BUG FIX or a FEATURE ?:

Uncomment only one, leave it on its own line:

/kind bug
/kind cleanup
/kind feature
/kind design
/kind flake
/kind failing
/kind documentation
/kind regression

What this PR does / why we need it:

FRR 8 preferred format for bfd echo-intervals is with separate transmit
/ receive timers. FRR 9.1 actually reports an error when deleting the
echo interval stanza.

Here we:

  • generate an frr 8.0+ compatible frr configuration file
  • declare the format of the configuration file to be 8.0 compatible

Special notes for your reviewer:

Release note:

Make the generated frr file compatible with frr 8+: split bfd echo interval in echo tx / echo rx.

@@ -13,12 +13,13 @@
echo-mode
{{end -}}
{{ if .profile.EchoInterval -}}
echo-interval {{.profile.EchoInterval}}
echo transmit-interval {{.profile.EchoInterval}}
echo receive-interval {{.profile.EchoInterval}}
Copy link
Contributor

Choose a reason for hiding this comment

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

This should ideally be different commit?

Copy link
Member Author

Choose a reason for hiding this comment

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

nope, it's actually the core of the commit "make the generated files compatible to 8.0+".
From 8.0 frr format has separate echo-intervals, to the point that frr 9+ is throwing an error when deleting echo-interval (the ci failure I got in metallb).

Let me modify the description of the commit to make it clearer.

FRR 8 preferred format for bfd echo-intervals is with separate transmit
/ receive timers. FRR 9.1 actually reports an error when deleting the
echo interval stanza.

Here we:
- generate an frr 8.0+ compatible frr configuration file
- declare the format of the configuration file to be 8.0 compatible

Signed-off-by: Federico Paolinelli <[email protected]>
@fedepaol fedepaol merged commit 6ada9b2 into metallb:main Jul 15, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants