-
Notifications
You must be signed in to change notification settings - Fork 659
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
Commits on Apr 28, 2021
-
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 548896a - Browse repository at this point
Copy the full SHA 548896aView commit details -
added stub for function to determine static or dynamic YANG
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 3350f27 - Browse repository at this point
Copy the full SHA 3350f27View commit details -
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 1d1643a - Browse repository at this point
Copy the full SHA 1d1643aView commit details -
added function to init list's for module, top, tables
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for cd31f0d - Browse repository at this point
Copy the full SHA cd31f0dView commit details -
Added func to determine - static or list, +comments
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 81b803d - Browse repository at this point
Copy the full SHA 81b803dView commit details -
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for ecdf8b6 - Browse repository at this point
Copy the full SHA ecdf8b6View commit details -
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 42779c7 - Browse repository at this point
Copy the full SHA 42779c7View commit details -
Fix the generated function name is incorrect
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 12bf0b2 - Browse repository at this point
Copy the full SHA 12bf0b2View commit details
Commits on Apr 29, 2021
-
update and enhance templates with multiple lists in container
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for c8eaa66 - Browse repository at this point
Copy the full SHA c8eaa66View commit details -
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for dd29e33 - Browse repository at this point
Copy the full SHA dd29e33View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b0a0c1 - Browse repository at this point
Copy the full SHA 0b0a0c1View commit details
Commits on Apr 30, 2021
-
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 16857c4 - Browse repository at this point
Copy the full SHA 16857c4View commit details -
Parsing for static YANG models - sonic-flex_counter.yang, sonic-devic…
…e_metadata.yang DONE Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for dfa3ccc - Browse repository at this point
Copy the full SHA dfa3cccView commit details
Commits on May 6, 2021
-
Done refactoring for parsing 'static' YANG models
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 6b75f4b - Browse repository at this point
Copy the full SHA 6b75f4bView commit details
Commits on May 11, 2021
-
Added parsing for 'dynamic' YANG models, done refactoring of whole code
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for d2be52b - Browse repository at this point
Copy the full SHA d2be52bView commit details
Commits on May 12, 2021
-
Done parser for 'grouping' BUT need to deeply test it, added function…
…s - get_leafs(), get_leaf_lists(), get_choices(), get_uses_grouping() Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 73a3b12 - Browse repository at this point
Copy the full SHA 73a3b12View commit details -
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
Stepan Blyschak committedMay 12, 2021 Configuration menu - View commit details
-
Copy full SHA for 718f8ab - Browse repository at this point
Copy the full SHA 718f8abView commit details -
Merge branch 'sonic-cli-gen' of github.com:vadymhlushko-mlnx/sonic-ut…
…ilities into sonic-cli-gen
Stepan Blyschak committedMay 12, 2021 Configuration menu - View commit details
-
Copy full SHA for 647537c - Browse repository at this point
Copy the full SHA 647537cView commit details -
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
Stepan Blyschak committedMay 12, 2021 Configuration menu - View commit details
-
Copy full SHA for fa6299c - Browse repository at this point
Copy the full SHA fa6299cView commit details -
Table can only have 'static-objects' OR 'dynamic-objects'
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 9d9f66b - Browse repository at this point
Copy the full SHA 9d9f66bView commit details -
add missing " in help for option
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
Stepan Blyschak committedMay 12, 2021 Configuration menu - View commit details
-
Copy full SHA for 38f4365 - Browse repository at this point
Copy the full SHA 38f4365View commit details -
Merge branch 'sonic-cli-gen' of github.com:vadymhlushko-mlnx/sonic-ut…
…ilities into sonic-cli-gen
Stepan Blyschak committedMay 12, 2021 Configuration menu - View commit details
-
Copy full SHA for 591aced - Browse repository at this point
Copy the full SHA 591acedView commit details -
Added remove_keys(), get_mandatory()
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 0826ac5 - Browse repository at this point
Copy the full SHA 0826ac5View commit details -
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
Stepan Blyschak committedMay 12, 2021 Configuration menu - View commit details
-
Copy full SHA for 069000f - Browse repository at this point
Copy the full SHA 069000fView commit details -
Merge branch 'sonic-cli-gen' of github.com:vadymhlushko-mlnx/sonic-ut…
…ilities into sonic-cli-gen
Stepan Blyschak committedMay 12, 2021 Configuration menu - View commit details
-
Copy full SHA for 594acce - Browse repository at this point
Copy the full SHA 594acceView commit details
Commits on May 13, 2021
-
Refactored generator.py: generate_cli_plugin(), get_cli_plugin_path()
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 1723f0f - Browse repository at this point
Copy the full SHA 1723f0fView commit details -
Removed arguments from constructor of class CliGenerator, added funct…
…ion comments Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 0a78e19 - Browse repository at this point
Copy the full SHA 0a78e19View commit details
Commits on May 14, 2021
-
Added sceleton for UT, added additional check for yang_parser.py, cha…
…nged constructor for YangParser Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 30d2cb9 - Browse repository at this point
Copy the full SHA 30d2cb9View commit details -
Refactored _init_yang_module_and_containers()
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 0d371de - Browse repository at this point
Copy the full SHA 0d371deView commit details -
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 1593039 - Browse repository at this point
Copy the full SHA 1593039View commit details
Commits on May 17, 2021
-
[sonic-cli-gen] put autogenerated plugins into plugins.auto
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 9004c1c - Browse repository at this point
Copy the full SHA 9004c1cView commit details -
[sonic-cli-gen] fix show.py.j2 template
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 32e27a2 - Browse repository at this point
Copy the full SHA 32e27a2View commit details -
[sonic-cli-gen] add remove plugin method
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 02e6d27 - Browse repository at this point
Copy the full SHA 02e6d27View commit details -
refactored past test cases, added new
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for cb7fa06 - Browse repository at this point
Copy the full SHA cb7fa06View commit details -
added test_dynamic_object_complex
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 5737f5f - Browse repository at this point
Copy the full SHA 5737f5fView commit details
Commits on May 18, 2021
-
[sonic-cli-gen] implement grouping in show template
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 7b167a6 - Browse repository at this point
Copy the full SHA 7b167a6View commit details -
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 16e0cca - Browse repository at this point
Copy the full SHA 16e0ccaView commit details -
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for b0fb3a9 - Browse repository at this point
Copy the full SHA b0fb3a9View commit details
Commits on May 19, 2021
-
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for e2acf73 - Browse repository at this point
Copy the full SHA e2acf73View commit details -
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 3305faa - Browse repository at this point
Copy the full SHA 3305faaView commit details -
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 30e8ac9 - Browse repository at this point
Copy the full SHA 30e8ac9View commit details -
Added docstrings, fixed names of variables
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 15aeb8c - Browse repository at this point
Copy the full SHA 15aeb8cView commit details -
Added test_grouping_complex to the execution pipeline
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for ea2c838 - Browse repository at this point
Copy the full SHA ea2c838View commit details
Commits on May 20, 2021
-
Configuration menu - View commit details
-
Copy full SHA for f7a7ed2 - Browse repository at this point
Copy the full SHA f7a7ed2View commit details -
Removed unused test YANG model
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for e18c888 - Browse repository at this point
Copy the full SHA e18c888View commit details
Commits on May 21, 2021
-
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 7bd3ec9 - Browse repository at this point
Copy the full SHA 7bd3ec9View commit details -
Added sonic-cli-gen remove cmd, reworked private initializer functions
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for d5dea7f - Browse repository at this point
Copy the full SHA d5dea7fView commit details
Commits on May 24, 2021
-
Added new lines, fixed some docstrings
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for aa4af1c - Browse repository at this point
Copy the full SHA aa4af1cView commit details -
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 718a431 - Browse repository at this point
Copy the full SHA 718a431View commit details -
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 2907523 - Browse repository at this point
Copy the full SHA 2907523View commit details -
[sonic-cli-gen] address review comments
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for a005d6d - Browse repository at this point
Copy the full SHA a005d6dView commit details -
[sonic-cli-gen] fix review comments
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for aa00b61 - Browse repository at this point
Copy the full SHA aa00b61View commit details -
Merge branch 'sonic-cli-gen' of github.com:vadymhlushko-mlnx/sonic-ut…
…ilities into sonic-cli-gen
Configuration menu - View commit details
-
Copy full SHA for fd931ad - Browse repository at this point
Copy the full SHA fd931adView commit details -
Fixed comments, added list_handler() where needed
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 5c4e219 - Browse repository at this point
Copy the full SHA 5c4e219View commit details -
Added logger to CliGenerator class constructor
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 6de672c - Browse repository at this point
Copy the full SHA 6de672cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a2f9f2 - Browse repository at this point
Copy the full SHA 2a2f9f2View commit details
Commits on May 25, 2021
-
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 1584fe3 - Browse repository at this point
Copy the full SHA 1584fe3View commit details -
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 8f27d03 - Browse repository at this point
Copy the full SHA 8f27d03View commit details -
pep8 for tests files, added comments to YANG models
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for aa6f806 - Browse repository at this point
Copy the full SHA aa6f806View commit details -
Added handler for 1 'choice' 'case'
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 83ce9ee - Browse repository at this point
Copy the full SHA 83ce9eeView commit details -
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 702be74 - Browse repository at this point
Copy the full SHA 702be74View commit details
Commits on May 26, 2021
-
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for c433a4c - Browse repository at this point
Copy the full SHA c433a4cView commit details
Commits on Aug 30, 2021
-
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 94cde8e - Browse repository at this point
Copy the full SHA 94cde8eView commit details
Commits on Aug 31, 2021
-
Removed unnecessary config_db.json file
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 5fec4a7 - Browse repository at this point
Copy the full SHA 5fec4a7View commit details
Commits on Sep 7, 2021
-
Added test case, added support for UT for sonic-cli-gen implementation
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 3cd8ad9 - Browse repository at this point
Copy the full SHA 3cd8ad9View commit details -
Added registering of plugins to UT
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 607b254 - Browse repository at this point
Copy the full SHA 607b254View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6816903 - Browse repository at this point
Copy the full SHA 6816903View commit details
Commits on Sep 8, 2021
-
Added helper.load_and_register_plugins()
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 2aee883 - Browse repository at this point
Copy the full SHA 2aee883View commit details
Commits on Sep 9, 2021
-
Added test cases for sonic-device_metadata
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 9fea6db - Browse repository at this point
Copy the full SHA 9fea6dbView commit details
Commits on Sep 10, 2021
-
Added cli_autogen_common.py, added separate dir for each cli_autogen …
…test Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 69926ed - Browse repository at this point
Copy the full SHA 69926edView commit details -
Added backup and restore func for yang models
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for dd7ec5e - Browse repository at this point
Copy the full SHA dd7ec5eView commit details -
Removed if-else UT login from generator.py
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for eb85200 - Browse repository at this point
Copy the full SHA eb85200View commit details
Commits on Sep 13, 2021
-
Added couple UT for device-neighbor
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 5ccefa6 - Browse repository at this point
Copy the full SHA 5ccefa6View commit details
Commits on Sep 14, 2021
-
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 37ac0b7 - Browse repository at this point
Copy the full SHA 37ac0b7View commit details -
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 4402203 - Browse repository at this point
Copy the full SHA 4402203View commit details -
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 9d07092 - Browse repository at this point
Copy the full SHA 9d07092View commit details -
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 5b6a8aa - Browse repository at this point
Copy the full SHA 5b6a8aaView commit details
Commits on Oct 21, 2021
-
[sonic-cli-gen] add docstrings
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for df1d329 - Browse repository at this point
Copy the full SHA df1d329View commit details
Commits on Nov 1, 2021
-
use dict.pop() with default value
Signed-off-by: Stepan Blyshchak <stepanb@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 9e1854f - Browse repository at this point
Copy the full SHA 9e1854fView commit details -
if no data ion update_entry_validated() abort
Signed-off-by: Stepan Blyshchak <stepanb@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for f2677a1 - Browse repository at this point
Copy the full SHA f2677a1View commit details
Commits on Nov 2, 2021
-
if entry config did not change avoid calling set_entry()
Signed-off-by: Stepan Blyshchak <stepanb@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 4e0ac3e - Browse repository at this point
Copy the full SHA 4e0ac3eView commit details
Commits on Nov 4, 2021
-
pass a copy of cfg to FormatConverter.to_serialized() as it modifies …
…original cfg Signed-off-by: Stepan Blyshchak <stepanb@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for 6a7d7fa - Browse repository at this point
Copy the full SHA 6a7d7faView commit details
Commits on Nov 16, 2021
-
Added exception handling for j2 templates
Signed-off-by: Vadym Hlushko <vadymh@nvidia.com>
Configuration menu - View commit details
-
Copy full SHA for afc4afb - Browse repository at this point
Copy the full SHA afc4afbView commit details