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
|
|
@ -124,7 +124,7 @@ api_data_get2(clicon_handle h,
|
|||
cxobj *xtop = NULL;
|
||||
cxobj *xbot = NULL;
|
||||
yang_stmt *y = NULL;
|
||||
char *with_defaults = NULL;
|
||||
char *defaults = NULL;
|
||||
|
||||
clicon_debug(1, "%s", __FUNCTION__);
|
||||
if ((yspec = clicon_dbspec_yang(h)) == NULL){
|
||||
|
|
@ -197,11 +197,11 @@ api_data_get2(clicon_handle h,
|
|||
}
|
||||
if ((attr = cvec_find_str(qvec, "with-defaults")) != NULL){
|
||||
clicon_debug(1, "%s with_defaults=%s", __FUNCTION__, attr);
|
||||
with_defaults = attr;
|
||||
defaults = attr;
|
||||
}
|
||||
|
||||
clicon_debug(1, "%s path:%s", __FUNCTION__, xpath);
|
||||
ret = clicon_rpc_get2(h, xpath, nsc, content, depth, with_defaults, &xret);
|
||||
ret = clicon_rpc_get(h, xpath, nsc, content, depth, defaults, &xret);
|
||||
|
||||
if (ret < 0){
|
||||
if (netconf_operation_failed_xml(&xerr, "protocol", clicon_err_reason) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue