-
Notifications
You must be signed in to change notification settings - Fork 274
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
Implement DBInterface/SonicV2Connector in C++ #387
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
…ification and _connection_error_handler
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
DBInterface::_unavailable_data_handler() Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
This pull request introduces 2 alerts when merging c193a6a into 3751c81 - view on LGTM.com new alerts:
|
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
qiluo-msft
changed the title
Implement DBInterface in C++
Implement DBInterface/SonicV2Connector in C++
Oct 5, 2020
shi-su
previously approved these changes
Oct 12, 2020
shi-su
approved these changes
Oct 12, 2020
qiluo-msft
added a commit
to qiluo-msft/sonic-swss-common
that referenced
this pull request
Nov 3, 2020
This reverts commit 92a35d9.
qiluo-msft
added a commit
that referenced
this pull request
Nov 4, 2020
Fixed a bug introduced by #387 Fixed sonic-net/sonic-buildimage#5697
qiluo-msft
added a commit
to sonic-net/sonic-snmpagent
that referenced
this pull request
Nov 6, 2020
…IG wrapper of C++ implementation) in production code (#162) This is the following step for merging sonic-py-swsssdk into sonic-swss-common sonic-net/sonic-swss-common#387 Note: Test code could still using old python implementation
qiluo-msft
added a commit
to sonic-net/sonic-utilities
that referenced
this pull request
Nov 6, 2020
…IG wrapper of C++ implementation) in production code (#1217) **- What I did** This is the following step for merging sonic-py-swsssdk into sonic-swss-common sonic-net/sonic-swss-common#387 **- How I did it** **- How to verify it** Unit test and tested in DUT * Replace swsssdk.SonicV2Connector with swsscommon.SonicV2Connector (SWIG wrapper of C++ implementation) in production code * Remove extra statement * Move back the import to original place
kktheballer
pushed a commit
to kktheballer/sonic-swss-common
that referenced
this pull request
Dec 21, 2020
* [pyext] Add more OUTPUT type * Refactor: add new class RedisConnector * dbconnector: remove emtpy line * Refine script functions parameter * Add copy constructor to RedisConnector * Optimize DBConnector ctor * Revert back m_namespace * Refactor: change name * Fix build * Extract psubscribe and subscribe function into DBConnector class * Implement _subscribe_keyspace_notification, _unsubscribe_keyspace_notification and _connection_error_handler * Implement blockable * Implement connect with retry * Implement DBConnector::publish(), * Use c++11 syntax instead of c++14 * Implement blocking for get and del * Add to pyext * Add set_redis_kwargs(), fix _onetime_connect() * Fix LGTM: delete implicitly-declared copy assignment operator * update DBInterface redis_client index from db_id to db_name * Add DBInterface::delete_all_by_pattern() * Add SonicV2Connector class * Add unit test for SonicV2Connector * Make const strings public because they are used as public method default parameters * SWIG supports keyword arguments in generated python module * Add python namespace property to DBConnector class, solve the paramter conflicting with C++ keyword by customizing python code generation * Move SonicV2Connector to standalone .h/.cpp files * Add missing include statements into SWIG inteface file * Add pytest unit test for DBInterface and SonicV2Connector * Fix swig customization on SonicV2Connector ctor * Add attrib SonicV2Connector.namespace * Remove debug code * Use EXPECT_NE to simplify test * Remove unused code
kktheballer
pushed a commit
to kktheballer/sonic-swss-common
that referenced
this pull request
Dec 21, 2020
Fixed a bug introduced by sonic-net#387 Fixed sonic-net/sonic-buildimage#5697
kktheballer
pushed a commit
to kktheballer/sonic-swss-common
that referenced
this pull request
Jan 21, 2021
* [pyext] Add more OUTPUT type * Refactor: add new class RedisConnector * dbconnector: remove emtpy line * Refine script functions parameter * Add copy constructor to RedisConnector * Optimize DBConnector ctor * Revert back m_namespace * Refactor: change name * Fix build * Extract psubscribe and subscribe function into DBConnector class * Implement _subscribe_keyspace_notification, _unsubscribe_keyspace_notification and _connection_error_handler * Implement blockable * Implement connect with retry * Implement DBConnector::publish(), * Use c++11 syntax instead of c++14 * Implement blocking for get and del * Add to pyext * Add set_redis_kwargs(), fix _onetime_connect() * Fix LGTM: delete implicitly-declared copy assignment operator * update DBInterface redis_client index from db_id to db_name * Add DBInterface::delete_all_by_pattern() * Add SonicV2Connector class * Add unit test for SonicV2Connector * Make const strings public because they are used as public method default parameters * SWIG supports keyword arguments in generated python module * Add python namespace property to DBConnector class, solve the paramter conflicting with C++ keyword by customizing python code generation * Move SonicV2Connector to standalone .h/.cpp files * Add missing include statements into SWIG inteface file * Add pytest unit test for DBInterface and SonicV2Connector * Fix swig customization on SonicV2Connector ctor * Add attrib SonicV2Connector.namespace * Remove debug code * Use EXPECT_NE to simplify test * Remove unused code
kktheballer
pushed a commit
to kktheballer/sonic-swss-common
that referenced
this pull request
Jan 21, 2021
Fixed a bug introduced by sonic-net#387 Fixed sonic-net/sonic-buildimage#5697
kktheballer
pushed a commit
to kktheballer/sonic-swss-common
that referenced
this pull request
Feb 25, 2021
* [pyext] Add more OUTPUT type * Refactor: add new class RedisConnector * dbconnector: remove emtpy line * Refine script functions parameter * Add copy constructor to RedisConnector * Optimize DBConnector ctor * Revert back m_namespace * Refactor: change name * Fix build * Extract psubscribe and subscribe function into DBConnector class * Implement _subscribe_keyspace_notification, _unsubscribe_keyspace_notification and _connection_error_handler * Implement blockable * Implement connect with retry * Implement DBConnector::publish(), * Use c++11 syntax instead of c++14 * Implement blocking for get and del * Add to pyext * Add set_redis_kwargs(), fix _onetime_connect() * Fix LGTM: delete implicitly-declared copy assignment operator * update DBInterface redis_client index from db_id to db_name * Add DBInterface::delete_all_by_pattern() * Add SonicV2Connector class * Add unit test for SonicV2Connector * Make const strings public because they are used as public method default parameters * SWIG supports keyword arguments in generated python module * Add python namespace property to DBConnector class, solve the paramter conflicting with C++ keyword by customizing python code generation * Move SonicV2Connector to standalone .h/.cpp files * Add missing include statements into SWIG inteface file * Add pytest unit test for DBInterface and SonicV2Connector * Fix swig customization on SonicV2Connector ctor * Add attrib SonicV2Connector.namespace * Remove debug code * Use EXPECT_NE to simplify test * Remove unused code
kktheballer
pushed a commit
to kktheballer/sonic-swss-common
that referenced
this pull request
Feb 25, 2021
Fixed a bug introduced by sonic-net#387 Fixed sonic-net/sonic-buildimage#5697
kktheballer
pushed a commit
to kktheballer/sonic-swss-common
that referenced
this pull request
Jul 20, 2021
* [pyext] Add more OUTPUT type * Refactor: add new class RedisConnector * dbconnector: remove emtpy line * Refine script functions parameter * Add copy constructor to RedisConnector * Optimize DBConnector ctor * Revert back m_namespace * Refactor: change name * Fix build * Extract psubscribe and subscribe function into DBConnector class * Implement _subscribe_keyspace_notification, _unsubscribe_keyspace_notification and _connection_error_handler * Implement blockable * Implement connect with retry * Implement DBConnector::publish(), * Use c++11 syntax instead of c++14 * Implement blocking for get and del * Add to pyext * Add set_redis_kwargs(), fix _onetime_connect() * Fix LGTM: delete implicitly-declared copy assignment operator * update DBInterface redis_client index from db_id to db_name * Add DBInterface::delete_all_by_pattern() * Add SonicV2Connector class * Add unit test for SonicV2Connector * Make const strings public because they are used as public method default parameters * SWIG supports keyword arguments in generated python module * Add python namespace property to DBConnector class, solve the paramter conflicting with C++ keyword by customizing python code generation * Move SonicV2Connector to standalone .h/.cpp files * Add missing include statements into SWIG inteface file * Add pytest unit test for DBInterface and SonicV2Connector * Fix swig customization on SonicV2Connector ctor * Add attrib SonicV2Connector.namespace * Remove debug code * Use EXPECT_NE to simplify test * Remove unused code
kktheballer
pushed a commit
to kktheballer/sonic-swss-common
that referenced
this pull request
Jul 20, 2021
Fixed a bug introduced by sonic-net#387 Fixed sonic-net/sonic-buildimage#5697
malletvapid23
added a commit
to malletvapid23/Sonic-Utility
that referenced
this pull request
Aug 3, 2023
…IG wrapper of C++ implementation) in production code (#1217) **- What I did** This is the following step for merging sonic-py-swsssdk into sonic-swss-common sonic-net/sonic-swss-common#387 **- How I did it** **- How to verify it** Unit test and tested in DUT * Replace swsssdk.SonicV2Connector with swsscommon.SonicV2Connector (SWIG wrapper of C++ implementation) in production code * Remove extra statement * Move back the import to original place
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the first step for merging sonic-py-swsssdk into sonic-swss-common. The whole plan is roughly listed as below
What I did in this PR: