Query Parameter support in transformer infra for REST GET operation#102
Merged
anand-kumar-subramanian merged 32 commits intosonic-net:masterfrom Sep 27, 2023
Conversation
-Changes in DbSpec creation, inherit db-name from sonic table, use cvl db-name annotation for sonic yang, utility function changes -Support exclusion of sonic yangs xfmr support from models list
…ang table containing a singleton container and UT cases exercising this mapping using table-name and key-name annotations
…ranslib fills ygot in request iteslf and when there is onctent mismatch one cannot return that ygot and has to return empty.2)Handle singleton container case for fields query-parameter processing.
…ate/key-leaf allowing application annotation to be skipped and also avoiding translating into db key-attribute in value hash
…m:amrutasali/sonic-mgmt-common into transformerinfra_query_parameter_support
…side keyCreate function
… as an optimized way to fill list-key leaves inside the config and state containers instead of extracting from the URI string
…:amrutasali/sonic-mgmt-common into transformerinfra_query_parameter_support
a-barboza
approved these changes
Sep 16, 2023
Contributor
a-barboza
left a comment
There was a problem hiding this comment.
This is a pre-requisite for sonic-net/sonic-mgmt-framework#119
There is a dependency on the pruning PR for subtree transformers, to be opened subsequently.
kwangsuk
approved these changes
Sep 25, 2023
Contributor
|
@amrutasali , PR didn't merged in to sonic-buildimage. |
Contributor
Author
@liushilongbuaa This PR in sonic-mgmt-common - #102 |
This file contains hidden or 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
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.
Transformer infra initial support for following standard REST query-parameters for GET operation(https://datatracker.ietf.org/doc/html/rfc8040#section-4.8) :
Transformer infra enahancement to support :
Verification done using unit tests on transformer test yang and added new cases for above.
Unit test run results are part of pipeline test run.