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

Mgmt reorg -- move YANGs, translib, transformer and CVL to sonic-mgmt-common #50

Merged
merged 2 commits into from
Jun 14, 2020

Conversation

sachinholla
Copy link
Contributor

- Why I did it
New repo sonic-mgmt-common is introduced for the common translib related code which will be used by both REST and gNMI services. Common code includes YANGs, translib infra, transformer infra, app modules and CVL infra. This commit moves all such common code to sonic-mgmt-common.

- How I did it
Moved YANGs, translib, transformer, CVL and go patch files into the new sonic-mgmt-common repo. CLI, REST server, YANG-to-OpenAPI spec generator and OpenAPI code generator tools are retained.
Implemented gomodule based go dependency management for REST server.
CLI and rest directories are moved outside src directory to be consistent with go sources.

- How to verify it
Full build and incremental builds
Basic ACL and interface opreations through REST, KLISH CLI and gNMI
Gotest

- Description for the changelog
Moved YANGs, translib, transformer and cvl code to sonic-mgmt-common.

1) Moved yangs, translib, transformer, cvl and go patch files into the
new sonic-mgmt-common repo. CLI, REST server and yang->openapi->go
server code generator tools are retained. CLI and rest directories are
moved outside src directory to be consistent with go sources.

2) Implemented gomodule based go dependency management. All patches
are applied on vendor directory using patch script from mgmt-common.

3) Yang-to-openapi and swagger codegen tools to consume yangs from
sonic-mgmt-common repo. Symlink to sonic-mgmt-common/models/yang
directory is created during build for easy access.

4) Now sonic-mgmt-framework.deb does not inclue yang and cvl schema
files. They are installed from sonic-mgmt-common.deb in docker image.
@lgtm-com
Copy link

lgtm-com bot commented Jun 12, 2020

This pull request fixes 2 alerts when merging 4cecf57 into 32fa9d8 - view on LGTM.com

fixed alerts:

  • 2 for Unused import

@renukamanavalan renukamanavalan merged commit 3c3384c into sonic-net:master Jun 14, 2020
@sachinholla sachinholla deleted the mgmt-reorg branch October 1, 2020 09:56
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