Commit graph

14 commits

Author SHA1 Message Date
Olof hagsand
b2be7e9e1b SNMP frontend, new preli table handling code
Skipped data set and use table-helper only
Specialized SNMP error handling
2022-05-26 19:04:51 +02:00
Olof hagsand
38d91a1305 SNMP frontend generic code for tables and clixon backend
Added snmp-msg translation table
Changed test-table to only GET
2022-05-19 15:46:35 +02:00
Olof hagsand
8a208693ba SNMP frontend. New snmp_lib.[ch] and rearranged code into lib
Test: renamed WITH_SNMP -> ENABLE_SNMP
2022-05-19 15:46:35 +02:00
Kristofer Hallin
299554048f For tables use a callback to create indexes, rows etc. 2022-05-19 15:46:35 +02:00
Olof hagsand
63c5846091 SNMP frontend table fix: handler called with heartrate, return 0 2022-05-19 15:46:35 +02:00
Olof hagsand
f1db15c2ad SNMP frontend, RPC of single variable through clixon 2022-05-19 15:46:35 +02:00
Olof hagsand
19c47ee043 SNMP frontend
Fixed table/scalar collision issue
Made the CS variable change said to be in previous commit
2022-05-19 15:46:35 +02:00
Kristofer Hallin
465c373e1e Removed problematic MIB for now. 2022-05-19 15:46:35 +02:00
Olof hagsand
3dbfbf5b31 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-05-19 15:46:35 +02:00
Kristofer Hallin
80651503fd SNMP tests: Don't start snmpd, check if the system have snmpd started otherwise present instructions for how to configure and start it. 2022-05-19 15:46:35 +02:00
Olof hagsand
d82df5b707 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-05-19 15:46:35 +02:00
Olof hagsand
2a98ae5d93 SNMP: replaced testhandler code to use only NET-SNMP-EXAMPLES-MIB for scalar and table 2022-05-19 15:46:35 +02:00
Kristofer Hallin
0ada609d2f Fix for snmpd in Alpine, snmpd crashes with the default configuration. 2022-05-19 15:46:35 +02:00
Kristofer Hallin
964fbfd3bc Tests for SNMP tables. 2022-05-19 15:46:35 +02:00