Commit graph

2257 commits

Author SHA1 Message Date
Kristofer Hallin
e587cdcc35 Disable some tables which we will hadle ourselves for RowStatus tests. 2022-07-09 19:37:01 +02:00
Olof hagsand
714e41c627 SNMP: rowstatus for go and wait
Remaining: destroy and internal state
2022-07-09 16:41:21 +02:00
Olof hagsand
d79d0aa933 SNMP Support for display-hint "255t" for fixed string translation 2022-07-09 12:41:58 +02:00
Olof hagsand
4cf1d04cb7 Added XPATH function boolean()
* This caused problem for new NTP YANG in RFC 9249
Fixed segv on anydata for http parser
2022-07-08 15:12:28 +02:00
Olof hagsand
d9cdd669d2 SNMP: Add IPaddress scalar to clixon mib and fix ipv4 set translation 2022-07-08 10:32:25 +02:00
Kristofer Hallin
1b66dfe1b9 RowStatus tests. 2022-07-05 21:58:20 +02:00
Kristofer Hallin
a0e266befb New MIB and implementation with clixonInetTable. 2022-07-04 17:12:40 +02:00
Olof hagsand
d82d08b4ac Merge branch 'snmp' of github.com:clicon/clixon into snmp 2022-06-26 11:51:08 +02:00
Olof hagsand
cd5b68b0b8 Adapt to clixon master 2022-06-26 11:39:58 +02:00
Olof hagsand
4dd633ba31 SNMP: ifStackStatus test 2022-06-26 11:31:28 +02:00
Olof hagsand
f6fe9f6a64 SNMP: fix SNMP set access of table entries
[Conversion of ethernet address (PhysAddress) and IP address (IPAddress) crashes agent](https://github.com/clicon/clixon/issues/340)
Hwaddress and IP adress for scalar and table set should now work
2022-06-26 11:31:28 +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
ebfd173e0b SNMP: Dynamic table fixes 2022-06-26 11:30:29 +02:00
Olof hagsand
150ad3ab8b SNMP: Large refactorings and new dynamic table support 2022-06-26 11:30:29 +02:00
Kristofer Hallin
ebf251455f Bugfix. 2022-06-26 11:30:29 +02:00
Kristofer Hallin
5962852e9f More table tests for IF-MIB. 2022-06-26 11:30:29 +02:00
Kristofer Hallin
4cece83e32 Tests for IF-MIB::ifRcvAddressTable with double indexes. 2022-06-26 11:30:29 +02:00
Kristofer Hallin
5194514993 New type, Timeticks. 2022-06-26 11:30:29 +02:00
Kristofer Hallin
a768e8db5d Don't use the NetSNMP names from the old MIB. 2022-06-26 11:30:29 +02:00
Kristofer Hallin
9f48b491c1 Added range for INTEGER type in CLIXON-TYPES-MIB. 2022-06-26 11:30:29 +02:00
Kristofer Hallin
97cec9daec More updates to CLIXON-TYPES-MIB. 2022-06-26 11:30:29 +02:00
Olof hagsand
94c00a2584 SNMP: Step towards dynamic tables 2022-06-26 11:30:29 +02:00
Olof hagsand
5d1c78ead5 SNMP: refactor type translation using orig-table 2022-06-26 11:30:29 +02:00
Kristofer Hallin
8727e93911 More tests for entPhysicalMfgDate. 2022-06-26 11:30:29 +02:00
Kristofer Hallin
22b2ed51f5 Added types DateAndTime and UUIDorZero 2022-06-26 11:30:29 +02:00
Kristofer Hallin
d76843fec1 New test for entPhysicalVendorType 2022-06-26 11:30:29 +02:00
Olof hagsand
05615c2ee5 SNMP: Translate AutonomousType to oid 2022-06-26 11:30:29 +02:00
Olof hagsand
e3857396c7 SNMP Test: some clixon mib table tests 2022-06-26 11:30:29 +02:00
Olof hagsand
10226ceddd SNMP Tests: Added clixon sanity checks on all tests
Ie, CLICON_VALIDATE_STATE_XML=true
Changed symbolic OID to numeric
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
Kristofer Hallin
cb3aef450d More tests for ENTITY-MIB. 2022-06-26 11:29:40 +02:00
Kristofer Hallin
461ebd38d6 Added snmpwalk tests for system. 2022-06-26 11:29:40 +02:00
Kristofer Hallin
7eafd2e400 Test IF-MIB with numerical and textual OIDs + walk. 2022-06-26 11:29:40 +02:00
Kristofer Hallin
c5d2d54fd3 Change nsIETFWGName type to integer. 2022-06-26 11:29:40 +02:00
Olof hagsand
86e6c3cd5e SNMP test: remove state from snmp_set 2022-06-26 11:29:40 +02:00
Kristofer Hallin
3c82f1668f MIB changes. 2022-06-26 11:29:40 +02:00
Olof hagsand
78c070b65b SNMP frontend: String table index 2022-06-26 11:29:40 +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
Kristofer Hallin
a3d0b74e4b Validate both numerical and lexical OIDs. 2022-06-26 11:29:40 +02:00
Kristofer Hallin
2e529290ea Added snmpbulkget. 2022-06-26 11:29:40 +02:00
Kristofer Hallin
5bc8f978da Only run certain tests if snmp_debug is set. 2022-06-26 11:29:40 +02:00
Kristofer Hallin
736eca3e3b First set of tests using bulkget. 2022-06-26 11:29:40 +02:00
Kristofer Hallin
44d7d898bb snmpset tests re-written. 2022-06-26 11:29:40 +02:00
Kristofer Hallin
d15879890d test_snmp_types.sh are now test_snmp_get.sh 2022-06-26 11:29:40 +02:00
Kristofer Hallin
868da39aba No copy 2022-06-26 11:29:40 +02:00
Kristofer Hallin
9615254d70 Some variables and functions now live in lib.sh 2022-06-26 11:29:40 +02:00
Kristofer Hallin
09e18ace3b Copy Clixon MIB from test/mib/ to system MIB directory. 2022-06-26 11:29:40 +02:00
Kristofer Hallin
9031f535fe Modified the CLIXON-TYPES-MIB to use other OID, avoid collisions. 2022-06-26 11:29:40 +02:00
Kristofer Hallin
54cd943933 SNMP get tests for various types. 2022-06-26 11:29:40 +02:00