Update netconf_rpc.c
This commit is contained in:
parent
be329dac6d
commit
638658c63d
1 changed files with 2 additions and 2 deletions
|
|
@ -176,7 +176,7 @@ netconf_get_config(clicon_handle h,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ie <filter>...</filter> */
|
/* ie <filter>...</filter> */
|
||||||
if ((xfilter = xpath_first(xn, NULL, "filter")) != NULL)
|
if ((xfilter = xpath_first(xn, nsc, "%s%sfilter", prefix ? prefix : "", prefix ? ":" : "")) != NULL)
|
||||||
ftype = xml_find_value(xfilter, "type");
|
ftype = xml_find_value(xfilter, "type");
|
||||||
if (xfilter == NULL || ftype == NULL || strcmp(ftype, "xpath")==0){
|
if (xfilter == NULL || ftype == NULL || strcmp(ftype, "xpath")==0){
|
||||||
if (clicon_rpc_netconf_xml(h, xml_parent(xn), xret, NULL) < 0)
|
if (clicon_rpc_netconf_xml(h, xml_parent(xn), xret, NULL) < 0)
|
||||||
|
|
@ -388,7 +388,7 @@ netconf_get(clicon_handle h,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ie <filter>...</filter> */
|
/* ie <filter>...</filter> */
|
||||||
if ((xfilter = xpath_first(xn, NULL, "filter")) != NULL)
|
if ((xfilter = xpath_first(xn, nsc, "%s%sfilter", prefix ? prefix : "", prefix ? ":" : "")) != NULL)
|
||||||
ftype = xml_find_value(xfilter, "type");
|
ftype = xml_find_value(xfilter, "type");
|
||||||
if (xfilter == NULL || ftype == NULL || strcmp(ftype, "xpath")==0){
|
if (xfilter == NULL || ftype == NULL || strcmp(ftype, "xpath")==0){
|
||||||
if (clicon_rpc_netconf_xml(h, xml_parent(xn), xret, NULL) < 0)
|
if (clicon_rpc_netconf_xml(h, xml_parent(xn), xret, NULL) < 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue