SNMP MIB->YANG translation file handling.
Added configure option --with-mib-generated-yang-dir=DIR with default value /usr/share/mibyang where generated YANGs from MIBs should be placed so that SNMP tests know where to find the YANGs.
This commit is contained in:
parent
2a98ae5d93
commit
d82df5b707
7 changed files with 59 additions and 3 deletions
|
|
@ -789,7 +789,10 @@ yang_parse_str(char *str,
|
|||
if (yang_scan_exit(&yy) < 0)
|
||||
goto done;
|
||||
}
|
||||
ymod = yy.yy_module;
|
||||
if ((ymod = yy.yy_module) == NULL){
|
||||
clicon_err(OE_YANG, 0, "No module in YANG %s", name);
|
||||
goto done;
|
||||
}
|
||||
/* Add filename for debugging and errors, see also ys_linenum on (each symbol?) */
|
||||
if (yang_filename_set(ymod, name) < 0)
|
||||
goto done;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue