clixon-config.yang: Added CLICON_DEBUG, Removed: CLICON_NETCONF_DUPLICATE_ALLOW

Rearranged and grouped options
clixon-lib.yang: Added debug types
Removed git reliance in test - moved to configure script
This commit is contained in:
Olof hagsand 2024-05-21 13:02:20 +02:00
parent c8a8197e92
commit b6480ac07d
15 changed files with 320 additions and 174 deletions

View file

@ -632,6 +632,17 @@ cli_del(clixon_handle h,
return retval;
}
/*! Get debug level of CLI client
*/
int
cli_debug_show(clixon_handle h,
cvec *cvv,
cvec *argv)
{
cligen_output(stdout, "CLI debug:0x%x\n", clixon_debug_get());
return 0;
}
/*! Set debug level on CLI client (not backend daemon)
*
* @param[in] h Clixon handle
@ -644,8 +655,8 @@ cli_del(clixon_handle h,
*/
int
cli_debug_cli(clixon_handle h,
cvec *cvv,
cvec *argv)
cvec *cvv,
cvec *argv)
{
int retval = -1;
cg_var *cv;
@ -736,7 +747,6 @@ cli_debug_restconf(clixon_handle h,
return retval;
}
/*! Set syntax mode
*
* @param[in] h Clixon handle