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
0ec26df953
Fixed minor typo in comment.
2022-06-26 11:27:54 +02:00
Kristofer Hallin
b7c8a27f67
Tests for SNMP tables.
2022-06-26 11:27:54 +02:00
Kristofer Hallin
f443f4f9b3
Added example for tables.
2022-06-26 11:27:54 +02:00
Kristofer Hallin
0fc5bd3bfb
Workaround for crashing snmpd in Alpine.
2022-06-26 11:27:54 +02:00
Kristofer Hallin
366b1cb42f
Valgrind tests for clixon_snmp.
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
c584d171ee
Check if we have Net-SNMP support enabled before trying to run SNMP tests.
2022-06-26 11:26:04 +02:00
Kristofer Hallin
432131c9d2
Add SNMP tools.
2022-06-26 11:26:04 +02:00
Kristofer Hallin
8bff60fb30
Set proper paths to SNMP utils.
2022-06-26 11:26:04 +02:00
Kristofer Hallin
1032e6fee6
Changed paths for SNMP tools used in test.
2022-06-26 11:26:04 +02:00
Kristofer Hallin
34df2413ea
Initial SNMP tests.
2022-06-26 11:26:04 +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
Kristofer Hallin
376996c89e
Install net-snmp-dev and build Clixon with Net-SNMP support.
2022-06-26 11:26:04 +02:00
Kristofer Hallin
01ea7594ce
Include 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
Olof hagsand
a00e36caa2
* Full RFC 7950 if-feature-expr support (Section 7.20.2)
...
* Previous implementation did not handle nested if-feature expressions
* As part of fixing: [YANG if-feature does not support nested boolean expression](https://github.com/clicon/clixon/issues/341 )
* Added new yacc/lex parser for if-feature-expr string
2022-06-26 10:58:43 +02:00
Olof hagsand
5bb3767358
Workaround for [YANG if-feature does not support nested boolean expression]( https://github.com/clicon/clixon/issues/341 )
2022-06-24 11:29:42 +02:00
Olof hagsand
05918e3ca2
Test: change make test from all -> sum, make vagrant yang checkout more resilient
...
New slack invite
2022-06-23 16:37:22 +02:00
Olof hagsand
33c77c8a09
Cleanup, debug stmts, diff vars and obsolete compile options
2022-06-23 15:40:47 +02:00
Olof hagsand
99b766ee50
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-22 13:06:23 +02:00
Olof hagsand
bdb516fec9
YANG Action (RFC 7950 Section 7.15)
...
See [Support for "action" statement](https://github.com/clicon/clixon/issues/101 )
2022-06-21 15:44:02 +02:00
Olof hagsand
87c65c3541
Fixed: [RPC edit-config payloads are not fully validated]( https://github.com/clicon/clixon/issues/337 )
2022-06-20 15:08:50 +02:00
Olof hagsand
a61567a916
SNMP: Fixed leafref index issue and table min-column issue for mult index
2022-06-17 12:21:29 +02:00
Olof hagsand
ab6d9f565b
SNMP: Dynamic table fixes
2022-06-16 14:26:43 +02:00
Olof hagsand
2e068b8320
SNMP: Large refactorings and new dynamic table support
2022-06-16 11:08:07 +02:00
Kristofer Hallin
6086f7ee33
Bugfix.
2022-06-16 10:01:52 +02:00
Kristofer Hallin
25d4089c91
More table tests for IF-MIB.
2022-06-16 09:31:37 +02:00
Kristofer Hallin
5aa7b7c789
Tests for IF-MIB::ifRcvAddressTable with double indexes.
2022-06-15 15:40:24 +02:00
Olof Hagsand
7c22021242
Merge pull request #336 from pheller/fix-test-readme
...
Update README.md
2022-06-14 09:46:43 +02:00
Phillip Heller
75abfb8204
Update README.md
...
https://github.com/YangModels/yang default branch appears to be named "main", not "master"
2022-06-13 11:09:58 -06:00
Kristofer Hallin
2bed287f01
New type, Timeticks.
2022-06-13 14:13:54 +02:00
Kristofer Hallin
b37c7fe747
Don't use the NetSNMP names from the old MIB.
2022-06-13 14:13:30 +02:00
Kristofer Hallin
03fee8029b
Added range for INTEGER type in CLIXON-TYPES-MIB.
2022-06-13 01:59:44 -07:00
Kristofer Hallin
5711bfec3b
Merge branch 'snmp' of https://github.com/clicon/clixon into snmp
2022-06-11 16:58:56 +02:00
Kristofer Hallin
e6659d7919
More updates to CLIXON-TYPES-MIB.
2022-06-11 16:58:40 +02:00
Olof hagsand
479e187917
SNMP: Step towards dynamic tables
2022-06-10 09:39:33 +02:00
Olof hagsand
2d6b166ced
SNMP: refactor type translation using orig-table
2022-06-10 09:39:33 +02:00
Kristofer Hallin
85da43ee70
More tests for entPhysicalMfgDate.
2022-06-09 21:03:03 +02:00
Kristofer Hallin
b234e915ea
Added types DateAndTime and UUIDorZero
2022-06-09 20:59:55 +02:00
Kristofer Hallin
d2f8aec561
New test for entPhysicalVendorType
2022-06-09 19:02:31 +02:00
Olof hagsand
3d07017f34
SNMP: Translate AutonomousType to oid
2022-06-09 11:12:10 +02:00
Olof hagsand
7e8b350fdf
SNMP Test: some clixon mib table tests
2022-06-08 22:10:58 +02:00
Olof hagsand
fa57fe8be7
SNMP Tests: Added clixon sanity checks on all tests
...
Ie, CLICON_VALIDATE_STATE_XML=true
Changed symbolic OID to numeric
2022-06-08 20:34:48 +02:00
Olof hagsand
d9d377de6d
SNMP: Started register table entries dynamically
...
Compile-time constant: SNMP_TABLE_DYNAMIC
Added MIB SNMP erroir handling
2022-06-08 20:31:30 +02:00
Kristofer Hallin
eaab900698
More tests for ENTITY-MIB.
2022-06-08 19:25:56 +02:00
Olof hagsand
0b16797a45
* Added: [Feature Request: Log SSL events]( https://github.com/clicon/clixon/issues/331 )
...
* Added syslog NOTICE on failed user certs
2022-06-08 13:22:38 +02:00