replace chunk code

This commit is contained in:
Olof hagsand 2017-04-03 15:53:57 +02:00
parent 25d535703e
commit 09cbea65c7
6 changed files with 56 additions and 39 deletions

View file

@ -29,6 +29,7 @@
#
# ***** END LICENSE BLOCK *****
- The netconf support has been extended with lock/unlock
- clicon_rpc_call() has been removed and should be replaced by extending the
internal netconf protocol.
@ -46,6 +47,12 @@
clicon_rpc_get_config(h, dbstr, api_path, &xt);
xpath_vec(xt, api_path, &xvec, &xlen)
- clicon_rpc_change() is replaced with clicon_rpc_edit_config().
Note modify argument 5:
clicon_rpc_change(h, db, op, apipath, "value")
to:
clicon_rpc_edit_config(h, db, op, apipath, "<config>value</config>")
- xmdlb_put_xkey() and xmldb_put_tree() have been folded into xmldb_put()
Replace xmldb_put_xkey with xmldb_put as follows:
xmldb_put_xkey(h, "candidate", cbuf_get(cb), str, OP_REPLACE);