Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bgpcfgd]: Extract classes into their own files. Run bgpcfgd as a module #5535

Merged
2 changes: 1 addition & 1 deletion dockers/docker-fpm-frr/base_image_files/monit_bgp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ check program bgp|bgpd with path "/usr/bin/process_checker bgp /usr/lib/frr/bgpd
check program bgp|staticd with path "/usr/bin/process_checker bgp /usr/lib/frr/staticd"
if status != 0 for 5 times within 5 cycles then alert

check program bgp|bgpcfgd with path "/usr/bin/process_checker bgp /usr/bin/python /usr/local/bin/bgpcfgd"
check program bgp|bgpcfgd with path "/usr/bin/process_checker bgp /usr/bin/python -m bgpcfgd"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use console_script

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

if status != 0 for 5 times within 5 cycles then alert

check program bgp|bgpmon with path "/usr/bin/process_checker bgp /usr/bin/python /usr/local/bin/bgpmon"
Expand Down
2 changes: 1 addition & 1 deletion dockers/docker-fpm-frr/frr/supervisord/supervisord.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ dependent_startup=true
dependent_startup_wait_for=bgpd:running

[program:bgpcfgd]
command=/usr/local/bin/bgpcfgd
command=/usr/bin/env python -m bgpcfgd
priority=6
autostart=false
autorestart=false
Expand Down
2 changes: 1 addition & 1 deletion src/sonic-bgpcfgd/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
build/
dist/
*.egg-info/
app/*.pyc
bgpcfgd/*.pyc
tests/*.pyc
tests/__pycache__/
.idea
Expand Down
22 changes: 0 additions & 22 deletions src/sonic-bgpcfgd/app/util.py

This file was deleted.

Loading