Olof hagsand
d84c529ff1
[Code formatting: Change indentation style to space]( https://github.com/clicon/clixon/issues/379 )
...
* Applies to all c/h/y/l/sh files and .editorconfig
2022-10-27 14:21:17 +02:00
Olof hagsand
05b31508a1
* Fixed: [Non-obvious behavior of clixon_snmp after snmpset command when transaction validation returns an error]( https://github.com/clicon/clixon/issues/375 )
...
* Fixed by validating writes on ACTION instead of COMMIT since libnetsnmp seems not to accept commit errors
2022-10-25 16:32:48 +02:00
Olof hagsand
d2c3b903f1
SNMP: set commit fail error
2022-10-09 11:11:17 +02:00
Olof hagsand
49d19b263c
SNMP: Internal cache handling for rowstatus
...
Test: prefix SN=0 instead of CS=0 for override clixon_snmp start
2022-07-11 10:07:48 +02:00
Olof hagsand
fa87b7d59f
SNMP: Fixed leafref index issue and table min-column issue for mult index
2022-06-26 11:31:06 +02:00
Olof hagsand
94c00a2584
SNMP: Step towards dynamic tables
2022-06-26 11:30:29 +02:00
Olof hagsand
b5d17d643a
SNMP: Started register table entries dynamically
...
Compile-time constant: SNMP_TABLE_DYNAMIC
Added MIB SNMP erroir handling
2022-06-26 11:30:29 +02:00
Olof hagsand
a0e6536bab
Added Siklu sponsorship text
2022-06-26 11:29:40 +02:00
Olof hagsand
ef640772df
SNMP Frontend, fix handling of snmpd down and memory leaks
...
If snmpd is down, clixon_snmp does not start
If snmpd stops, clixon_snmp quits
Mem leaks fixed
2022-06-26 11:29:40 +02:00
Olof hagsand
6f7a33d196
SNMP frontend, new preli table handling code
...
Skipped data set and use table-helper only
Specialized SNMP error handling
2022-06-26 11:28:42 +02:00
Olof hagsand
46cb21f3e8
SNMP frontend: Generalized type handling for set functions
...
SPlit scalar_handler into get and set subfunctions
2022-06-26 11:28:42 +02:00
Olof hagsand
ef604be610
SNMP frontend, restructure files
...
Split snmp_mib_yang.c into: snmp_register.[ch] and snmp_handler.[ch]
2022-06-26 11:28:42 +02:00
Olof hagsand
eb8d0c0b3a
SNMP frontend: added -z zap command-line option and pid-file exclusive check, fixed mem check
2022-06-26 11:28:42 +02:00
Olof hagsand
42f21a309a
SNMP frontend: conflict typos, snmp pidfile
2022-06-26 11:28:42 +02:00
Olof hagsand
4e0d9dd987
SNMP frontend
...
Fixed table/scalar collision issue
Made the CS variable change said to be in previous commit
2022-06-26 11:28:42 +02:00
Olof hagsand
df687f7180
Clixon SNMP frontend
...
Added two new config options to clixon-config.yang: `CLICON_HTTP_DATA_ROOT`
Added new files: apps/snmp/snmp_mib_yang.[ch] for generic MIB/YANG handling
Test: killall quiet
Test: added specific MIB for generic code: <CLICON_SNMP_MIB>NET-SNMP-EXAMPLES-MIB</CLICON_SNMP_MIB>
2022-06-26 11:28:42 +02:00
Olof hagsand
2699393c4a
SNMP: replaced testhandler code to use only NET-SNMP-EXAMPLES-MIB for scalar and table
2022-06-26 11:27:54 +02:00
Kristofer Hallin
f443f4f9b3
Added example for tables.
2022-06-26 11:27:54 +02:00
Olof hagsand
28514c6750
Clixon SNMP frontend update
...
* Integration of testhandler.c gives proper callback handling
* YANG `clixon-config@2022-03-21.yang` changes:
* Added option:
* `CLICON_SNMP_AGENT_SOCK`
2022-06-26 11:27:54 +02:00
Kristofer Hallin
40d5f99694
Tell the agent to use a Unix socket for communication.
2022-06-26 11:26:04 +02:00
Olof hagsand
e32cb81b49
Clixon SNMP frontend update
...
Integrated netsnmp agent and clixon event handling, made a workaround of fdset:s
used in the netsnmp API with sockets used in Clixon
Added a hardcoded MIB OID handler as subagent
Added libnetsnmpagent to autotools dependency check
New OE_SNMP error code
2022-06-26 11:26:04 +02:00
Kristofer Hallin
16d21bbe3b
Move include of signal.h
2022-06-26 11:26:04 +02:00
Olof hagsand
d72aa58f90
Initial Net-snmp frontend commit
...
Added apps/snmp with makefiles, autotools, docker adjustment
Minimal snmp_main program
2022-06-26 11:26:04 +02:00