-
Notifications
You must be signed in to change notification settings - Fork 669
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
[sonic-cli-gen] first phase implementation of the SONiC CLI Auto-generation tool #1644
[sonic-cli-gen] first phase implementation of the SONiC CLI Auto-generation tool #1644
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>
@praveen-li Please check latest changes. Added type annotations in docstring. |
Signed-off-by: Stepan Blyshchak <stepanb@nvidia.com>
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>
Hi @renukamanavalan and @praveen-li, did you finish the review? |
@renukamanavalan @praveen-li Could you please also review the second part of the feature in sonic-package-manager - #1650 ? |
I am done with the review of this PR with few minor comments. I would like approval from Praveen, before we merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now,
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
What I did
Implemented the
sonic-cli-gen
according to the SONiC CLI Auto-generation HLDHow I did it
How the
sonic-cli-gen
works:sonic_cli_gen/yang_parser.py
file).config
orshow
) and generate the CLI plugin.How to verify it
Check the file with unit tests -
tests/cli_autogen_yang_parser_test.py
Command output