debug print of backend state, split test-stream into a netconf and restconf part, change restconf yang auth-type from leaf-list to leaf

This commit is contained in:
Olof hagsand 2021-01-27 14:40:34 +01:00
parent a5f32fbedf
commit b41f68b677
13 changed files with 244 additions and 63 deletions

View file

@ -66,7 +66,7 @@
#include <clixon/clixon_backend.h>
/* Command line options to be passed to getopt(3) */
#define BACKEND_EXAMPLE_OPTS "rsS:iuUt:v:n:"
#define BACKEND_EXAMPLE_OPTS "rsS:iuUt:v:"
/*! Variable to control if reset code is run.
* The reset code inserts "extra XML" which assumes ietf-interfaces is
@ -119,11 +119,6 @@ static int _transaction_log = 0;
static char *_validate_fail_xpath = NULL;
static int _validate_fail_toggle = 0; /* fail at validate and commit */
/* -n <ns>
* Network namespace for starting restconf process in another namespace
*/
static char *_proc_netns = NULL;
/* forward */
static int example_stream_timer_setup(clicon_handle h);
@ -1087,9 +1082,6 @@ clixon_plugin_init(clicon_handle h)
case 'v': /* validate fail */
_validate_fail_xpath = optarg;
break;
case 'n': /* process restconf namespace*/
_proc_netns = optarg;
break;
}
/* Example stream initialization: