[sonic-package-manager] support sonic-cli-gen and packages with YANG model#1650
[sonic-package-manager] support sonic-cli-gen and packages with YANG model#1650liat-grozovik merged 223 commits intosonic-net:masterfrom
Conversation
Signed-off-by: Stepan Blyshchak <[email protected]>
Signed-off-by: Stepan Blyshchak <[email protected]>
Signed-off-by: Stepan Blyshchak <[email protected]>
Signed-off-by: Stepan Blyshchak <[email protected]>
Signed-off-by: Stepan Blyshchak <[email protected]>
…packages-migration Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Co-authored-by: Joe LeVeque <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
|
@praveen-li Could you please also review? |
renukamanavalan
left a comment
There was a problem hiding this comment.
Looks good to me. Just added few minor comments only.
We could merge upon approval by @praveen-li
|
@praveen-li , @renukamanavalan - do you approve this PR or anything pending? Thanks. |
Signed-off-by: Stepan Blyshchak <[email protected]>
|
This pull request introduces 1 alert when merging bf05d42 into e7535ae - view on LGTM.com new alerts:
|
Signed-off-by: Stepan Blyshchak <[email protected]>
|
@renukamanavalan - completed review -- good to merge |
renukamanavalan
left a comment
There was a problem hiding this comment.
Waiting for Praveen's approval
praveen-li
left a comment
There was a problem hiding this comment.
Thanks for explaining it to me in meeting. I specially reviewed changes in ConfigMgmt. LGTM overall.
| module_name = self.get_module_name(yang_module_str) | ||
| module_path = os.path.join(YANG_DIR, '{}.yang'.format(module_name)) | ||
| if os.path.exists(module_path): | ||
| raise Exception('{} already exists'.format(module_name)) |
There was a problem hiding this comment.
caller of add_module should be able to handle it gracefully.
There was a problem hiding this comment.
The caller can catch the exception and handle it gracefully.
…model (#1650) - What I did This PR brings in support for packages with YANG models and CLI auto generation capabilities for 3rd party packages. - How I did it Packages can set two new flags in manifest - "auto-generate-show" and "auto-generate-config" in addition to YANG module recorded in package image label "com.azure.sonic.yang-module". - How to verify it Build and run. Prepare some package with YANG model and test CLI is generated for it. Signed-off-by: Stepan Blyshchak <[email protected]> Co-authored-by: Vadym Hlushko <[email protected]>
…th YANG model (sonic-net#1650)" This reverts commit f5e5a56.
…kages with YANG model (sonic-net#1650)" (sonic-net#1972)" This reverts commit fe00bbf.
…kages with YANG model (sonic-net#1650)" (sonic-net#1972)" This reverts commit fe00bbf.
…kages with YANG model (#1650)" (#1972)" (#1994) This reverts commit fe00bbf. - What I did Revert previous revert, since the proposed fix has been merged - sonic-net/sonic-buildimage#9587 - How I did it Revert the revert. - How to verify it Run build an on the switch.
…kages with YANG model (#1650)" (#1972)" (#1994) This reverts commit fe00bbf. - What I did Revert previous revert, since the proposed fix has been merged - sonic-net/sonic-buildimage#9587 - How I did it Revert the revert. - How to verify it Run build an on the switch.
…kages with YANG model (sonic-net#1650)" (sonic-net#1972)" (sonic-net#1994) This reverts commit fe00bbf. - What I did Revert previous revert, since the proposed fix has been merged - sonic-net/sonic-buildimage#9587 - How I did it Revert the revert. - How to verify it Run build an on the switch.
NOTE: DEPENDS ON #1644
What I did
This PR brings in support for packages with YANG models and CLI auto generation capabilities for 3rd party packages.
How I did it
Packages can set two new flags in manifest - "auto-generate-show" and "auto-generate-config" in addition to YANG module recorded in package image label "com.azure.sonic.yang-module".
How to verify it
Build and run. Prepare some package with YANG model and test CLI is generated for it.
Previous command output (if the output of a command-line utility has changed)
New command output (if the output of a command-line utility has changed)