From f8f34e357180222138ffe7388962dd543a68afe2 Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Wed, 15 Dec 2021 14:23:05 +0100 Subject: [PATCH] * Replaced separate autocli trees with a single `@basemodel` tree by using filter labels * Added lastkey argument to yang_key_match() * Fixed segv in process-sigchld * Added ietf-yang-library to CLICON_CLI_AUTOCLI_EXCLUDE default value * Added yang_spec_print() function --- CHANGELOG.md | 27 +- apps/cli/cli_auto.c | 14 +- apps/cli/cli_generate.c | 394 +++++++++++++++------- apps/cli/cli_generate.h | 4 +- apps/cli/cli_main.c | 75 ++-- apps/restconf/restconf_methods.c | 2 +- example/main/example_cli.cli | 7 +- lib/clixon/clixon_err.h | 2 +- lib/clixon/clixon_yang.h | 4 +- lib/src/clixon_path.c | 9 +- lib/src/clixon_proc.c | 8 +- lib/src/clixon_xml_map.c | 10 +- lib/src/clixon_yang.c | 40 ++- test/config.sh.in | 2 +- test/test_cli_auto.sh | 40 ++- test/test_cli_auto_treeref.sh | 218 ++++++++++++ yang/clixon/clixon-config@2021-11-11.yang | 2 +- 17 files changed, 666 insertions(+), 192 deletions(-) create mode 100755 test/test_cli_auto_treeref.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index 35846c53..179def47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,22 @@ ## 5.5.0 Planned: January, 2022 +### New features + +* Changed auto-cli design + * Replaced separet autocli trees with a single `@basemodel` tree by using filter labels + * Filter labels are added to the fill tree and then filtered out using `@remove: