-
Notifications
You must be signed in to change notification settings - Fork 682
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 pyswsssdk with swsscommon #2251
Replace pyswsssdk with swsscommon #2251
Conversation
This PR depends on another PR to merge first: |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
…uh-80/sonic-utilities into dev/liuh/update-to-swsscommon
@@ -6539,7 +6539,7 @@ def rate(): | |||
@click.argument('rates_type', type=click.Choice(['all', 'port', 'rif', 'flowcnt-trap']), default='all') | |||
def smoothing_interval(interval, rates_type): | |||
"""Set rates smoothing interval """ | |||
counters_db = swsssdk.SonicV2Connector() | |||
counters_db = SonicV2Connector() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following API missing in sonic-swss-common:
int64_t SonicV2Connector_Native::set(const std::string& db_name, const std::string& _hash, const std::string& key, const int val, bool blocking=false);
So this PR need wait for swss-common add the missing API first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create another PR to add the set method:
@@ -26,7 +26,6 @@ Currently, this list of dependencies is as follows: | |||
- libyang-cpp_1.0.73_amd64.deb | |||
- python3-yang_1.0.73_amd64.deb | |||
- redis_dump_load-1.1-py3-none-any.whl | |||
- swsssdk-2.0.1-py3-none-any.whl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
The depends PR merged, so this PR is ready for review. |
What I did
Replace sonic-py-swsssdk with sonic-swss-common.
How I did it
Update all sonic-py-swsssdk to use sonic-swss-common or sonic-py-common.
How to verify it
Pass all UT and E2E test.
Previous command output (if the output of a command-line utility has changed)
New command output (if the output of a command-line utility has changed)