* New clixon-lib@2020-04-23.yang revision
* Added: stats RPC for clixon XML and memory statistics.
* Added: restart-plugin RPC for restarting individual plugins without restarting backend.
* xml-stats moved from clixon-config.yang as state data to an rpc `datastats` in clixon-lib.yang
* Experimental: restart_plugin
* Two new plugin callbacks added
* ca_daemon: Called just after a server has "daemonized", ie put in background.
* ca_trans_commit_done: Called when all plugin commits have been done.
* Note: If you have used "end" callback and usign transaction data, you should probably use this instead.
This commit is contained in:
parent
1c99bd6a9b
commit
9a8c6cf3e6
25 changed files with 926 additions and 308 deletions
|
|
@ -126,6 +126,15 @@ nacm_commit(clicon_handle h,
|
|||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
nacm_commit_done(clicon_handle h,
|
||||
transaction_data td)
|
||||
{
|
||||
if (_transaction_log)
|
||||
transaction_log(h, td, LOG_NOTICE, __FUNCTION__);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
nacm_revert(clicon_handle h,
|
||||
transaction_data td)
|
||||
|
|
@ -199,6 +208,7 @@ static clixon_plugin_api api = {
|
|||
.ca_trans_validate=nacm_validate, /* trans validate */
|
||||
.ca_trans_complete=nacm_complete, /* trans complete */
|
||||
.ca_trans_commit=nacm_commit, /* trans commit */
|
||||
.ca_trans_commit_done=nacm_commit_done, /* trans commit done */
|
||||
.ca_trans_revert=nacm_revert, /* trans revert */
|
||||
.ca_trans_end=nacm_end, /* trans end */
|
||||
.ca_trans_abort=nacm_abort /* trans abort */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue