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

Replace swsssdk with swsscommon in bgpmon.py #11387

Merged
merged 4 commits into from
Aug 2, 2022

Conversation

liuh-80
Copy link
Contributor

@liuh-80 liuh-80 commented Jul 8, 2022

Why I did it

Update bgpmon.py from py-swsssdk to swsscommon

How I did it

Change bgpmon.py to use swsscommon.

How to verify it

Pass all E2E test case

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

Description for the changelog

Update bgpmon.py from py-swsssdk to swsscommon

Link to config_db schema for YANG module changes

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

@liuh-80
Copy link
Contributor Author

liuh-80 commented Jul 8, 2022

Still under discussion about how to improve hmset method.

@liuh-80 liuh-80 requested a review from qiluo-msft July 13, 2022 02:06
@liuh-80 liuh-80 marked this pull request as ready for review July 13, 2022 02:06
@liuh-80 liuh-80 requested a review from StormLiangMS as a code owner July 13, 2022 02:06
@liuh-80
Copy link
Contributor Author

liuh-80 commented Jul 13, 2022

This PR related with another PR which will improve hmset performance, but not depends on it:
sonic-net/sonic-swss-common#647

else:
# Add or Modify case
self.pipe.hmset(key, value)
self.pipe.execute()
self.db.hmset(self.db.STATE_DB, key, value)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will improve this code with pipe

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will push a update to pipe improve PR, to make code easy here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, now this PR depends on sonic-net/sonic-swss-common#647
We need that PR finish and update submodule first.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sonic-swss-common PR merged, create another PR to merge submodule: #11470

After that, this PR can pass UT.

@liuh-80
Copy link
Contributor Author

liuh-80 commented Jul 20, 2022

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liuh-80
Copy link
Contributor Author

liuh-80 commented Jul 21, 2022

Will delay merge this PR because a resource leak issue in swss-common.

@liuh-80
Copy link
Contributor Author

liuh-80 commented Aug 1, 2022

Wait for this PR merge first: #11524 which will fix memory leak issue.

@liuh-80
Copy link
Contributor Author

liuh-80 commented Aug 2, 2022

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liuh-80 liuh-80 merged commit 5ff323c into sonic-net:master Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants