Skip to content

Commit

Permalink
Add route-map delay timer
Browse files Browse the repository at this point in the history
When the default value of 5 seconds is being used,
Graceful-Restart can break momentarily on reconnect of
BGP peering.

The restarter FRR when that timeout expires and the route-maps
have not been processed, denies the routes, and therefore are removed.

```
DEBUG #bgpd[45]: Route-map: null, prefix: 99.0.0.0/24, result: deny
DEBUG #bgpd[45]: 10.0.64.1 [Update:SEND] 99.0.0.0/24 is filtered by route-map
```

FRRouting/frr#10757
FRRouting/frr#10756

Signed-off-by: karampok <karampok@gmail.com>
  • Loading branch information
karampok committed Oct 28, 2024
1 parent bfeacb8 commit 414a455
Show file tree
Hide file tree
Showing 20 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/frr/templates/frr.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ debug route-map detail
hostname {{.Hostname}}
ip nht resolve-via-default
ipv6 nht resolve-via-default
bgp route-map delay-timer 20


{{- range $r := .Routers }}
{{- range .Neighbors }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ log timestamp precision 3
hostname dummyhostname
ip nht resolve-via-default
ipv6 nht resolve-via-default
bgp route-map delay-timer 20



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ log timestamp precision 3
hostname dummyhostname
ip nht resolve-via-default
ipv6 nht resolve-via-default
bgp route-map delay-timer 20



Expand Down
1 change: 1 addition & 0 deletions internal/frr/testdata/TestMultipleRoutersImportVRFs.golden
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ log timestamp precision 3
hostname dummyhostname
ip nht resolve-via-default
ipv6 nht resolve-via-default
bgp route-map delay-timer 20


route-map 192.168.1.2-out permit 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ log timestamp precision 3
hostname dummyhostname
ip nht resolve-via-default
ipv6 nht resolve-via-default
bgp route-map delay-timer 20



Expand Down
1 change: 1 addition & 0 deletions internal/frr/testdata/TestSingleSession
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ log timestamp precision 3
hostname dummyhostname
ip nht resolve-via-default
ipv6 nht resolve-via-default
bgp route-map delay-timer 20



Expand Down
1 change: 1 addition & 0 deletions internal/frr/testdata/TestSingleSession.golden
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ log timestamp precision 3
hostname dummyhostname
ip nht resolve-via-default
ipv6 nht resolve-via-default
bgp route-map delay-timer 20



Expand Down
1 change: 1 addition & 0 deletions internal/frr/testdata/TestSingleSessionBFD.golden
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ log timestamp precision 3
hostname dummyhostname
ip nht resolve-via-default
ipv6 nht resolve-via-default
bgp route-map delay-timer 20


route-map 192.168.1.2-out permit 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ log timestamp precision 3
hostname dummyhostname
ip nht resolve-via-default
ipv6 nht resolve-via-default
bgp route-map delay-timer 20


route-map 192.168.1.2-out permit 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ log timestamp precision 3
hostname dummyhostname
ip nht resolve-via-default
ipv6 nht resolve-via-default
bgp route-map delay-timer 20



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ log timestamp precision 3
hostname dummyhostname
ip nht resolve-via-default
ipv6 nht resolve-via-default
bgp route-map delay-timer 20



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ log timestamp precision 3
hostname dummyhostname
ip nht resolve-via-default
ipv6 nht resolve-via-default
bgp route-map delay-timer 20



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ log timestamp precision 3
hostname dummyhostname
ip nht resolve-via-default
ipv6 nht resolve-via-default
bgp route-map delay-timer 20


route-map 192.168.1.2-out permit 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ log timestamp precision 3
hostname dummyhostname
ip nht resolve-via-default
ipv6 nht resolve-via-default
bgp route-map delay-timer 20



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ log timestamp precision 3
hostname dummyhostname
ip nht resolve-via-default
ipv6 nht resolve-via-default
bgp route-map delay-timer 20



Expand Down
1 change: 1 addition & 0 deletions internal/frr/testdata/TestTwoRoutersTwoNeighbors.golden
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ log timestamp precision 3
hostname dummyhostname
ip nht resolve-via-default
ipv6 nht resolve-via-default
bgp route-map delay-timer 20



Expand Down
1 change: 1 addition & 0 deletions internal/frr/testdata/TestTwoRoutersTwoNeighborsBFD.golden
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ log timestamp precision 3
hostname dummyhostname
ip nht resolve-via-default
ipv6 nht resolve-via-default
bgp route-map delay-timer 20


route-map 192.168.1.2-out permit 1
Expand Down
1 change: 1 addition & 0 deletions internal/frr/testdata/TestTwoSessionsAcceptAll.golden
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ log timestamp precision 3
hostname dummyhostname
ip nht resolve-via-default
ipv6 nht resolve-via-default
bgp route-map delay-timer 20


route-map 192.168.1.2-out permit 1
Expand Down
1 change: 1 addition & 0 deletions internal/frr/testdata/TestTwoSessionsAcceptSomeV4.golden
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ log timestamp precision 3
hostname dummyhostname
ip nht resolve-via-default
ipv6 nht resolve-via-default
bgp route-map delay-timer 20


route-map 192.168.1.2-out permit 1
Expand Down
1 change: 1 addition & 0 deletions internal/frr/testdata/TestTwoSessionsAcceptV4AndV6.golden
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ log timestamp precision 3
hostname dummyhostname
ip nht resolve-via-default
ipv6 nht resolve-via-default
bgp route-map delay-timer 20


route-map 192.168.1.2-out permit 1
Expand Down

0 comments on commit 414a455

Please sign in to comment.