This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/dockers/docker-fpm-frr
Liping Xu 36e65035ba
add check connetction between zebra and bgp (#16675)
Why I did it
Back port #6478 and #6519 to 201911 branch.

Work item tracking
Microsoft ADO (number only):
24978836
How I did it
Add checking the connection between zebra and bgp during bgpd start.

How to verify it
Modify start.h, add debug log and check the syslog

  _Sep 22 02:41:29.716356 str-a7060cx-acs-10 INFO bgp#root: ####: start zebra
  Sep 22 02:41:30.815341 str-a7060cx-acs-10 INFO bgp#root: ####: start check connection
  Sep 22 02:41:30.868784 str-a7060cx-acs-10 INFO bgp#root: ####: It took 0.029979 seconds to wait for zebra to be ready to accept connections
  Sep 22 02:41:30.873685 str-a7060cx-acs-10 INFO bgp#root: ####: start bgpd
  Sep 22 02:41:35.270569 str-a7060cx-acs-10 INFO bgp#root: ####: done_

  _Sep 22 03:28:02.423438 str-a7060cx-acs-10 INFO bgp#root: ####: start zebra
  Sep 22 03:28:03.731320 str-a7060cx-acs-10 INFO bgp#root: ####: start check connection
  Sep 22 03:28:33.749152 str-a7060cx-acs-10 INFO bgp#root: ####: Error: zebra is not ready to accept connections
  Sep 22 03:28:33.752490 str-a7060cx-acs-10 INFO bgp#root: ####: start bgpd
  Sep 22 03:28:34.259735 str-a7060cx-acs-10 INFO bgp#root: ####: start bgpd done
  Sep 22 03:28:34.755538 str-a7060cx-acs-10 INFO bgp#root: ####: start bgpcfgd
  Sep 22 03:28:35.800906 str-a7060cx-acs-10 INFO bgp#root: ####: done_
2023-09-25 23:29:40 +08:00
..
base_image_files Support readonly vtysh for sudoers (#7383) (#7572) 2021-05-19 09:02:16 +08:00
frr [bgp] Enable BGP Graceful Restart based on device role (#9486) 2022-04-01 09:43:53 -07:00
.dockerignore [docker-fpm-frr]:filter out the file of 'Dockerfile.j2' from the 'docker-fpm-frr' image. (#3507) 2019-09-27 12:43:44 -07:00
critical_processes [201911][dockers] Update critical_processes file syntax (#4854) 2020-06-26 11:37:05 -07:00
Dockerfile.j2 [docker-fpm-frr]: TSA/B/C changes for multi-asic (#6510) 2021-02-18 18:04:24 -08:00
snmp.conf [FRR] Enable SNMP support (#2981) 2019-06-19 01:24:42 -07:00
start.sh add check connetction between zebra and bgp (#16675) 2023-09-25 23:29:40 +08:00
supervisord.conf [201911][dockers][supervisor] Increase event buffer size for process exit listener (#7106) 2021-03-29 10:07:43 -07:00
TS Fixes for errors seen in staging devices (#7171) 2021-04-08 15:30:46 -07:00
TSA Fixes for errors seen in staging devices (#7171) 2021-04-08 15:30:46 -07:00
TSB Fixes for errors seen in staging devices (#7171) 2021-04-08 15:30:46 -07:00
TSC Fixes for errors seen in staging devices (#7171) 2021-04-08 15:30:46 -07:00
vtysh.conf [sonic-frr]: FRR 4.0 integration with SONiC (#2099) 2018-10-02 10:24:59 -07:00