Commit graph

  • 3d07017f34 SNMP: Translate AutonomousType to oid Olof hagsand 2022-06-09 11:12:10 +02:00
  • 7e8b350fdf SNMP Test: some clixon mib table tests Olof hagsand 2022-06-08 22:10:58 +02:00
  • fa57fe8be7 SNMP Tests: Added clixon sanity checks on all tests Ie, CLICON_VALIDATE_STATE_XML=true Changed symbolic OID to numeric Olof hagsand 2022-06-08 20:32:50 +02:00
  • d9d377de6d SNMP: Started register table entries dynamically Compile-time constant: SNMP_TABLE_DYNAMIC Added MIB SNMP erroir handling Olof hagsand 2022-06-08 19:57:00 +02:00
  • eaab900698 More tests for ENTITY-MIB. Kristofer Hallin 2022-06-08 19:24:19 +02:00
  • 0b16797a45 * Added: [Feature Request: Log SSL events](https://github.com/clicon/clixon/issues/331) * Added syslog NOTICE on failed user certs Olof hagsand 2022-06-08 13:22:38 +02:00
  • 609e27e0c2 Augmented XML uses default namespace * Instead of using prefixes for augmented XML, assign the default namespace Test: moved datastore format tests from test_cli to new test_datastore_format Olof hagsand 2022-06-08 11:19:50 +02:00
  • 98de800019 Added snmpwalk tests for system. Kristofer Hallin 2022-06-07 21:36:40 +02:00
  • 6f28d2b383 Test IF-MIB with numerical and textual OIDs + walk. Kristofer Hallin 2022-06-07 21:26:40 +02:00
  • 69bccaf543 Change nsIETFWGName type to integer. Kristofer Hallin 2022-06-07 20:45:44 +02:00
  • db8cf75077 Test: Fixed: show netconf pretty Olof hagsand 2022-06-07 14:21:40 +02:00
  • b1cb774c9d TEXT output/parser: fix space-separated leaf/leaf-lists Olof hagsand 2022-06-07 13:23:05 +02:00
  • fe3e03e4d5 Test: fixed an occasional error in actions depending on hostname including '92' Olof hagsand 2022-05-30 15:36:37 +02:00
  • f67913a999 SNMP test: remove state from snmp_set Olof hagsand 2022-06-07 11:09:02 +02:00
  • 6c6a493826 MIB changes. Kristofer Hallin 2022-06-06 21:27:57 +02:00
  • 1ba5ad668d SNMP frontend: String table index Olof hagsand 2022-06-06 18:14:21 +02:00
  • 01b38c6645 Fix text parser leaf-list / leaf succession See https://github.com/clicon/clixon/issues/324 Olof hagsand 2022-06-06 15:40:07 +02:00
  • 9d5c85884c Added Siklu sponsorship text Olof hagsand 2022-06-05 15:50:22 +02:00
  • 6e1c20e873 SNMP Frontend, fix handling of snmpd down and memory leaks Olof hagsand 2022-06-05 15:30:55 +02:00
  • 4f9ed02a46 Text syntax parser/loader, fixed double leaf-list issue Test: extended test_cli with format 4x tests Olof hagsand 2022-06-03 14:03:01 +02:00
  • 625a0ed19a Cleaned up prettyprint->pretty, use yang_cvec_set access function Olof hagsand 2022-06-02 19:56:49 +02:00
  • eb6185c888 Validate both numerical and lexical OIDs. Kristofer Hallin 2022-06-03 06:20:02 +02:00
  • 2a181fd5de Added snmpbulkget. Kristofer Hallin 2022-06-02 19:35:32 +02:00
  • 8e1705495c Only run certain tests if snmp_debug is set. Kristofer Hallin 2022-06-02 19:34:07 +02:00
  • b6bfcb69f7 Text syntax parser/loader Olof hagsand 2022-06-02 19:05:12 +02:00
  • c42379e874 First set of tests using bulkget. Kristofer Hallin 2022-06-02 19:25:10 +02:00
  • a33db6ef15 snmpset tests re-written. Kristofer Hallin 2022-06-02 16:21:59 +02:00
  • 0c79298e76 Changed C-API for xml translation/print the internal cxobj tree data structure to other formats Olof hagsand 2022-06-01 20:02:27 +02:00
  • 87719c623c Text syntax parser/loader Olof hagsand 2022-05-31 14:48:30 +02:00
  • 820ed5686b Text syntax parser/loader Olof hagsand 2022-05-19 14:35:18 +02:00
  • 2ece0b8f51 * Experimental text syntax parser/loader * Added new text syntax parsing and loading from CLI * Unified text output functions to xml2txt and moved to clixon_text_syntax.[ch] * The following are removed: cli_xml2txt and xml2txt_cb * Text output format changed: * Namespace/modulename added to top-level * See [Support performant load_config_file(...) for TEXT format](https://github.com/clicon/clixon/issues/324) Olof hagsand 2022-05-19 12:56:44 +02:00
  • 43a57dad79 Changed C-API for xml translation/print to other formats. Olof hagsand 2022-06-01 10:48:39 +02:00
  • 118e198a1e test_snmp_types.sh are now test_snmp_get.sh Kristofer Hallin 2022-05-31 21:11:04 +02:00
  • ad34885303 No copy Kristofer Hallin 2022-05-31 21:10:18 +02:00
  • 03988e4a0f Some variables and functions now live in lib.sh Kristofer Hallin 2022-05-31 21:03:04 +02:00
  • 0bceddd75d Copy Clixon MIB from test/mib/ to system MIB directory. Kristofer Hallin 2022-05-31 21:01:54 +02:00
  • 6969149a20 Modified the CLIXON-TYPES-MIB to use other OID, avoid collisions. Kristofer Hallin 2022-05-31 21:00:35 +02:00
  • ee0f238fad SNMP get tests for various types. Kristofer Hallin 2022-05-31 20:56:05 +02:00
  • 0c370065a6 Moved generic SNMP functions to lib.sh Kristofer Hallin 2022-05-31 20:55:39 +02:00
  • 724b94137f Test, fixed the fix of previous commits Olof hagsand 2022-05-30 15:47:54 +02:00
  • ebe3d8e454 Test: fixed an occasional error in actions depending on hostname inclduing '92' Olof hagsand 2022-05-30 15:36:37 +02:00
  • 8e6ba7fa53 test of cligen expand bug #332 Olof hagsand 2022-05-30 15:27:19 +02:00
  • 73710ca7bf Re-structured entity tests. Kristofer Hallin 2022-05-30 15:23:40 +02:00
  • 73e54009a8 Merge branch 'snmp' of https://github.com/clicon/clixon into snmp Kristofer Hallin 2022-05-30 14:18:08 +02:00
  • ce0a53511a 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
  • 0f8d50d5a4 Added ENTITY-MIB needed for tests. Kristofer Hallin 2022-05-30 13:46:23 +02:00
  • 72f1ecbdb2 Added MIBs needed for tests. Kristofer Hallin 2022-05-30 13:43:14 +02:00
  • 5740d37737 Clixon 5.8.0.pre Olof hagsand 2022-05-30 12:30:37 +02:00
  • 739193a3de 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
  • 25e92bf15d Verify all table elements for system MIB tests. Kristofer Hallin 2022-05-29 14:55:57 +02:00
  • 9b42d00219 Losts of new tests for ENTITY-MIB. Kristofer Hallin 2022-05-28 21:46:45 +02:00
  • ba354dac46 One more entry for IF-MIB tests. Kristofer Hallin 2022-05-28 21:29:29 +02:00
  • b2fbcb395c SNMP frontend, forgot add some files in last commit Olof hagsand 2022-05-28 15:37:44 +02:00
  • 02983a025a SNMP frontend: special case for SnmpAdminString with not null-terminated string Olof hagsand 2022-05-28 15:13:53 +02:00
  • bf110058bc SNMP Frontend, fixed remaining types: phys-addr, timeticks, binary, objectid Olof hagsand 2022-05-28 10:33:41 +02:00
  • 04d51b6a56 Initial entity tests. Kristofer Hallin 2022-05-27 15:53:14 +02:00
  • a8175e3c63 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
  • 4d82b69946 System tests for SNMP. Kristofer Hallin 2022-05-26 20:17:43 +02:00
  • b2be7e9e1b 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
  • 1a2edb7a2a Removed test_snmp.sh, replaced by other tests. Kristofer Hallin 2022-05-26 11:00:22 +02:00
  • 934e4a776b Added test/mibs/ for Clixon specific MIBs. Kristofer Hallin 2022-05-25 21:37:25 +02:00
  • f6b762f4a5 SNMP frontend: forgot GET detailed type info in last commit Olof hagsand 2022-05-25 09:59:24 +02:00
  • a7df2cd2f2 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
  • d838f16e6a ifNumber should be enclosed by interface. Kristofer Hallin 2022-05-23 21:37:34 +02:00
  • 0fa35b6926 SNMP test typo in test_snmp_set Olof hagsand 2022-05-23 14:42:29 +02:00
  • 675f4c9f7e SNMP frontend: SNMP2YANG type conversion for snmpset Olof hagsand 2022-05-23 14:32:44 +02:00
  • d78f6c5ac7 Test integer max and -1. Kristofer Hallin 2022-05-23 09:51:32 +02:00
  • 7a1dc5da50 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
  • e44d76cc3a SNMP type tests. Kristofer Hallin 2022-05-22 21:30:53 +02:00
  • 91bed5589a Extended supported types with uint64. Kristofer Hallin 2022-05-22 21:09:03 +02:00
  • aea2760cb0 Extended supported types with uint32. Kristofer Hallin 2022-05-21 09:49:08 +02:00
  • 299227a7ca Test all fields in an ifTable with only single entry, disabled for now. Kristofer Hallin 2022-05-20 15:59:56 +02:00
  • ea03363c3a 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
  • 34fe439f53 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
  • 0cf87c75a9 SNMP frontend: Changed yang2xpath to us string, traverse only datanodes Olof hagsand 2022-05-19 15:40:53 +02:00
  • 7b2eee0158 removed binary added by mistake Olof hagsand 2022-05-18 11:10:36 +02:00
  • 63620994e8 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
  • 70ac79c825 Handle errors from clixon_table_create. Kristofer Hallin 2022-05-17 21:56:45 +02:00
  • eb18a60d6c 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
  • 14faf2b3f0 SNMP frontend: conflict typos, snmp pidfile Olof hagsand 2022-05-17 18:30:54 +02:00
  • 5a3e2eaae6 SNMP frontend: getnext, oid sanity checks and scalar debug Olof hagsand 2022-05-17 17:07:38 +02:00
  • 338be43e6a 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
  • 38d91a1305 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
  • 8a208693ba 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
  • 3642fde46f 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
  • 1b921e874e SNNP frontend. Added SMI default value support and deviation for set Olof hagsand 2022-05-11 09:58:31 +02:00
  • 299554048f For tables use a callback to create indexes, rows etc. Kristofer Hallin 2022-05-10 19:22:19 +00:00
  • 63c5846091 SNMP frontend table fix: handler called with heartrate, return 0 Olof hagsand 2022-05-08 17:37:11 +02:00
  • f5d9f7226c 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
  • 0473303a4c 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
  • f1db15c2ad SNMP frontend, RPC of single variable through clixon Olof hagsand 2022-05-06 14:48:52 +02:00
  • 19c47ee043 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
  • 0a1ff1a445 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
  • de28fb18fe 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
  • 465c373e1e Removed problematic MIB for now. Kristofer Hallin 2022-05-05 19:05:04 +00:00
  • 2b66def1f1 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
  • 812b9accf8 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
  • 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> Olof hagsand 2022-05-04 15:03:08 +02:00
  • 80651503fd 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
  • 1c55ed05f2 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