Refactoring for better performance of large auto-cli specs
* Fixed: [very slow execution of load_set_file #288](https://github.com/clicon/clixon/issues/288) * New `clixon-lib@2021-11-11.yang` revision * Modified option: RPC stats extended with YANG stats * Modified `clixon-config@2021-11-11.yang` revision * Added option: * CLICON_PLUGIN_CALLBACK_CHECK * Enable to make plugin context check before and after all callbacks. * Added statistics for YANG: number of objects and memory used * Use the treeref no-copy option of CLIgen to reduce memory * Refactored cli-generation/autocli-start code * Refactored cligen glue functions to use cligen_eval directly (remove clicon_eval,clixon_cligen_eval)
This commit is contained in:
parent
b91ce762d5
commit
5388aace12
29 changed files with 760 additions and 451 deletions
|
|
@ -88,9 +88,19 @@ if [ $BE -ne 0 ]; then # Bring your own backend
|
|||
start_backend -s $db -f $cfg
|
||||
fi
|
||||
|
||||
new "wait backend"
|
||||
wait_backend
|
||||
|
||||
# permission kludges
|
||||
new "chmod datastores"
|
||||
sudo chmod 666 $dir/running_db
|
||||
if [ $? -ne 0 ]; then
|
||||
err1 "chmod $dir/running_db"
|
||||
fi
|
||||
sudo chmod 666 $dir/startup_db
|
||||
if [ $? -ne 0 ]; then
|
||||
err1 "chmod $dir/startup_db"
|
||||
fi
|
||||
|
||||
new "Checking startup unchanged"
|
||||
ret=$(diff $dir/startup_db <(echo "<${DATASTORE_TOP}>$XML</${DATASTORE_TOP}>"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue