-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dualtor] Let T0 delay 10 seconds before sending BGP updates (#12996)
Why I did it To ensure, that after a BGP startup, dualtor T0 receives BGP updates before sending out BGP updates. Please refer to sonic-net/SONiC#1161 for more details. How I did it add coalesce-time 10000 to the frr bgp startup config. Signed-off-by: Longxiang Lyu <[email protected]>
- Loading branch information
Showing
4 changed files
with
168 additions
and
1 deletion.
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
79 changes: 79 additions & 0 deletions
79
src/sonic-config-engine/tests/sample_output/py2/bgpd_frr_dualtor.conf
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,79 @@ | ||
! | ||
! template: bgpd/bgpd.conf.j2 | ||
! | ||
! | ||
! =========== Managed by sonic-cfggen DO NOT edit manually! ==================== | ||
! generated by templates/quagga/bgpd.conf.j2 with config DB data | ||
! file: bgpd.conf | ||
! | ||
! | ||
! template: common/daemons.common.conf.j2 | ||
! | ||
hostname switch-t0 | ||
password zebra | ||
enable password zebra | ||
! | ||
log syslog informational | ||
log facility local4 | ||
! | ||
! end of template: common/daemons.common.conf.j2! | ||
agentx | ||
! | ||
! | ||
! | ||
! template: bgpd/bgpd.main.conf.j2 | ||
! | ||
! bgp multiple-instance | ||
! | ||
! BGP configuration | ||
! | ||
! TSA configuration | ||
! | ||
ip prefix-list PL_LoopbackV4 permit 10.1.0.32/32 | ||
! | ||
ipv6 prefix-list PL_LoopbackV6 permit fc00:1::/64 | ||
! | ||
ip prefix-list LOCAL_VLAN_IPV4_PREFIX seq 5 permit 192.168.200.0/27 | ||
! | ||
ip prefix-list LOCAL_VLAN_IPV4_PREFIX seq 10 permit 192.168.0.0/27 | ||
! | ||
! | ||
! | ||
router bgp 65100 | ||
! | ||
bgp log-neighbor-changes | ||
no bgp default ipv4-unicast | ||
no bgp ebgp-requires-policy | ||
coalesce-time 10000 | ||
! | ||
bgp bestpath as-path multipath-relax | ||
! | ||
bgp graceful-restart restart-time 240 | ||
bgp graceful-restart | ||
bgp graceful-restart preserve-fw-state | ||
bgp graceful-restart select-defer-time 45 | ||
! | ||
bgp router-id 10.1.0.32 | ||
! | ||
network 10.1.0.32/32 | ||
! | ||
address-family ipv6 | ||
network fc00:1::32/64 | ||
exit-address-family | ||
! | ||
network 192.168.200.1/27 | ||
network 192.168.0.1/27 | ||
! | ||
! | ||
! | ||
address-family ipv4 | ||
maximum-paths 64 | ||
exit-address-family | ||
address-family ipv6 | ||
maximum-paths 64 | ||
exit-address-family | ||
! | ||
! end of template: bgpd/bgpd.main.conf.j2 | ||
!! | ||
! end of template: bgpd/bgpd.conf.j2 | ||
! |
79 changes: 79 additions & 0 deletions
79
src/sonic-config-engine/tests/sample_output/py3/bgpd_frr_dualtor.conf
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,79 @@ | ||
! | ||
! template: bgpd/bgpd.conf.j2 | ||
! | ||
! | ||
! =========== Managed by sonic-cfggen DO NOT edit manually! ==================== | ||
! generated by templates/quagga/bgpd.conf.j2 with config DB data | ||
! file: bgpd.conf | ||
! | ||
! | ||
! template: common/daemons.common.conf.j2 | ||
! | ||
hostname switch-t0 | ||
password zebra | ||
enable password zebra | ||
! | ||
log syslog informational | ||
log facility local4 | ||
! | ||
! end of template: common/daemons.common.conf.j2! | ||
agentx | ||
! | ||
! | ||
! | ||
! template: bgpd/bgpd.main.conf.j2 | ||
! | ||
! bgp multiple-instance | ||
! | ||
! BGP configuration | ||
! | ||
! TSA configuration | ||
! | ||
ip prefix-list PL_LoopbackV4 permit 10.1.0.32/32 | ||
! | ||
ipv6 prefix-list PL_LoopbackV6 permit fc00:1::/64 | ||
! | ||
ip prefix-list LOCAL_VLAN_IPV4_PREFIX seq 5 permit 192.168.0.0/27 | ||
! | ||
ip prefix-list LOCAL_VLAN_IPV4_PREFIX seq 10 permit 192.168.200.0/27 | ||
! | ||
! | ||
! | ||
router bgp 65100 | ||
! | ||
bgp log-neighbor-changes | ||
no bgp default ipv4-unicast | ||
no bgp ebgp-requires-policy | ||
coalesce-time 10000 | ||
! | ||
bgp bestpath as-path multipath-relax | ||
! | ||
bgp graceful-restart restart-time 240 | ||
bgp graceful-restart | ||
bgp graceful-restart preserve-fw-state | ||
bgp graceful-restart select-defer-time 45 | ||
! | ||
bgp router-id 10.1.0.32 | ||
! | ||
network 10.1.0.32/32 | ||
! | ||
address-family ipv6 | ||
network fc00:1::32/64 | ||
exit-address-family | ||
! | ||
network 192.168.0.1/27 | ||
network 192.168.200.1/27 | ||
! | ||
! | ||
! | ||
address-family ipv4 | ||
maximum-paths 64 | ||
exit-address-family | ||
address-family ipv6 | ||
maximum-paths 64 | ||
exit-address-family | ||
! | ||
! end of template: bgpd/bgpd.main.conf.j2 | ||
!! | ||
! end of template: bgpd/bgpd.conf.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