[sonic-cli-gen] first phase implementation of the SONiC CLI Auto-generation tool#1644
Merged
renukamanavalan merged 83 commits intosonic-net:masterfrom Nov 17, 2021
Merged
Conversation
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
…e_metadata.yang DONE Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
…s - get_leafs(), get_leaf_lists(), get_choices(), get_uses_grouping() Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
…ilities into sonic-cli-gen
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
…ilities into sonic-cli-gen
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
…ilities into sonic-cli-gen
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
…ion comments Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
…nged constructor for YangParser Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Contributor
|
@praveen-li Please check latest changes. Added type annotations in docstring. |
praveen-li
reviewed
Oct 22, 2021
praveen-li
reviewed
Oct 26, 2021
praveen-li
reviewed
Oct 28, 2021
Signed-off-by: Stepan Blyshchak <stepanb@nvidia.com>
Contributor
|
Code changes under sonic-utilities-data, looks good. |
Signed-off-by: Stepan Blyshchak <stepanb@nvidia.com>
Signed-off-by: Stepan Blyshchak <stepanb@nvidia.com>
…original cfg Signed-off-by: Stepan Blyshchak <stepanb@nvidia.com>
Contributor
Author
|
Hi @renukamanavalan and @praveen-li, did you finish the review? |
Contributor
|
@renukamanavalan @praveen-li Could you please also review the second part of the feature in sonic-package-manager - #1650 ? |
Contributor
I am done with the review of this PR with few minor comments. I would like approval from Praveen, before we merge. |
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
stepanblyschak
approved these changes
Nov 16, 2021
renukamanavalan
approved these changes
Nov 16, 2021
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What I did
Implemented the
sonic-cli-genaccording to the SONiC CLI Auto-generation HLDHow I did it
How the
sonic-cli-genworks:sonic_cli_gen/yang_parser.pyfile).configorshow) and generate the CLI plugin.How to verify it
Check the file with unit tests -
tests/cli_autogen_yang_parser_test.pyCommand output