-
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
[sonic-db-cli]: SONiC DB CLI for DPU objects #837
Conversation
Signed-off-by: Ze Gan <ganze718@gmail.com>
Signed-off-by: Ze Gan <ganze718@gmail.com>
Signed-off-by: Ze Gan <ganze718@gmail.com>
Signed-off-by: Ze Gan <ganze718@gmail.com>
Signed-off-by: Ze Gan <ganze718@gmail.com>
Signed-off-by: Ze Gan <ganze718@gmail.com>
Signed-off-by: Ze Gan <ganze718@gmail.com>
Signed-off-by: Ze Gan <ganze718@gmail.com>
Signed-off-by: Ze Gan <ganze718@gmail.com>
/azpw run Azure.sonic-swss-common |
/AzurePipelines run Azure.sonic-swss-common |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Ze Gan <ganze718@gmail.com>
@@ -94,22 +94,24 @@ class RedisReply | |||
|
|||
std::string to_string(); | |||
|
|||
static std::string to_string(redisReply *reply, std::string command = std::string()); | |||
static std::string to_string(redisReply *reply,const std::string &command = std::string()); |
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.
|
||
// restore binary pb message to TEST_DB | ||
EXPECT_EQ(system("cat ./tests/cli_test_data/pb_appliance.bin " |
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.
@@ -93,6 +93,15 @@ CFLAGS_COMMON+=" -fstack-protector-strong" | |||
|
|||
AC_SUBST(CFLAGS_COMMON) | |||
|
|||
AC_CHECK_LIB([dashapi], [PbBinaryToJsonString], [ | |||
AC_DEFINE(DASH_API_INSTALLED, 1, [Define if DASH API is installed]) | |||
LIBS="$LIBS -ldashapi" |
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.
swss-common is widely used, it is awkward to ask others to install dashapi.
I see below options:
- remove the dependency on dashapi, and make this PR a generic feature
- refactor sonic-db-cli to support plugin, and develop a new plugin with dashapi dependency
- develop another CLI like sonic-db-dash-cli (just random name).
Refactor PR: sonic-net/sonic-dash-api#12 |
Add SAG table definition for static anycast gateway. Static anycast gateway HLD [#837](sonic-net/SONiC#837)
Wait for PR: sonic-net/sonic-swss#2966
Read DPU objects from Redis via SONiC DB CLI