Olof hagsand
99cd8bacc0
SNMP frontend generic code for tables and clixon backend
...
Added snmp-msg translation table
Changed test-table to only GET
2022-06-26 11:28:42 +02:00
Olof hagsand
62a32faf9c
SNMP frontend. New snmp_lib.[ch] and rearranged code into lib
...
Test: renamed WITH_SNMP -> ENABLE_SNMP
2022-06-26 11:28:42 +02:00
Kristofer Hallin
9b0cf2f7c4
For tables use a callback to create indexes, rows etc.
2022-06-26 11:28:42 +02:00
Olof hagsand
4ff2ea099c
SNMP frontend table fix: handler called with heartrate, return 0
2022-06-26 11:28:42 +02:00
Olof hagsand
182b72a4cc
SNMP frontend, RPC of single variable through clixon
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
Kristofer Hallin
4182ee3540
Removed problematic MIB for now.
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
Kristofer Hallin
ee06652e86
SNMP tests: Don't start snmpd, check if the system have snmpd started otherwise present instructions for how to configure and start it.
2022-06-26 11:28:42 +02:00
Olof hagsand
f112580546
SNMP MIB->YANG translation file handling.
...
Added configure option --with-mib-generated-yang-dir=DIR with
default value /usr/share/mibyang where generated YANGs from MIBs
should be placed so that SNMP tests know where to find the YANGs.
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
4c3bbcc0ed
Fix for snmpd in Alpine, snmpd crashes with the default configuration.
2022-06-26 11:27:54 +02:00
Kristofer Hallin
b7c8a27f67
Tests for SNMP tables.
2022-06-26 11:27:54 +02:00