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

Sync from master #2

Merged
merged 3 commits into from
Jul 31, 2020
Merged

Conversation

dutta-partha
Copy link
Owner

No description provided.

sachinholla and others added 3 commits July 30, 2020 16:00
Added new yang ietf-yang-library.yang, which defines data models for
RFC7895 yang library discovery feature.

New app module yanglib_app.go to handle ietf-yang-library.yang APIs.
REST and gNMI requests for '/ietf-yang-library:modules-state' and its
child paths will be serviced by this app module.

Parses all NB yangs using goyang parser and builds the module info data
tree as per ietf-yang-library.yang. Yangs are parsed upon first request
and cached thereafter.

Uses translib.GetModel() API to identify the yang modules that are
implemented by apps. Other modules are marked as 'import' in yang
library response data. Transformer annotation files (*_annot.yang) are
ignored -- they do not define any data model.

Uses hardcoded module-set-id value for now. Should be changed to use
"yang bundle version" number when yang versioning feature is in.

Yang schema URL is included in the response only if main program set the
root URL through translib.SetSchemaRootURL() API. Schema URL is prepared
by appending the yang file name to the root URL.
Bulk and RPC API support in translib
…ges (#18)

- Why I did it

As part of CVL code update and new features addition, the existing CVL code has to be reorganized and common infra needs to be changed.

- How I did it

N/A.
Please refer to change log for more details.

- How to verify it

No specific test cases to be executed. Run cvl go test cases using - 'make cvl-test'.

- Description for the changelog

Modify Makefiles
Modify CVL Makefile for cleanall rule
Modify Makefile for CVL YIN schema generation
Modify Makefile for CVL test YIN schema generation
Moved cache, syntax and semantic related code from cvl.go to cvl_cache.go, cvl_syntax.go and cvl_semantics.go respectively .
Added new API signatures for integration. Implementation will be added in subsequent PRs.
Copied sonic-port.yang and sonic-acl.yang to CVL own's test folder.
@dutta-partha dutta-partha merged commit 3a8ea9c into dutta-partha:common_infra_changes Jul 31, 2020
dutta-partha added a commit that referenced this pull request Aug 10, 2020
…ion (sonic-net#19)

Why I did it
Adding YValidator support so that xpath expression (must/when/leafref) can be evaluated using custom xpath engine. Custom xpath engine will be integrated in subsequent PR.

How I did it
N/A.
Please refer to change log for more details.

How to verify it
No specific test cases to be executed. Run cvl go test cases using - 'make cvl-test'.

Description for the changelog

Modifying cvl.go for adding new data structure to store cache in CVL session cache, add YValidator data type. Adding API to get Redis table name from YANG list.

Modifying cvl_api.go and cvl_cache.go due to change in session cache.

Modifying cvl_syntax.go due to change in API name.

Modifying cvl_semantics.go to add various API which can operate on YValidator nodes.
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.

3 participants