Added keyword arg to find schemanode functions
This commit is contained in:
parent
d57a6cf53c
commit
3df4a8a190
4 changed files with 27 additions and 13 deletions
|
|
@ -1038,7 +1038,7 @@ api_operations_post(clicon_handle h,
|
|||
clicon_debug(1, "%s oppath: %s", __FUNCTION__, oppath);
|
||||
|
||||
/* Find yang rpc statement, return yang rpc statement if found */
|
||||
if (yang_abs_schema_nodeid(yspec, oppath, &yrpc) < 0)
|
||||
if (yang_abs_schema_nodeid(yspec, oppath, Y_RPC, &yrpc) < 0)
|
||||
goto done;
|
||||
if (yrpc == NULL){
|
||||
if (netconf_operation_failed_xml(&xerr, "protocol", "yang node not found") < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue