Skip to content

Conversation

@vivekverma-arista
Copy link

@vivekverma-arista vivekverma-arista commented Apr 9, 2025

This feature has been tracked in #1543
HLD PR: 1957

What did I do?

A new API is being added to sonicv2connector.cpp which can take the db name and host IP as an argument and connect us to the redis instance. The existing API needs the db_name and the host_ip and port (or unix_socket) is decoded using database_config.json. This API is tailored for use cases when you want to connect to the namespace redis instances from the same device. Our use case of aggregating VOQ counters across NPUs involves connecting to a redis instances over midplane IP hence the new API is needed.

How did I test it?

A unit test will be added to sonic-utilities and put this to use. Also verified on Arista chassis (DCS-7804-CH) which had 7800R3A-36D2-LC linecards with all changes related to this feature as present here sonic-net/SONiC#1957

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Improve unit test for cover coverage.
@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kenneth-arista
Copy link

@arlakshm @vmittal-msft this is needed for the aggregate Voq counters feature

@vmittal-msft vmittal-msft self-requested a review May 21, 2025 17:24
@abdosi
Copy link
Contributor

abdosi commented Jun 4, 2025

@kenneth-arista : to checkif we need this PR ? This code/repo i think is not being used anymore.

@vivekverma-arista
Copy link
Author

@kenneth-arista : to checkif we need this PR ? This code/repo i think is not being used anymore.

Adjusted the unit test, so that we don't need this change anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants