Commit graph

  • 05372c86fc Added copyright for cjson code Olof hagsand 2022-11-23 09:59:26 +01:00
  • a9a82d6e0c Load RFC6022 ietf-netconf-monitoring, first step Olof hagsand 2022-11-21 12:51:46 +01:00
  • 9217821492
    Merge pull request #383 from nowaits/master Olof Hagsand 2022-11-23 09:51:49 +01:00
  • 4839a633e3 add regex unicode match support jiangxiaoming 2022-11-22 12:15:44 +08:00
  • a3bb271432 cli show config json: add {} clause for empty Olof hagsand 2022-11-19 11:13:27 +01:00
  • caef594dbe Error handling for CLI Continue, do not exit on read/expand errors Accept -1 error without clicon_err in callbacks / expand C-API: Three-value return of clicon_cliread Olof hagsand 2022-11-19 09:22:44 +01:00
  • f82ce896a9 Typos and docker test fix for ubuntu-22.04 Olof hagsand 2022-11-09 16:39:00 +01:00
  • d5c657bde3 Removed YANG_ORDERING_WHEN_LAST compile-time option (obsolete since 5.4) Olof hagsand 2022-11-07 10:47:08 +01:00
  • 1683723b1d Removed JSON_CDATA_STRIP compile-time option (obsolete since 5.4) Olof hagsand 2022-11-07 10:07:10 +01:00
  • 4b21a05bcc Fixed IDENTITYREF_KLUDGE removal #2 Olof hagsand 2022-11-07 09:19:29 +01:00
  • b0f898cf66 Fixed: [Yang identityref XML encoding is not general](https://github.com/clicon/clixon/issues/90) * Revisiting this issue now seems to work, there are no regressions that fail when disabling IDENTITYREF_KLUDGE. Olof hagsand 2022-11-05 12:07:44 +01:00
  • 779fcf5458 Fixed xpath crashes discovered by fuzzing Added fuzz code for xpath Test: added negative xpath tests Olof hagsand 2022-11-04 16:12:22 +01:00
  • 05cdbf5c4f * List-pagination: Adhere to ietf-draft: Removed list-pagination "presence" * Remove default expansion in NETCONF client * C-API: Added expanddefault parameter to xml_yang_validate_rpc() Olof hagsand 2022-11-02 11:15:55 +01:00
  • c2faf8b96c Main example: Removed dependency of external IETF RFCs + * See [Can't initiate clixon_backend](https://github.com/clicon/clixon/issues/382) Olof hagsand 2022-11-01 12:20:30 +01:00
  • e3d621c66d Fixed: SEGV when using NETCONF get filter xpath and non-existent key * eg select="/ex:table[ex:non-exist='a'] Olof hagsand 2022-11-01 11:13:40 +01:00
  • 56f4bb45cc * Added PRETTYPRINT_INDENT compile-time option controlling indentation level for XML,JSON and TEXT * Default value is 3 Olof hagsand 2022-10-31 14:20:14 +01:00
  • 1830381249 Fixed CLI show config JSON pretty-print, removed too many spaces Test: added CLI show config tests for prett-print and cli_show_config() Olof hagsand 2022-10-31 11:26:53 +01:00
  • c93f264215 Added final \n to JSON pretty-print output This was a correction of fix to: [CLI Show config JSON with multiple top-level elements is broken](https://github.com/clicon/clixon/issues/381) Olof hagsand 2022-10-29 16:06:15 +02:00
  • 83f71529d7 Fixed: [CLI Show config JSON with multiple top-level elements is broken](https://github.com/clicon/clixon/issues/381) C API: Added skiptop parameter to xml2json_vec Olof hagsand 2022-10-28 15:13:41 +02:00
  • 097aeb0320 Test: snmp ifmib typo Olof hagsand 2022-10-27 15:50:09 +02:00
  • 4787b3a7b9
    Merge pull request #372 from clicon/test_ifxtable Olof Hagsand 2022-10-27 15:04:33 +02:00
  • 86b692921a
    Merge pull request #373 from pheller/fix-editorconfig Olof Hagsand 2022-10-27 15:02:45 +02:00
  • be74256d81
    Merge branch 'master' into fix-editorconfig Olof Hagsand 2022-10-27 15:02:34 +02:00
  • d84c529ff1 [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) * Applies to all c/h/y/l/sh files and .editorconfig Olof hagsand 2022-10-27 14:21:17 +02:00
  • a9d1ab006c Confirmed commit: lock check on running Olof hagsand 2022-10-26 20:18:57 +02:00
  • 7976303ef2 Confirmed-commit handle drop privileges Create and drop priv of rollback datastore on startup Reverted xmldb to truncate instead of deleting datastores due to privileges drop Olof hagsand 2022-10-26 14:34:51 +02:00
  • ba48521d99 Confirmed commit: removed is_valid_confirming_commit global variable Olof hagsand 2022-10-26 11:00:44 +02:00
  • 05b31508a1 * Fixed: [Non-obvious behavior of clixon_snmp after snmpset command when transaction validation returns an error](https://github.com/clicon/clixon/issues/375) * Fixed by validating writes on ACTION instead of COMMIT since libnetsnmp seems not to accept commit errors Olof hagsand 2022-10-25 16:32:48 +02:00
  • 3a5d156690 Docs: C struct style Tests: changed waiting->wait backend Olof hagsand 2022-10-24 13:54:02 +02:00
  • 62e652bbcf Confirm-commit refactoring Moved commit-confirm code to backend_confirm.c and removed (almost all) globals vars Olof hagsand 2022-10-19 17:35:38 +02:00
  • 6f0bd01a6a Confirm-commit RESTCONF support Olof hagsand 2022-10-18 09:36:11 +02:00
  • 1eb78a78f8 Fixed: [YANG when condition evaluated as false combined with a mandatory leaf does not work](https://github.com/clicon/clixon/issues/380) Replaced yang_mandatory() with yang_xml_mandatory() by extending existing it with when check Olof hagsand 2022-10-17 13:16:08 +02:00
  • 83663d4d15 Fixed: [Trying to change the "read-only" node through snmpset](https://github.com/clicon/clixon/issues/376) Olof hagsand 2022-10-09 17:02:08 +02:00
  • c4e69b76cf Doxyfile for graphs Olof hagsand 2022-10-09 12:10:12 +02:00
  • aff69127b6 Fixed: [Trying to change the "config false" node through snmpset](https://github.com/clicon/clixon/issues/377) * Fixed by returning SNMP_ERR_NOTWRITABLE when trying to reserve object Olof hagsand 2022-10-09 11:59:26 +02:00
  • d2c3b903f1 SNMP: set commit fail error Olof hagsand 2022-10-09 11:11:17 +02:00
  • dd1e5966fb Test: killed backend in snmp tests Olof hagsand 2022-10-08 17:19:24 +02:00
  • 575429caa1 * Fixed: [Non-obvious behavior of clixon_snmp after snmpset command when transaction validation returns an error](https://github.com/clicon/clixon/issues/375) * Changed clicon_rpc_commit() and clicon_rpc_validate: Added three-value return. Olof hagsand 2022-10-08 17:04:02 +02:00
  • d29c81fce0 Fixed: [clixon_snmp module crashes on snmpwalk command](https://github.com/clicon/clixon/issues/378) Olof hagsand 2022-10-07 17:53:25 +02:00
  • 11eccd5478 Confirm commit: - Removed confirm-commit 1.0 capability (only 1.1 present) - Made startup capability conditional (as confirmed-commit) - Fixed startup error when rollback did not exist - Adjust snmp commit calls - Move failsafe to lib - Test: Minimized test application, test capability Olof hagsand 2022-10-07 10:02:07 +02:00
  • 8abcda6f85 confirmed-commit fixes, tests Phil Heller 2022-10-03 21:42:01 -06:00
  • 284316b646 Initial implementation of NETCONF confirmed-commit Phil Heller 2022-09-30 19:17:13 -06:00
  • 954e5d56fd Fixed: [unneeded trailing zero character on SNMP strings](https://github.com/clicon/clixon/issues/367) Olof hagsand 2022-10-03 18:39:30 +02:00
  • 4a5e0c1832 C API: Exposed clicon_log_str() Olof hagsand 2022-10-03 10:33:07 +02:00
  • f0c8201762 Added warning if modstate is not present in datastore if is set Olof hagsand 2022-10-03 10:29:28 +02:00
  • cdd61a9873 Improve .editorconfig Phil Heller 2022-09-30 11:18:23 -06:00
  • 09694e441c snmpwalk test for ifXTable and augmented MIB. Kristofer Hallin 2022-09-29 12:14:59 +00:00
  • bae92488e9 * Added defaults parameter to clicon_rpc_get_pageable_list() * Test: Replaced bash coverage script with binary Olof hagsand 2022-09-28 15:16:02 +02:00
  • e3f3d772c7 Fixed: [message-id present on netconf app "hello"](https://github.com/clicon/clixon/issues/369) Olof hagsand 2022-09-28 15:04:11 +02:00
  • 6063d9a147 Fixed: [SNMP smiv2 yang extension doesn't work on augmented nodes](https://github.com/clicon/clixon/issues/366) Olof hagsand 2022-09-27 14:37:36 +02:00
  • a18800471e
    Merge pull request #368 from clicon/test_snmp_augment Olof Hagsand 2022-09-26 15:26:48 +02:00
  • a912105c78 New test for augmented ifTable. Kristofer Hallin 2022-09-26 14:48:33 +02:00
  • f0def17b85 New pre version: 6.0.0.PRE Olof hagsand 2022-09-26 12:37:52 +02:00
  • 33297925cb Clixon 5.9.0 autoconf Olof hagsand 2022-09-24 17:03:47 +02:00
  • d06594ca0a Release 5.9.0 Olof hagsand 2022-09-24 17:01:44 +02:00
  • 91b63b310d Test: Fixed borken with-defaults capability test Olof hagsand 2022-09-24 13:09:52 +02:00
  • 26ab7e78ce Fixed: XML encoding of with-default capability not done Olof hagsand 2022-09-24 11:50:36 +02:00
  • 2ce77fdd5c Restconf: reset body buffer Test: replace http2 with http1.1 instead of appending it Olof hagsand 2022-09-23 14:44:08 +02:00
  • e0ba90207b Restconf callhome idle timer fix Leak in restconf http/1 data path: when multiple packets in same connection. Olof hagsand 2022-09-22 14:22:38 +02:00
  • 68daaae9d6
    Merge pull request #365 from clicon/wdcc Olof Hagsand 2022-09-22 09:09:57 +02:00
  • d6555e4d1f Test: add curl error 56 Olof Hagsand 2022-09-21 18:51:23 +00:00
  • ae6275cfa1 New testcase to verify With-Defaults Corner Case where top container is trimmed Jan-Olof Carlson 2022-09-21 08:37:08 +00:00
  • 5f38b50eab Test: unset format variable, disable restconf-notifications Olof Hagsand 2022-09-20 18:46:03 +00:00
  • fcc9245c35 Test: make streams optional, remove dependency on main example Olof hagsand 2022-09-20 13:38:25 +02:00
  • e532543cea Fixed: With-defaults: top-level container not properly trimmed Olof hagsand 2022-09-20 10:52:44 +02:00
  • 3b58d010a3 Test: expecteof_netconf use fix string grep, fix err funciton call-by-value Olof hagsand 2022-09-19 14:39:06 +02:00
  • 51d1a2d41c Improved netconf error handling for data-not-unique and missing-choice * Follows RFC7950 Sec 15.1 and 15.6 more closely * Fixed: [When multiple lists have same key name, need more elaborate error message in case of configuration having duplicate keys](https://github.com/clicon/clixon/issues/362) Olof hagsand 2022-09-19 14:33:44 +02:00
  • e579d959fa
    Merge pull request #364 from clicon/restconf-capabilities Olof Hagsand 2022-09-19 13:34:18 +02:00
  • b63918ff08 with-defaults added as RESTCONF capability information Jan-Olof Carlson 2022-09-19 11:02:59 +00:00
  • 07536fc8d2 With-default cli test, use xpath to only show config tree Make all tests independent of CLICON_STREAM_DISCOVERY_RFC8040 setting Olof hagsand 2022-09-19 10:57:15 +02:00
  • 3bf8a7dca3 Assigned meta-data for the ietf-netconf-with-defaults:default attribute for JSON (RFC8040 Sec 5.3.2) Olof hagsand 2022-09-16 14:46:41 +02:00
  • a6f67755b3 Refactor of cli show commands: - Changed cli_show_config() - Removed cli_show_config_state() - Replaced cli_auto_show() with cli_show_auto_mode() Olof hagsand 2022-09-15 17:42:57 +02:00
  • 9a224ea4a0 Fixed: [All values in list don't appear when writing "show <list>" in cli](https://github.com/clicon/clixon/issues/359) CLISPEC change: * Changed signature of cli_show_auto(), * remove: cli_show_auto_state() Olof hagsand 2022-09-14 15:31:45 +02:00
  • 76c1566d00 Restconf callhome: idle-timeout activity timer Olof hagsand 2022-09-14 10:43:34 +02:00
  • c1e4595949 Refactoring of RESTCONF/TLS close code Single closing function: restconf_close_ssl_socket Added constant HTTP_ON_HTTPS_REPLY for http request on https socket Olof hagsand 2022-09-13 22:55:11 +02:00
  • e39d18d59f with-default test: moved wd attr to under <data> Olof hagsand 2022-09-09 13:36:08 +02:00
  • 51fca05642 With-defaults tagged: move wd attribute from <data> to level under show cli: remove empty container Olof hagsand 2022-09-09 13:00:01 +02:00
  • 743076b171 With-defaults CLI support Extended cli_auto_show() with with-defaults argument, also changing its signature Example: Added with-defaults argument to clispec C-API: Added with-defaults argument to clicon_rpc_get_config Replaced with-defaults prefix/namespace with constants Olof hagsand 2022-09-09 12:30:57 +02:00
  • 42d5b6fba2 remove containers holding only default values Jan-Olof Carlson 2022-09-08 17:22:06 +00:00
  • 38f501be19 Extended purge argument to xml_defaults_nopresence to handle non-config case Test: with-defaults: added headings to all test cases Olof hagsand 2022-09-07 15:18:48 +02:00
  • 2d23c9656b
    Merge pull request #358 from nowaits/master Olof Hagsand 2022-09-07 10:26:45 +02:00
  • 15fcae3c23 Fixed: [Clixon backend transaction callback fails for empty types](https://github.com/clicon/clixon/issues/360) Fixed: [Clixon backend transactions for choice/case is not logical](https://github.com/clicon/clixon/issues/361) Olof hagsand 2022-09-06 16:23:30 +02:00
  • ddf01503c6 libressl requires -new to openssl commands, thanks krihal Olof hagsand 2022-09-06 12:49:08 +02:00
  • 44501c097d Test: restconf-callhome fixes for http/1+2 and valgrind Olof hagsand 2022-09-06 11:34:06 +02:00
  • f6a964eab6 Test: pass tests for disable-http1 and disable-nghttp2 Olof hagsand 2022-09-04 15:05:06 +02:00
  • 5e2643c382 Test: remove testdir also if skip test Olof hagsand 2022-09-03 13:07:26 +02:00
  • 71fc85af0b restconf: removed try to reply on http on https error, fails on openssl 3 test: pipe background restconf to /dev/null Olof hagsand 2022-09-02 19:43:05 +02:00
  • 2eb9c6cda1 Refactored YANG min/max validation code, created new clixon_validate_minmax.[ch] Added new recursive minmax check for non-presence containers This makes validation checks stricter, including check of incoming RPCs Renamed xml_yang_check_list_unique_minmax() to xml_yang_minmax_recurse() Fixed again: [YANG min-elements within non-presence container does not work](https://github.com/clicon/clixon/issues/355) Olof hagsand 2022-09-01 10:51:06 +02:00
  • c8bf718db8 replace xml_nopresence functions with xml_defaults_nopresence Olof hagsand 2022-08-27 17:16:30 +02:00
  • 2e3a5a6334 Minor adjustments to follow clixon programming style Jan-Olof Carlson 2022-08-27 07:16:37 +00:00
  • ad7232d1ad Added top-level namespaces when pruning XML tree for client rpc calls and restconf GET Added new xmlns_set_all() Olof hagsand 2022-08-26 13:29:06 +02:00
  • 9be83d6c7e Added support for with-defaults to list pagination Jan-Olof Carlson 2022-08-25 13:11:42 +00:00
  • 175ed5a193 Improved testcases for RESTCONF Jan-Olof Carlson 2022-08-22 14:16:04 +00:00
  • c8f98f7c3c Added namespace when with-defaults=report-all-tagged Jan-Olof Carlson 2022-08-22 12:34:52 +00:00
  • 2f0f1ef5a7 FC6243 with-defaults=report-all-tagged test cases and implementation added Jan-Olof Carlson 2022-08-17 07:12:50 +00:00
  • 8154943380 Server uses the explicit basic mode Jan-Olof Carlson 2022-08-17 05:54:14 +00:00
  • 5a9d444dc6 with-default capabilities: report-all, explicit, trim Jan-Olof Carlson 2022-08-10 18:35:19 +00:00
  • 9771feebf3 RFC6243 with-defaults=trim test cases and implementation added Jan-Olof Carlson 2022-08-10 15:27:14 +00:00
  • f3ab3006e8 Fixed: [with-defaults=trim does not work due to dodgy handling of state data marked as default](https://github.com/clicon/clixon/issues/348) Olof hagsand 2022-08-10 15:17:37 +02:00
  • 71fe10a057 with-defaults=trim does not work due to dodgy handling of state data marked as default Jan-Olof Carlson 2022-08-02 08:32:46 +00:00