Added parameter defaults to library function clicon_rpc_get
This commit is contained in:
parent
6bee1746e0
commit
14cc88ca39
7 changed files with 15 additions and 29 deletions
|
|
@ -256,7 +256,7 @@ snmp_scalar_get(clicon_handle h,
|
|||
clicon_ptr_get(h, "snmp-rowstatus-tree", (void**)&xcache);
|
||||
if (xcache==NULL || (x = xpath_first(xcache, nsc, "%s", xpath)) == NULL){
|
||||
/* If not found do the backend call */
|
||||
if (clicon_rpc_get(h, xpath, nsc, CONTENT_ALL, -1, &xt) < 0)
|
||||
if (clicon_rpc_get(h, xpath, nsc, CONTENT_ALL, -1, NULL, &xt) < 0)
|
||||
goto done;
|
||||
/* Detect error XXX Error handling could improve */
|
||||
if ((xerr = xpath_first(xt, NULL, "/rpc-error")) != NULL){
|
||||
|
|
@ -1160,7 +1160,7 @@ snmp_table_getnext(clicon_handle h,
|
|||
goto done;
|
||||
if (snmp_yang2xpath(ys, NULL, &xpath) < 0)
|
||||
goto done;
|
||||
if (clicon_rpc_get(h, xpath, nsc, CONTENT_ALL, -1, &xt) < 0)
|
||||
if (clicon_rpc_get(h, xpath, nsc, CONTENT_ALL, -1, NULL, &xt) < 0)
|
||||
goto done;
|
||||
if ((xerr = xpath_first(xt, NULL, "/rpc-error")) != NULL){
|
||||
clixon_netconf_error(xerr, "clicon_rpc_get", NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue