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

@ -893,7 +893,7 @@ netconf_application_rpc(clicon_handle h,
// else
// cprintf(cb, "/%s", xml_name(xn)); /* XXX not accepdted by below */
/* Find yang rpc statement, return yang rpc statement if found */
if (yang_abs_schema_nodeid(yspec, cbuf_get(cb), &yrpc) < 0)
if (yang_abs_schema_nodeid(yspec, cbuf_get(cb), Y_RPC, &yrpc) < 0)
goto done;
/* Check if found */
if (yrpc != NULL){