Added keyword arg to find schemanode functions

This commit is contained in:
Olof Hagsand 2018-04-27 19:15:11 +02:00
parent d57a6cf53c
commit 3df4a8a190
4 changed files with 27 additions and 13 deletions

View file

@ -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)