Skip to content

Commit

Permalink
start bgp_eoiu_mark service to populate bgp eoiu marker flags for war…
Browse files Browse the repository at this point in the history
…m start, if configured so (#3489)

* start bgp_eoiu_mark service to populate bgp eoiu marker if configured so

* Address code review comments: check db value via "-v" option in sonic-cfggen

* Address code review comment 2: check string against 'true' directly, instead of couting

* Update start.sh
  • Loading branch information
heidinet2007 authored and yxieca committed Nov 13, 2019
1 parent 7372122 commit 864a7c6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dockers/docker-fpm-frr/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ rm -f /var/run/rsyslogd.pid

supervisorctl start rsyslogd

# start eoiu pulling, only if configured so
if [[ $(sonic-cfggen -d -v 'WARM_RESTART.bgp.bgp_eoiu') == 'true' ]]; then
supervisorctl start bgp_eoiu_marker
fi

supervisorctl start bgpcfgd

# Start Quagga processes
supervisorctl start zebra
supervisorctl start staticd
Expand Down
10 changes: 10 additions & 0 deletions dockers/docker-fpm-frr/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,13 @@ autorestart=false
startsecs=0
stdout_logfile=syslog
stderr_logfile=syslog

[program:bgp_eoiu_marker]
command=/usr/bin/bgp_eoiu_marker.py
priority=7
autostart=false
autorestart=false
startsecs=0
startretries=0
stdout_logfile=syslog
stderr_logfile=syslog

0 comments on commit 864a7c6

Please sign in to comment.