Added error message for each CLICON_YANG_UNKNOWN_ANYDATA occasion

This commit is contained in:
Vladimir Isaev 2020-07-20 12:54:37 +03:00
parent b56c0220c9
commit cc8e727f85
3 changed files with 17 additions and 1 deletions

View file

@ -173,6 +173,9 @@ populate_self_parent(cxobj *xt,
goto done;
xml_spec_set(xt, y);
retval = 2; /* treat as anydata */
clicon_log(LOG_WARNING,
"%s: %d: No YANG spec for %s, anydata used",
__FUNCTION__, __LINE__, name);
goto done;
}
if ((cb = cbuf_new()) == NULL){
@ -267,6 +270,9 @@ populate_self_top(cxobj *xt,
goto done;
xml_spec_set(xt, y);
retval = 2; /* treat as anydata */
clicon_log(LOG_WARNING,
"%s: %d: No YANG spec for %s, anydata used",
__FUNCTION__, __LINE__, name);
goto done;
}
if ((cb = cbuf_new()) == NULL){