(sub)modules to schema nodeid:s

This commit is contained in:
Olof Hagsand 2017-07-29 11:26:34 +02:00
parent ed8f145968
commit 6d401cb9d1

View file

@ -496,7 +496,7 @@ schema_nodeid_stmt(yang_node *yn,
for (i=0; i<yn->yn_len; i++){
ys = yn->yn_stmt[i];
if (!yang_schemanode(ys))
if (!(yang_schemanode(ys) || ys->ys_keyword == Y_MODULE || ys->ys_keyword == Y_SUBMODULE))
continue;
/* some keys dont have arguments, match on key */
if (ys->ys_keyword == Y_INPUT || ys->ys_keyword == Y_OUTPUT){