Skip to content

Commit

Permalink
Make the frr generated files compatible with 8.0+
Browse files Browse the repository at this point in the history
Changing the bfd echo interval to echo intervals and declaring the
format of the file as 8.0 version.

Signed-off-by: Federico Paolinelli <[email protected]>
  • Loading branch information
fedepaol committed Jul 11, 2024
1 parent 73a5c59 commit aae1186
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/frr-k8s/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ data:
frr.conf: |+
! This file gets overriden the first time the speaker renders a config.
! So anything configured here is only temporary.
frr version 7.5.1
frr version 8.0
frr defaults traditional
hostname Router
line vty
Expand Down
2 changes: 1 addition & 1 deletion config/all-in-one/frr-k8s-prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ data:
frr.conf: |
! This file gets overriden the first time the speaker renders a config.
! So anything configured here is only temporary.
frr version 7.5.1
frr version 8.0
frr defaults traditional
hostname Router
line vty
Expand Down
2 changes: 1 addition & 1 deletion config/all-in-one/frr-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ data:
frr.conf: |
! This file gets overriden the first time the speaker renders a config.
! So anything configured here is only temporary.
frr version 7.5.1
frr version 8.0
frr defaults traditional
hostname Router
line vty
Expand Down
2 changes: 1 addition & 1 deletion config/frr-k8s/frr-cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ data:
frr.conf: |+
! This file gets overriden the first time the speaker renders a config.
! So anything configured here is only temporary.
frr version 7.5.1
frr version 8.0
frr defaults traditional
hostname Router
line vty
Expand Down
5 changes: 3 additions & 2 deletions internal/frr/templates/bfdprofile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
echo-mode
{{end -}}
{{ if .profile.EchoInterval -}}
echo-interval {{.profile.EchoInterval}}
echo transmit-interval {{.profile.EchoInterval}}
echo receive-interval {{.profile.EchoInterval}}
{{end -}}
{{ if .profile.PassiveMode -}}
passive-mode
{{end -}}
{{ if .profile.MinimumTTL -}}
minimum-ttl {{ .profile.MinimumTTL }}
{{end -}}
{{- end -}}
{{- end -}}
3 changes: 2 additions & 1 deletion internal/frr/testdata/TestSingleSessionBFD.golden
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ bfd
transmit-interval 200
detect-multiplier 3
echo-mode
echo-interval 25
echo transmit-interval 25
echo receive-interval 25
passive-mode
minimum-ttl 20

Expand Down
3 changes: 2 additions & 1 deletion internal/frr/testdata/TestTwoRoutersTwoNeighborsBFD.golden
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ bfd
transmit-interval 200
detect-multiplier 3
echo-mode
echo-interval 25
echo transmit-interval 25
echo receive-interval 25
passive-mode
minimum-ttl 20

Expand Down

0 comments on commit aae1186

Please sign in to comment.