- Moved deviation actions to include grouped/uses statements. See https://github.com/clicon/clixon/issues/211

This commit is contained in:
Olof hagsand 2021-05-06 16:23:50 +02:00
parent 1c5c5a71f2
commit 0225488c39
4 changed files with 28 additions and 16 deletions

View file

@ -1627,6 +1627,7 @@ yang_deviation(yang_stmt *ys,
if (yang_abs_schema_nodeid(ys, nodeid, &ytarget) < 0)
goto done;
if (ytarget == NULL){
clicon_log(LOG_WARNING, "deviation %s: target not found", nodeid);
goto ok;
/* The RFC does not explicitly say the target node MUST exist
clicon_err(OE_YANG, 0, "schemanode sanity check of %s", nodeid);