Restore xmldb_get() to original (but removed one parameter
Moved all zero-copy xmldb_get functions to xmldb_get0. Clarified CHANGELOG for xmldb_get changes
This commit is contained in:
parent
2aeb925521
commit
3dba0b5370
11 changed files with 93 additions and 66 deletions
15
CHANGELOG.md
15
CHANGELOG.md
|
|
@ -77,9 +77,18 @@
|
|||
* Validate-only transactions used to be terminated by `complete`
|
||||
* If a commit user callback fails, a new `revert` callback will be made to plugins that have made a succesful commit.
|
||||
* Clixon used to play the (already made) commit callbacks in reverse order
|
||||
* Clixon config option `CLICON_XMLDB_CACHE` renamed to `CLICON_DATASTORE_CACHE` and changed type from `boolean` to `datastore_cache`
|
||||
* Change code from: `clicon_option_bool(h, "CLICON_XMLDB_CACHE")` to `clicon_datastore_cache(h) == DATASTORE_CACHE`
|
||||
* Datastore cache and xmldb_get() changes:
|
||||
* You need to remove `msd` (last) parameter of `xmldb_get()`:
|
||||
* `xmldb_get(h, "running", "/", &xt, NULL)` --> `xmldb_get(h, "running", "/", &xt)`
|
||||
* New suite of API functions enabling zero-copy: `xmldb_get0`. You can still use `xmldb_get()`. The call sequence of zero-copy is (see reference for more info):
|
||||
```
|
||||
xmldb_get0(xh, "running", "/interfaces/interface[name="eth"]", 0, &xt, NULL);
|
||||
xmldb_get0_clear(h, xt); # Clear tree from default values and flags
|
||||
xmldb_get0_free(h, &xt); # Free tree
|
||||
```
|
||||
* Clixon config option `CLICON_XMLDB_CACHE` renamed to `CLICON_DATASTORE_CACHE` and changed type from `boolean` to `datastore_cache`
|
||||
* Type `datastore_cache` have values: nocache, cache, or cache-zerocopy
|
||||
* Change code from: `clicon_option_bool(h, "CLICON_XMLDB_CACHE")` to `clicon_datastore_cache(h) == DATASTORE_CACHE`
|
||||
* `xmldb_get1` removed (functionality merged with `xmldb_get`)
|
||||
* Non-key list now not accepted in edit-config (before only on validation)
|
||||
* Changed return values in internal functions
|
||||
|
|
@ -157,6 +166,8 @@
|
|||
|
||||
### Minor changes
|
||||
|
||||
* JSON parse and print improvements
|
||||
* Integrated parsing with namespace translation and yang spec lookup
|
||||
* Added CLIgen tab-modes in config option CLICON_CLI_TAB_MODE, which means you can control the behaviour of `<tab>` in the CLI.
|
||||
* Yang state get improvements
|
||||
* Integrated state and config into same tree on retrieval, not separate trees
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue