[YANG error when poking on EOS configuration](https://github.com/clicon/clixon-controller/issues/26)

This commit is contained in:
Olof hagsand 2023-08-21 10:54:48 +02:00
parent d1b8dcdf1f
commit 0e81e8137b
6 changed files with 151 additions and 319 deletions

View file

@ -724,7 +724,7 @@ yang2cli_var(clicon_handle h,
}
cprintf(cb, ")");
}
else if (strcmp(restype,"leafref")==0){
else if (strcmp(restype, "leafref")==0){
yang_stmt *ypath;
char *path_arg;
yang_stmt *yref = NULL;
@ -1202,7 +1202,7 @@ yang2cli_stmt(clicon_handle h,
int retval = -1;
yang_stmt *yc;
int treeref_state = 0;
int grouping_treeref;
int grouping_treeref = 0;
if (ys == NULL){
clicon_err(OE_YANG, EINVAL, "No yang spec");