-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(rp): prefix/community list changes not applied
Only affects FRR 8.2.2, e.g. SONiC 202205 and 202211. The issue comes from a behavior change with prefix-list and bgp route-map-delay timer. It has been fixed starting FRR 8.4.4.
- Loading branch information
1 parent
fb7a877
commit 28fe151
Showing
4 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
states/afk/templates/routing_policy/sonic/routing_policy_frr_8_2_2.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{# in FRR 8.2.2 (SONiC 202205 and 202211), a bug appeared where prefix-list changes were never applied. #} | ||
{# The workaround is to apply this outside of bgp route-map delay-timer changes. #} | ||
{# It has been fixed starting FRR 8.4.4 (SONiC >= 202311) #} | ||
{# fixed by: https://github.com/FRRouting/frr/pull/13124 #} | ||
{# issue coming from: https://github.com/FRRouting/frr/issues/13125 #} | ||
{% for community in community_sets %} | ||
{{ community }} | ||
{% endfor %} | ||
! | ||
{% for prefix in prefix_sets %} | ||
{{ prefix | trim }} | ||
{% endfor %} | ||
! | ||
{# prevent route-map to be applied immediately (still applied after a clear or BGP update/reset) #} | ||
bgp route-map delay-timer 0 | ||
! | ||
{% for policy_definitions in policy_definitions %} | ||
{{ policy_definitions }} | ||
! | ||
{% endfor %} | ||
no bgp route-map delay-timer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters