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:
parent
c8a8197e92
commit
b6480ac07d
15 changed files with 320 additions and 174 deletions
|
|
@ -48,13 +48,14 @@
|
|||
|
||||
/* Debug flags are seperated into subject areas and detail
|
||||
* @see dbgmap Symbolic mapping (if you change here you may need to change dbgmap)
|
||||
* @see clixon_debug in clixon-lib.yang
|
||||
*/
|
||||
/* Detail level */
|
||||
#define CLIXON_DBG_ALWAYS 0x00000000 /* Unconditionally logged */
|
||||
#define CLIXON_DBG_DETAIL 0x01000000 /* Details: traces, parse trees, etc */
|
||||
#define CLIXON_DBG_DETAIL2 0x02000000 /* Extra details */
|
||||
#define CLIXON_DBG_DETAIL3 0x03000000 /* Probably more detail than you want */
|
||||
#define CLIXON_DBG_DMASK 0x03000000 /* Detail mask */
|
||||
#define CLIXON_DBG_DETAIL3 0x04000000 /* Probably more detail than you want */
|
||||
#define CLIXON_DBG_DMASK 0x07000000 /* Detail mask */
|
||||
#define CLIXON_DBG_DSHIFT 24
|
||||
|
||||
/* Subject area */
|
||||
|
|
@ -71,11 +72,11 @@
|
|||
#define CLIXON_DBG_SNMP 0x00000400 /* SNMP frontend */
|
||||
#define CLIXON_DBG_NACM 0x00000800 /* NACM processing */
|
||||
#define CLIXON_DBG_PROC 0x00001000 /* Process handling */
|
||||
#define CLIXON_DBG_DATASTORE 0x00002000 /* Datastore management */
|
||||
#define CLIXON_DBG_DATASTORE 0x00002000 /* Datastore xmldb management */
|
||||
#define CLIXON_DBG_EVENT 0x00004000 /* Event processing */
|
||||
#define CLIXON_DBG_RPC 0x00008000 /* RPC handling */
|
||||
#define CLIXON_DBG_STREAM 0x00010000 /* Notification streams */
|
||||
#define CLIXON_DBG_PARSE 0x00020000 /* Parser */
|
||||
#define CLIXON_DBG_PARSE 0x00020000 /* Parser: XML,YANG, etc */
|
||||
|
||||
/* External applications */
|
||||
#define CLIXON_DBG_APP 0x00100000 /* External application */
|
||||
|
|
|
|||
|
|
@ -1589,8 +1589,8 @@ yang_enum2int(yang_stmt *ytype,
|
|||
}
|
||||
|
||||
/*! Given a YANG (bits) type node and a bit string, return the bit position.
|
||||
* Example:
|
||||
*
|
||||
* Example:
|
||||
* type bits {
|
||||
* bit stateA {
|
||||
* position "0"; << This one
|
||||
|
|
@ -1603,7 +1603,7 @@ yang_enum2int(yang_stmt *ytype,
|
|||
* If the position is not specified, it will be automatically assigned as defined
|
||||
* in RFC7950, section 9.7.4.2
|
||||
*
|
||||
* @param[in] ytype YANG type noden
|
||||
* @param[in] ytype YANG type node
|
||||
* @param[in] bitstr bit (flag) string
|
||||
* @param[out] bitpos position for the given bit (flag)
|
||||
* @retval 1 OK, result in flagpos
|
||||
|
|
@ -1653,8 +1653,7 @@ yang_bits_pos(yang_stmt *ytype,
|
|||
goto done;
|
||||
}
|
||||
|
||||
/*! Given a YANG (bits) type node and string value, return the
|
||||
* SNMP value for all bits (flags) that are set.
|
||||
/*! Given a YANG (bits) type node and string value, return SNMP value for bits set.
|
||||
*
|
||||
* @param[in] h Clixon handle
|
||||
* @param[in] ytype YANG type noden
|
||||
|
|
@ -1665,6 +1664,7 @@ yang_bits_pos(yang_stmt *ytype,
|
|||
* @retval 0 Invalid, not found
|
||||
* @retval -1 Error
|
||||
* @see yang_val2bitsstr
|
||||
* XXX de-snmp:ize
|
||||
*/
|
||||
int
|
||||
yang_bitsstr2val(clixon_handle h,
|
||||
|
|
@ -1739,6 +1739,7 @@ yang_bitsstr2val(clixon_handle h,
|
|||
* @retval 0 Invalid, not found
|
||||
* @retval -1 Error
|
||||
* @see yang_bitsstr2val
|
||||
* XXX de-snmp:ize
|
||||
*/
|
||||
int
|
||||
yang_val2bitsstr(clixon_handle h,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue