Add cli debug commands for cli/backend/restconf

This commit is contained in:
Olof hagsand 2021-04-12 12:38:16 +02:00
parent 953326d39f
commit d542cd5530
2 changed files with 6 additions and 4 deletions

View file

@ -52,10 +52,12 @@ validate("Validate changes"), cli_validate();
commit("Commit the changes"), cli_commit(); commit("Commit the changes"), cli_commit();
quit("Quit"), cli_quit(); quit("Quit"), cli_quit();
no("Negate or remove") debug("Debugging parts of the system"), cli_debug_cli((int32)0); debug("Debugging parts of the system"){
debug("Debugging parts of the system"), cli_debug_cli((int32)1);{ cli("Set cli debug") <level:int32>("Set debug level (0..n)"), cli_debug_cli();
level("Set debug level: 1..n") <level:int32>("Set debug level (0..n)"), cli_debug_backend(); backend("Set backend debug") <level:int32>("Set debug level (0..n)"), cli_debug_backend();
restconf("Set restconf debug") <level:int32>("Set debug level (0..n)"), cli_debug_restconf();
} }
shell("System command") <source:rest>, cli_start_shell(); shell("System command") <source:rest>, cli_start_shell();
copy("Copy and create a new object") { copy("Copy and create a new object") {
running("Copy from running db") startup("Copy to startup config"), db_copy("running", "startup"); running("Copy from running db") startup("Copy to startup config"), db_copy("running", "startup");

View file

@ -627,7 +627,7 @@ clixon_process_operation(clicon_handle h,
proc_operation op; proc_operation op;
int sched = 0; /* If set, process action should be scheduled, register a timeout */ int sched = 0; /* If set, process action should be scheduled, register a timeout */
clicon_debug(1, "%s name:%s op:%s", __FUNCTION__, name, clicon_int2str(proc_operation_map, op)); clicon_debug(1, "%s name:%s op:%s", __FUNCTION__, name, clicon_int2str(proc_operation_map, op0));
if (_proc_entry_list == NULL) if (_proc_entry_list == NULL)
goto ok; goto ok;
pe = _proc_entry_list; pe = _proc_entry_list;