Fixed CLI error messages on wrong cli_set/merge xml-key
This commit is contained in:
parent
b26eb5851f
commit
02c461b84f
2 changed files with 10 additions and 1 deletions
|
|
@ -72,6 +72,8 @@ a="urn:example:a" xmlns:b="urn:example:b"/>`
|
||||||
* FreeBSD modifications: Configure, makefiles and test scripts modification for Freebsd
|
* FreeBSD modifications: Configure, makefiles and test scripts modification for Freebsd
|
||||||
|
|
||||||
### Corrected Bugs
|
### Corrected Bugs
|
||||||
|
* Fixed CLI error messages on wrong cli_set/merge xml-key to eg:
|
||||||
|
* `Config error: api-path syntax error \"/example:x/m1=%s\": rpc malformed-message List key m1 length mismatch : Invalid argument"`
|
||||||
* Hello netconf candidate capability misspelled, mentioned in [Can clixon_netconf receive netconf packets as a server? #93](https://github.com/clicon/clixon/issues/93)
|
* Hello netconf candidate capability misspelled, mentioned in [Can clixon_netconf receive netconf packets as a server? #93](https://github.com/clicon/clixon/issues/93)
|
||||||
* [Cannot write to config using restconf example #91](https://github.com/clicon/clixon/issues/91)
|
* [Cannot write to config using restconf example #91](https://github.com/clicon/clixon/issues/91)
|
||||||
* Updated restconf documentation (the example was wrong)
|
* Updated restconf documentation (the example was wrong)
|
||||||
|
|
|
||||||
|
|
@ -268,7 +268,14 @@ cli_dbxml(clicon_handle h,
|
||||||
if ((ret = api_path2xml(api_path, yspec, xtop, YC_DATANODE, 1, &xbot, &y, &xerr)) < 0)
|
if ((ret = api_path2xml(api_path, yspec, xtop, YC_DATANODE, 1, &xbot, &y, &xerr)) < 0)
|
||||||
goto done;
|
goto done;
|
||||||
if (ret == 0){
|
if (ret == 0){
|
||||||
clicon_rpc_generate_error("Modify datastore", xerr);
|
if ((cb = cbuf_new()) == NULL){
|
||||||
|
clicon_err(OE_UNIX, errno, "cbuf_new");
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
cprintf(cb, "api-path syntax error \"%s\": ", api_path_fmt);
|
||||||
|
if (netconf_err2cb(xerr, cb) < 0)
|
||||||
|
goto done;
|
||||||
|
clicon_err(OE_CFG, EINVAL, "%s", cbuf_get(cb));
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue