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

Conversation

pavel-shirshov
Copy link
Contributor

@pavel-shirshov pavel-shirshov commented Oct 2, 2020

- Why I did it

  1. To move all logic into its the module. This will allow to cover whole code with tests. As soon as the test coverage is full - I'll move the code to python 3
  2. To allow me develop features in parallels, without making changes at the same file

- How I did it
Extract classes to its own files, grouping them.
So only import statement were changed in this PR. The code was preserved as it is.

- How to verify it
Build an image and run on your DUT

- Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@@ -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

@pavel-shirshov
Copy link
Contributor Author

retest vs please

@pavel-shirshov pavel-shirshov marked this pull request as ready for review October 6, 2020 15:35
@pavel-shirshov pavel-shirshov merged commit 63c1afb into sonic-net:master Oct 6, 2020
abdosi pushed a commit that referenced this pull request Oct 6, 2020
…ule (#5535)

1. Rename app module to bgpcfgd
2. Extract classes from one file to the module
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this pull request Feb 25, 2021
…ule (sonic-net#5535)

1. Rename app module to bgpcfgd
2. Extract classes from one file to the module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants