Skip to content

[docker-databse]: Revise database_global schema for DPU #17443

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

Merged

Conversation

Pterosaur
Copy link
Contributor

Why I did it

Revise DPU's database_global.json schema to achieve a more general design

Work item tracking
  • Microsoft ADO (number only):

How I did it

  1. Remove databse_type
  2. Add a new field databse_name

How to verify it

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

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

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

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

1. Remove databse_type
2. Add a new field databse_name

Signed-off-by: Ze Gan <[email protected]>
@Pterosaur Pterosaur marked this pull request as ready for review December 7, 2023 11:48
@Pterosaur Pterosaur requested a review from lguohan as a code owner December 7, 2023 11:48
@Pterosaur
Copy link
Contributor Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@qiluo-msft qiluo-msft merged commit 0e58512 into sonic-net:master Dec 29, 2023
@Pterosaur Pterosaur deleted the refactor_database_global_schema branch December 29, 2023 23:57
@@ -26,7 +26,7 @@
{% if dpu_cnt > 0 %}
{% for dpu in range(dpu_cnt) %}
{
"database_type" : "dpudb",
"database_name" : "dpu{{dpu}}",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sorry for late comment. "database" will be ambigous terminology since there are multiple databases inside one Redis instance. How about "container_name"

qiluo-msft pushed a commit to sonic-net/sonic-swss-common that referenced this pull request Jan 27, 2024
This PR is for expanding the capability of dbconnect to adapt the new DPU DB schema introduced by PR: sonic-net/sonic-buildimage#17443
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.

5 participants