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

Package update and enhancements/fixes in YGOT, and Request Binder #12

Merged
merged 6 commits into from Jun 29, 2020

Conversation

mbalachandar
Copy link
Contributor

YGOT:-

  1. To improve the performance of the Unmarshal and EmitJSON methods.
    • Caching the schema information to path instead of finding the schema for the path every time.
    • Disabled the validation of the response while marshaling the ygot object.
    • Added the debug check for the debug logs to get generated/printed only when the debug flag is enabled
  2. Fixes in the Unmarshal method for the node leaf-list, and leaf contains union which has enum as one of its type.
  3. Added changes in the Unmarshal method to throw an error if the request payload has the state information.

Request Binder:-

  1. Added the method validateObjectType - to check and throw an error if the given request payload contains state information.
  2. Added the changes not to validate the request payload if the model of the payload is sonic yang, since CVL validates the sonic yang model request

Package update:-

  1. Updated the ygot package to the version v0.7.1
  2. Updated the goyang package to the version v0.0.0-20200309174518-a00bece872fc
  3. Updated the gnmi package to the version v0.0.0-20200307010808-e7106f7f5493

patches/ygot/ygot.patch Outdated Show resolved Hide resolved
patches/ygot/ygot.patch Outdated Show resolved Hide resolved
patches/ygot/ygot.patch Outdated Show resolved Hide resolved
@renukamanavalan renukamanavalan merged commit 9f2c938 into sonic-net:master Jun 29, 2020
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.

None yet

2 participants