Commit graph

  • dd23c800a0 Re-structured entity tests. Kristofer Hallin 2022-05-30 15:23:40 +02:00
  • 53cd1fdf09 Install the needed MIB for our Docker tests and wait a few seconds for snmpd to start. Kristofer Hallin 2022-05-30 14:17:55 +02:00
  • 9d5a14ef99 Added MIBs needed for tests. Kristofer Hallin 2022-05-30 13:43:14 +02:00
  • ff52cad3a8 SNMP frontend: Types and indexes Added timestamp and inet address First go at index names Olof hagsand 2022-05-30 11:23:52 +02:00
  • 68eda07cc4 Verify all table elements for system MIB tests. Kristofer Hallin 2022-05-29 14:55:57 +02:00
  • f65271315a Losts of new tests for ENTITY-MIB. Kristofer Hallin 2022-05-28 21:46:45 +02:00
  • 4d6672f29c One more entry for IF-MIB tests. Kristofer Hallin 2022-05-28 21:29:29 +02:00
  • b3a6700fd5 SNMP frontend, forgot add some files in last commit Olof hagsand 2022-05-28 15:37:44 +02:00
  • 18ff854e12 SNMP frontend: special case for SnmpAdminString with not null-terminated string Olof hagsand 2022-05-28 15:13:53 +02:00
  • 7bcecc155a SNMP Frontend, fixed remaining types: phys-addr, timeticks, binary, objectid Olof hagsand 2022-05-28 10:33:41 +02:00
  • a0541483d4 Initial entity tests. Kristofer Hallin 2022-05-27 15:53:14 +02:00
  • fc3a0e1d7e Don't load any of the MIBs we want to test, we will register the OIDs ourselves. Kristofer Hallin 2022-05-26 20:27:08 +02:00
  • 6bf9938d75 System tests for SNMP. Kristofer Hallin 2022-05-26 20:17:43 +02:00
  • 6f7a33d196 SNMP frontend, new preli table handling code Skipped data set and use table-helper only Specialized SNMP error handling Olof hagsand 2022-05-26 17:47:28 +02:00
  • 468a0aa4ae Removed test_snmp.sh, replaced by other tests. Kristofer Hallin 2022-05-26 11:00:22 +02:00
  • baf60e5468 Added test/mibs/ for Clixon specific MIBs. Kristofer Hallin 2022-05-25 21:37:25 +02:00
  • 6e60287bc0 SNMP frontend: forgot GET detailed type info in last commit Olof hagsand 2022-05-25 09:59:24 +02:00
  • a02e78a3c1 SNMP frontend tests: Added more descriptic types of each get/set value and netsnmp instructions Olof hagsand 2022-05-24 11:16:44 +02:00
  • a99d1e189e ifNumber should be enclosed by interface. Kristofer Hallin 2022-05-23 21:37:34 +02:00
  • 8c253cfc61 SNMP test typo in test_snmp_set Olof hagsand 2022-05-23 14:42:29 +02:00
  • 05f3ebb59e SNMP frontend: SNMP2YANG type conversion for snmpset Olof hagsand 2022-05-23 14:32:44 +02:00
  • 76ce6bf8d7 Test integer max and -1. Kristofer Hallin 2022-05-23 09:51:32 +02:00
  • aa95ead1cc SNMP frontend: Reworked types for GET types translation YANG enum type, split up enum to int into two functions Olof hagsand 2022-05-23 09:09:02 +02:00
  • 31fea9e6c8 SNMP type tests. Kristofer Hallin 2022-05-22 21:30:53 +02:00
  • 657aafd3b1 Extended supported types with uint64. Kristofer Hallin 2022-05-22 21:09:03 +02:00
  • bf1643cc43 Extended supported types with uint32. Kristofer Hallin 2022-05-21 09:49:08 +02:00
  • a312bd5806 Test all fields in an ifTable with only single entry, disabled for now. Kristofer Hallin 2022-05-20 15:59:56 +02:00
  • 46cb21f3e8 SNMP frontend: Generalized type handling for set functions SPlit scalar_handler into get and set subfunctions Olof hagsand 2022-05-20 15:02:58 +02:00
  • ef604be610 SNMP frontend, restructure files Split snmp_mib_yang.c into: snmp_register.[ch] and snmp_handler.[ch] Olof hagsand 2022-05-19 16:01:25 +02:00
  • f905f66efa SNMP frontend: Changed yang2xpath to us string, traverse only datanodes Olof hagsand 2022-05-19 15:40:53 +02:00
  • 484507b628 removed binary added by mistake Olof hagsand 2022-05-18 11:10:36 +02:00
  • eb8d0c0b3a SNMP frontend: added -z zap command-line option and pid-file exclusive check, fixed mem check Olof hagsand 2022-05-18 10:43:51 +02:00
  • 2366be0062 Handle errors from clixon_table_create. Kristofer Hallin 2022-05-17 21:56:45 +02:00
  • c366962054 SNMP frontend: changed default mibyang dir to /share/mib-yangs to be same as repo Test: new prel test_snmp_ifmib.sh Olof hagsand 2022-05-17 20:23:15 +02:00
  • 42f21a309a SNMP frontend: conflict typos, snmp pidfile Olof hagsand 2022-05-17 18:30:54 +02:00
  • 5172cf15fa SNMP frontend: getnext, oid sanity checks and scalar debug Olof hagsand 2022-05-17 17:07:38 +02:00
  • 59a637fdf4 New function, clixon_table_create which will clear a table and create any rows, indexes and columns to avoid collissions. Kristofer Hallin 2022-05-17 15:38:04 +02:00
  • 99cd8bacc0 SNMP frontend generic code for tables and clixon backend Added snmp-msg translation table Changed test-table to only GET Olof hagsand 2022-05-15 13:42:28 +02:00
  • 62a32faf9c SNMP frontend. New snmp_lib.[ch] and rearranged code into lib Test: renamed WITH_SNMP -> ENABLE_SNMP Olof hagsand 2022-05-14 17:13:10 +02:00
  • 1f8b82e8e1 SNMP frontend, add int32 + string type for scalars Added get string test Added set value for netconf test Olof hagsand 2022-05-13 15:12:57 +02:00
  • 72534e864d SNNP frontend. Added SMI default value support and deviation for set Olof hagsand 2022-05-11 09:58:31 +02:00
  • 9b0cf2f7c4 For tables use a callback to create indexes, rows etc. Kristofer Hallin 2022-05-10 19:22:19 +00:00
  • 4ff2ea099c SNMP frontend table fix: handler called with heartrate, return 0 Olof hagsand 2022-05-08 17:37:11 +02:00
  • bbcea8b780 Don't rely on the pid-file to see if snmpd is running or not. Kristofer Hallin 2022-05-07 12:37:19 +00:00
  • 3bb681ffe2 SNMP frontend, main test for config false only, write test move to test_snmp_set.sh Olof hagsand 2022-05-07 14:36:14 +02:00
  • 182b72a4cc SNMP frontend, RPC of single variable through clixon Olof hagsand 2022-05-06 14:48:52 +02:00
  • 4e0d9dd987 SNMP frontend Fixed table/scalar collision issue Made the CS variable change said to be in previous commit Olof hagsand 2022-05-05 23:03:18 +02:00
  • 214b7cc0c7 SNMP frontend test changes Added a CS variable, set to 0 if you started clixon_snmp yourself (eg in gdb) Also added BE (backend) with the same purpose for backend Olof hagsand 2022-05-05 21:51:33 +02:00
  • f9d2acf025 Minimal snmpd configuration for the Docker containers. Also change the pid-dir to /var/run/ since that is what all the tests are expecting. Can we pass the tests now? Kristofer Hallin 2022-05-05 19:16:47 +00:00
  • 4182ee3540 Removed problematic MIB for now. Kristofer Hallin 2022-05-05 19:05:04 +00:00
  • 5a09dcbf13 Change dockerfiles and start scripts to install Net-SNMP, configure snmpd properly and make sure it is started. This is needed for the SNMP tests (test_snm*) to run properly. Since we can't rely on systemd in Alpine we start snmpd from the startsystem-scripts. Kristofer Hallin 2022-05-04 10:36:37 -07:00
  • 7bdc5045b2 In come cases we need YANG files which are converted from SNMP MIBs using smidump. For the Docker images we'll clone the from an external repository. Kristofer Hallin 2022-05-04 07:55:24 -07:00
  • 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> Olof hagsand 2022-05-04 15:03:08 +02:00
  • ee06652e86 SNMP tests: Don't start snmpd, check if the system have snmpd started otherwise present instructions for how to configure and start it. Kristofer Hallin 2022-05-03 03:06:50 -07:00
  • c9eae77d61 SNMP MIB to YANG conversion. Script to traverse a MIB directory and convert the MIBs to YANG files using smidump. Kristofer Hallin 2022-05-02 10:13:29 -07:00
  • 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. Olof hagsand 2022-05-02 17:20:22 +02:00
  • 2699393c4a SNMP: replaced testhandler code to use only NET-SNMP-EXAMPLES-MIB for scalar and table Olof hagsand 2022-05-02 14:36:24 +02:00
  • 4c3bbcc0ed Fix for snmpd in Alpine, snmpd crashes with the default configuration. Kristofer Hallin 2022-05-01 12:34:34 -07:00
  • 0ec26df953 Fixed minor typo in comment. Kristofer Hallin 2022-05-01 12:34:00 -07:00
  • b7c8a27f67 Tests for SNMP tables. Kristofer Hallin 2022-05-01 12:18:37 -07:00
  • f443f4f9b3 Added example for tables. Kristofer Hallin 2022-05-01 12:18:13 -07:00
  • 0fc5bd3bfb Workaround for crashing snmpd in Alpine. Kristofer Hallin 2022-04-27 21:47:09 +02:00
  • 366b1cb42f Valgrind tests for clixon_snmp. Kristofer Hallin 2022-04-27 21:03:47 +02:00
  • 28514c6750 Clixon SNMP frontend update Olof hagsand 2022-04-27 15:18:25 +02:00
  • c584d171ee Check if we have Net-SNMP support enabled before trying to run SNMP tests. Kristofer Hallin 2022-04-27 02:04:13 -07:00
  • 432131c9d2 Add SNMP tools. Kristofer Hallin 2022-04-27 01:28:25 -07:00
  • 8bff60fb30 Set proper paths to SNMP utils. Kristofer Hallin 2022-04-27 01:27:45 -07:00
  • 1032e6fee6 Changed paths for SNMP tools used in test. Kristofer Hallin 2022-04-27 00:37:35 -07:00
  • 34df2413ea Initial SNMP tests. Kristofer Hallin 2022-04-27 00:23:21 -07:00
  • 40d5f99694 Tell the agent to use a Unix socket for communication. Kristofer Hallin 2022-04-25 06:58:36 -07:00
  • e32cb81b49 Clixon SNMP frontend update Olof hagsand 2022-04-25 10:59:18 +02:00
  • 16d21bbe3b Move include of signal.h Kristofer Hallin 2022-04-24 00:24:53 -07:00
  • 376996c89e Install net-snmp-dev and build Clixon with Net-SNMP support. Kristofer Hallin 2022-04-23 13:57:26 -07:00
  • 01ea7594ce Include signal.h Kristofer Hallin 2022-04-23 13:50:22 -07:00
  • d72aa58f90 Initial Net-snmp frontend commit Olof hagsand 2022-04-23 21:12:41 +02:00
  • 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 Olof hagsand 2022-06-26 10:56:03 +02:00
  • 5bb3767358 Workaround for [YANG if-feature does not support nested boolean expression](https://github.com/clicon/clixon/issues/341) Olof hagsand 2022-06-24 11:29:42 +02:00
  • 05918e3ca2 Test: change make test from all -> sum, make vagrant yang checkout more resilient New slack invite Olof hagsand 2022-06-23 16:35:06 +02:00
  • 33c77c8a09 Cleanup, debug stmts, diff vars and obsolete compile options Olof hagsand 2022-06-23 12:36:17 +02:00
  • 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 Olof hagsand 2022-06-22 09:57:25 +02:00
  • bdb516fec9 YANG Action (RFC 7950 Section 7.15) See [Support for "action" statement](https://github.com/clicon/clixon/issues/101) Olof hagsand 2022-06-03 11:14:58 +02:00
  • 87c65c3541 Fixed: [RPC edit-config payloads are not fully validated](https://github.com/clicon/clixon/issues/337) Olof hagsand 2022-06-20 15:08:50 +02:00
  • a61567a916 SNMP: Fixed leafref index issue and table min-column issue for mult index Olof hagsand 2022-06-17 12:18:58 +02:00
  • ab6d9f565b SNMP: Dynamic table fixes Olof hagsand 2022-06-16 14:26:43 +02:00
  • 2e068b8320 SNMP: Large refactorings and new dynamic table support Olof hagsand 2022-06-15 21:19:47 +02:00
  • 6086f7ee33 Bugfix. Kristofer Hallin 2022-06-16 10:01:52 +02:00
  • 25d4089c91 More table tests for IF-MIB. Kristofer Hallin 2022-06-16 09:31:37 +02:00
  • 5aa7b7c789 Tests for IF-MIB::ifRcvAddressTable with double indexes. Kristofer Hallin 2022-06-15 15:38:15 +02:00
  • 7c22021242
    Merge pull request #336 from pheller/fix-test-readme Olof Hagsand 2022-06-14 09:46:43 +02:00
  • 75abfb8204
    Update README.md Phillip Heller 2022-06-13 11:09:58 -06:00
  • 2bed287f01 New type, Timeticks. Kristofer Hallin 2022-06-13 14:13:54 +02:00
  • b37c7fe747 Don't use the NetSNMP names from the old MIB. Kristofer Hallin 2022-06-13 14:13:30 +02:00
  • 03fee8029b Added range for INTEGER type in CLIXON-TYPES-MIB. Kristofer Hallin 2022-06-13 01:59:44 -07:00
  • 5711bfec3b Merge branch 'snmp' of https://github.com/clicon/clixon into snmp Kristofer Hallin 2022-06-11 16:58:56 +02:00
  • e6659d7919 More updates to CLIXON-TYPES-MIB. Kristofer Hallin 2022-06-11 16:58:40 +02:00
  • 479e187917 SNMP: Step towards dynamic tables Olof hagsand 2022-06-10 09:36:15 +02:00
  • 2d6b166ced SNMP: refactor type translation using orig-table Olof hagsand 2022-06-09 13:14:36 +02:00
  • 85da43ee70 More tests for entPhysicalMfgDate. Kristofer Hallin 2022-06-09 21:03:03 +02:00
  • b234e915ea Added types DateAndTime and UUIDorZero Kristofer Hallin 2022-06-09 20:59:55 +02:00
  • d2f8aec561 New test for entPhysicalVendorType Kristofer Hallin 2022-06-09 19:02:31 +02:00