Skip to content
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

Enhance SDK to read from any DB by name #49

Merged
merged 1 commit into from
Mar 7, 2019

Conversation

renukamanavalan
Copy link
Contributor

Present code, hard codes the script to access Config-DB only. With this, this class can be used to read any DB. Added a get_keys method, so entire table need not be read into memory, but fetch values as and when needed.

@renukamanavalan
Copy link
Contributor Author

Tested the change using sonic-cfggen. Wrote another tool to compare APPL-DB & ASIC-DB w.r.t routes and this tool uses this class to access either DB, which went successfully.

Care is taken to ensure that there is no change in pre-existing behavior.

@renukamanavalan renukamanavalan merged commit 4cee385 into sonic-net:master Mar 7, 2019
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.

2 participants