diff --git a/CHANGELOG.md b/CHANGELOG.md index fada8f67..9f1f2de5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,7 @@ Developers may need to change their code ### Corrected Bugs +* Fixed: YANG: added extension/unknown-stmt to rpc/input+output * Fixed: [Incorrect fields displayed for "show compare" and "commit diff"](https://github.com/clicon/clixon-controller/issues/177) * Fixed: [Documentation corresponding to specific release](https://github.com/clicon/clixon-controller/issues/178) * https://clixon-docs.readthedocs.io/en/stable points to lastest release, starting with 7.2.0 diff --git a/lib/src/clixon_yang_parse.y b/lib/src/clixon_yang_parse.y index 67b70206..1bdb3fbf 100644 --- a/lib/src/clixon_yang_parse.y +++ b/lib/src/clixon_yang_parse.y @@ -1812,6 +1812,7 @@ input_substmts : input_substmts input_substmt input_substmt : typedef_stmt { _PARSE_DEBUG("input-substmt -> typedef-stmt"); } | grouping_stmt { _PARSE_DEBUG("input-substmt -> grouping-stmt"); } | data_def_stmt { _PARSE_DEBUG("input-substmt -> data-def-stmt"); } + | unknown_stmt { _PARSE_DEBUG("input-substmt -> unknown-stmt");} | { _PARSE_DEBUG("input-substmt -> "); } ; diff --git a/lib/src/clixon_yang_sub_parse.c b/lib/src/clixon_yang_sub_parse.c index 07b32b2f..2f4c2d02 100644 --- a/lib/src/clixon_yang_sub_parse.c +++ b/lib/src/clixon_yang_sub_parse.c @@ -126,7 +126,7 @@ yang_schema_nodeid_subparse(char *str, int retval = -1; clixon_yang_schemanode_yacc ife = {0,}; - clixon_debug(CLIXON_DBG_PARSE, "%s", str); + clixon_debug(CLIXON_DBG_PARSE | CLIXON_DBG_DETAIL, "%s", str); ife.if_parse_string = str; ife.if_linenum = linenum; ife.if_mainfile = mainfile; @@ -140,7 +140,7 @@ yang_schema_nodeid_subparse(char *str, } retval = 0; done: - clixon_debug(CLIXON_DBG_PARSE, "retval:%d", retval); + clixon_debug(CLIXON_DBG_PARSE | CLIXON_DBG_DETAIL, "retval:%d", retval); clixon_yang_schemanode_parsel_exit(&ife); return retval; }