* Fixed: [ Calling copy-config RPC from restconf #158](https://github.com/clicon/clixon/issues/158)
This commit is contained in:
parent
a71e8aaceb
commit
3c014184f7
2 changed files with 4 additions and 3 deletions
|
|
@ -74,6 +74,7 @@ Developers may need to change their code
|
||||||
|
|
||||||
### Corrected Bugs
|
### Corrected Bugs
|
||||||
|
|
||||||
|
* Fixed: [ Calling copy-config RPC from restconf #158](https://github.com/clicon/clixon/issues/158)
|
||||||
* Fixed: [namespace prefix nc is not supported in full #154](https://github.com/clicon/clixon/issues/154)
|
* Fixed: [namespace prefix nc is not supported in full #154](https://github.com/clicon/clixon/issues/154)
|
||||||
* edit-config "config" parameter did not work with prefix other than null
|
* edit-config "config" parameter did not work with prefix other than null
|
||||||
* Fixed [YANG: key statement in rpc/notification list #148](https://github.com/clicon/clixon/issues/148)
|
* Fixed [YANG: key statement in rpc/notification list #148](https://github.com/clicon/clixon/issues/148)
|
||||||
|
|
|
||||||
|
|
@ -611,11 +611,11 @@ api_operations_post_output(clicon_handle h,
|
||||||
cxobj *xok;
|
cxobj *xok;
|
||||||
int isempty;
|
int isempty;
|
||||||
|
|
||||||
// clicon_debug(1, "%s", __FUNCTION__);
|
clicon_debug(1, "%s", __FUNCTION__);
|
||||||
/* Validate that exactly only <rpc-reply> tag */
|
/* Validate that exactly only <rpc-reply> tag with exactly one element child */
|
||||||
if ((xoutput = xml_child_i_type(xret, 0, CX_ELMNT)) == NULL ||
|
if ((xoutput = xml_child_i_type(xret, 0, CX_ELMNT)) == NULL ||
|
||||||
strcmp(xml_name(xoutput),"rpc-reply") != 0 ||
|
strcmp(xml_name(xoutput),"rpc-reply") != 0 ||
|
||||||
xml_child_nr_type(xret, CX_ELMNT) != 1){
|
xml_child_nr_type(xoutput, CX_ELMNT) != 1){
|
||||||
if (netconf_malformed_message_xml(&xerr, "restconf RPC does not have single input") < 0)
|
if (netconf_malformed_message_xml(&xerr, "restconf RPC does not have single input") < 0)
|
||||||
goto done;
|
goto done;
|
||||||
if ((xe = xpath_first(xerr, NULL, "rpc-error")) == NULL){
|
if ((xe = xpath_first(xerr, NULL, "rpc-error")) == NULL){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue