* New clixon-lib@2020-12-08.yang revision
* Added: autocli-op extension (see new features) * Added: rpc process-control for process/daemon management * Added enable flag and removed presence in clixon-restconf
This commit is contained in:
parent
d6db28c47a
commit
8540820698
11 changed files with 135 additions and 102 deletions
|
|
@ -1122,7 +1122,10 @@ clixon_plugin_init(clicon_handle h)
|
|||
"example"/* Xml tag when callback is made */
|
||||
) < 0)
|
||||
goto done;
|
||||
/* Called after the regular system copy_config callback */
|
||||
/* Called before the regular system copy_config callback
|
||||
* If you want to have it called _after_ the system callback, place this call in
|
||||
* the _start function.
|
||||
*/
|
||||
if (rpc_callback_register(h, example_copy_extra,
|
||||
NULL,
|
||||
NETCONF_BASE_NAMESPACE,
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
* features:
|
||||
* - nacm
|
||||
* - transaction test
|
||||
* -t enable transaction logging (cal syslog for every transaction)
|
||||
* -t enable transaction logging (call syslog for every transaction)
|
||||
* -v <xpath> Failing validate and commit if <xpath> is present (synthetic error)
|
||||
*/
|
||||
#include <stdio.h>
|
||||
|
|
@ -58,6 +58,9 @@
|
|||
/* These include signatures for plugin and transaction callbacks. */
|
||||
#include <clixon/clixon_backend.h>
|
||||
|
||||
/* Command line options to be passed to getopt(3) */
|
||||
#define BACKEND_NACM_OPTS "tv:"
|
||||
|
||||
/*! Variable to control transaction logging (for debug)
|
||||
* If set, call syslog for every transaction callback
|
||||
* Start backend with -- -t
|
||||
|
|
@ -233,7 +236,7 @@ clixon_plugin_init(clicon_handle h)
|
|||
goto done;
|
||||
opterr = 0;
|
||||
optind = 1;
|
||||
while ((c = getopt(argc, argv, "tv:")) != -1)
|
||||
while ((c = getopt(argc, argv, BACKEND_NACM_OPTS)) != -1)
|
||||
switch (c) {
|
||||
case 't': /* transaction log */
|
||||
_transaction_log = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue