Commit graph

2576 commits

Author SHA1 Message Date
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
Olof hagsand
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
2022-06-08 11:49:48 +02:00
Kristofer Hallin
98de800019 Added snmpwalk tests for system. 2022-06-07 21:36:40 +02:00
Kristofer Hallin
6f28d2b383 Test IF-MIB with numerical and textual OIDs + walk. 2022-06-07 21:26:40 +02:00
Kristofer Hallin
69bccaf543 Change nsIETFWGName type to integer. 2022-06-07 20:45:44 +02:00
Olof hagsand
db8cf75077 Test: Fixed: show netconf pretty 2022-06-07 14:21:40 +02:00
Olof hagsand
b1cb774c9d TEXT output/parser: fix space-separated leaf/leaf-lists 2022-06-07 13:23:05 +02:00
Olof hagsand
fe3e03e4d5 Test: fixed an occasional error in actions depending on hostname including '92' 2022-06-07 11:22:45 +02:00
Olof hagsand
f67913a999 SNMP test: remove state from snmp_set 2022-06-07 11:09:02 +02:00
Kristofer Hallin
6c6a493826 MIB changes. 2022-06-06 21:27:57 +02:00
Olof hagsand
1ba5ad668d SNMP frontend: String table index 2022-06-06 18:14:21 +02:00
Olof hagsand
01b38c6645 Fix text parser leaf-list / leaf succession
See https://github.com/clicon/clixon/issues/324
2022-06-06 15:40:07 +02:00
Olof hagsand
9d5c85884c Added Siklu sponsorship text 2022-06-05 15:50:22 +02:00
Olof hagsand
6e1c20e873 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-05 15:36:20 +02:00
Olof hagsand
4f9ed02a46 Text syntax parser/loader, fixed double leaf-list issue
Test: extended test_cli with format 4x tests
2022-06-03 14:03:01 +02:00
Olof hagsand
625a0ed19a Cleaned up prettyprint->pretty, use yang_cvec_set access function 2022-06-03 14:01:56 +02:00
Kristofer Hallin
eb6185c888 Validate both numerical and lexical OIDs. 2022-06-03 06:20:02 +02:00
Kristofer Hallin
2a181fd5de Added snmpbulkget. 2022-06-02 19:35:32 +02:00
Kristofer Hallin
8e1705495c Only run certain tests if snmp_debug is set. 2022-06-02 19:34:07 +02:00
Olof hagsand
b6bfcb69f7 Text syntax parser/loader
Added support for list x y;
Uses a mechanism to parse as unknown XML body and post-parsing replace with list keys
Fixed example and test to work with new TEXT syntax
2022-06-02 19:28:49 +02:00
Kristofer Hallin
c42379e874 First set of tests using bulkget. 2022-06-02 19:25:10 +02:00
Kristofer Hallin
a33db6ef15 snmpset tests re-written. 2022-06-02 16:21:59 +02:00
Olof hagsand
0c79298e76 Changed C-API for xml translation/print the internal cxobj tree data structure to other formats
New API is as follows:
  * `clixon_xml2file()` - Print internal tree as XML to file
  * `clixon_xml2cbuf()` - Print internal tree as XML to buffer
  * `clixon_json2file()` - Print internal tree as JSON to file
  * `clixon_json2cbuf()` - Print internal tree as JSON to buffer
  * `clixon_cli2file()` - Print internal tree as CLI format to file
  * `clixon_txt2file()` - Print internal tree as text format to file
2022-06-01 20:02:27 +02:00
Olof hagsand
87719c623c Text syntax parser/loader
Leaf-list syntax using: "id [ leaf leaf ...]" syntax for output and input
Variables using \n\r in text
Added clixon_xvec_merge()
2022-06-01 11:08:19 +02:00
Olof hagsand
820ed5686b Text syntax parser/loader
Added string quites around text containing spaces
Added support for colon in text
2022-06-01 11:07:55 +02:00