Add cli debug commands for cli/backend/restconf
This commit is contained in:
parent
953326d39f
commit
d542cd5530
2 changed files with 6 additions and 4 deletions
|
|
@ -52,10 +52,12 @@ validate("Validate changes"), cli_validate();
|
|||
commit("Commit the changes"), cli_commit();
|
||||
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"), cli_debug_cli((int32)1);{
|
||||
level("Set debug level: 1..n") <level:int32>("Set debug level (0..n)"), cli_debug_backend();
|
||||
debug("Debugging parts of the system"){
|
||||
cli("Set cli debug") <level:int32>("Set debug level (0..n)"), cli_debug_cli();
|
||||
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();
|
||||
copy("Copy and create a new object") {
|
||||
running("Copy from running db") startup("Copy to startup config"), db_copy("running", "startup");
|
||||
|
|
|
|||
|
|
@ -627,7 +627,7 @@ clixon_process_operation(clicon_handle h,
|
|||
proc_operation op;
|
||||
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)
|
||||
goto ok;
|
||||
pe = _proc_entry_list;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue