-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Query Parameter support in transformer infra for REST GET operation (#…
…102) * Transformer infra enhacements to support singleton container -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 * Sonic yang singleton container support in GET and SET/CRU code flow * Added a container in openconfig-test-xfmr.yang that maps to a sonic yang table containing a singleton container and UT cases exercising this mapping using table-name and key-name annotations * Add sonic singleton container in sonic yang and UT cases for CRUD and GET * Update unit test README file with the build tag information * Initial Query Params infra support in translib and common app * Support for depth query parameter in transformer infra * Content query parameter support in xfmr infra * Add fields query parameters support * Query parameter pruning API integration and error handling * 1)Handle query-parameter content mismatch check for list node since translib 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. * added query-parameter support in transformer test infra * fixed build error due to rebase/merge-conflict resolution * Add UT cases for depth and content query parameters support in infra * Add UT cases for depth and content query parameters support in infra for sonic yang * Add OC yang fields query parameters unit tests * Added sonic yang fields query-parameter UT cases * Infra enhancement for handling OC Yang list/config/key-leaf & list/state/key-leaf allowing application annotation to be skipped and also avoiding translating into db key-attribute in value hash * Add composite key handling changes for 1:1 OC to sonic key mapping * Run format check on test yang UT file, Move composite Key handling inside keyCreate function * when filling the list-keys in GET flow, update the list-keys map used as an optimized way to fill list-key leaves inside the config and state containers instead of extracting from the URI string --------- Co-authored-by: ranjinidn <ranjini_nagaraj@dell.com> Co-authored-by: ranjinidn <51423501+ranjinidn@users.noreply.github.com>
- Loading branch information
1 parent
42ca0a6
commit cdd83d7
Showing
21 changed files
with
2,068 additions
and
293 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.