SNMP frontend generic code for tables and clixon backend

Added snmp-msg translation table
Changed test-table to only GET
This commit is contained in:
Olof hagsand 2022-05-15 13:42:28 +02:00
parent 8a208693ba
commit 38d91a1305
5 changed files with 279 additions and 105 deletions

View file

@ -43,11 +43,12 @@ extern "C" {
/*
* Prototypes
*/
int snmp_modes_str2int(char *modes_str);
int yang2snmp_types(yang_stmt *ys, int *asn1_type, enum cv_type *cvtype);
int type_yang2snmp(char *valstr, enum cv_type cvtype,
netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests,
u_char **snmpval, size_t *snmplen);
int snmp_access_str2int(char *modes_str);
const char *snmp_msg_int2str(int msg);
int yang2snmp_types(yang_stmt *ys, int *asn1_type, enum cv_type *cvtype);
int type_yang2snmp(char *valstr, enum cv_type cvtype,
netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests,
u_char **snmpval, size_t *snmplen);
int yang2xpath(yang_stmt *ys, cbuf *cb);
#endif /* _SNMP_LIB_H_ */