Commit graph

  • fe8636bb77 Move validation flag to include diff Olof hagsand 2023-02-21 20:19:59 +01:00
  • 48a7eac096 yang load add test to not parse files if not already loaded Olof hagsand 2023-02-21 12:02:40 +01:00
  • 980c7d082f Add support decimal64 for snmp stass 2023-02-14 11:56:37 +02:00
  • 411a67f9d6 Start of 6.2.0.PRE development. Removed autoconf requirement to have libcurl Olof hagsand 2023-02-20 09:40:12 +01:00
  • 72a4494b69 Clixon 6.1 Reviewed documentation, changelog, etc Olof hagsand 2023-02-19 11:35:37 +01:00
  • 994632daac Test adaption to new openconfig version Last minute changes to readme:s before 6.1.0 Olof hagsand 2023-02-18 12:10:56 +01:00
  • 585e725aec Yang schema mount: replaced config --enable-yang-schame-mount with runtime option CLICON_YANG_SCHEMA_MOUNT Added config and validation-level as parameters to ca_yang_mount Olof hagsand 2023-02-17 15:36:11 +01:00
  • 02841e5c36 CI: changed curl dependency Olof hagsand 2023-02-17 11:48:43 +01:00
  • ecd60fbcfe
    Merge pull request #418 from kernelkit/kkit Olof Hagsand 2023-02-17 09:52:42 +01:00
  • 204c704b3a Test: moved unsetting of vars to endtest Olof hagsand 2023-02-15 13:59:21 +01:00
  • 058d3f7597 .github: add curl-dev dependency for regression tests Joachim Wiberg 2023-02-14 20:38:41 +01:00
  • 585823a609 Memory leaks Olof hagsand 2023-02-14 16:42:30 +01:00
  • 0ef0970c04 Implemented: [Request to suppress auto-completion for "deprecated" / "obsolete" status and warn the user.](https://github.com/clicon/clixon/issues/410) Olof hagsand 2023-02-14 15:57:17 +01:00
  • e36a4e3016 test: temporary fixes DROP BE BEFORE PUSH Joachim Wiberg 2023-02-14 15:39:13 +01:00
  • fcf9a8b0b0 C-API: Exposed diff function Test: double leaf validate test Olof Hagsand 2023-02-13 20:21:44 +01:00
  • d358387d39 * Fixed: [State XML validation error when CLICON_MODULE_LIBRARY_RFC7895=true and ietf-yang-libra$ * Removed obsolete option: `CLICON_MODULE_LIBRARY_RFC7895' * Obsolete config options given in the confi file are considered an error * Added section in CONTRIBUTING relating to optimzation * Changed reset merge to implicit default values. * This avoids a potential overwriting of explicitly set default values in the existing config * Adapted some code to [Make cligen_* functions const ](https://github.com/clicon/cligen/pull/83) * Test: fixed test for * Fixed: [datamodel tree generated from basemodel tree is not proper when a list has more than one key and key is of enum type](https://github.com/clicon/clixon/issues/417) Olof hagsand 2023-02-12 16:01:08 +01:00
  • 7868cf0a0d Docker example: fixed scripts to run multiple instances Fixed parenthesis typo in purge code Olof hagsand 2023-02-10 11:50:46 +01:00
  • 1283270504 configure.ac: fix string comparison operator, == vs = Joachim Wiberg 2023-02-09 15:16:31 +01:00
  • 726394d97c apps/restconf: fix compiler warning 'addr' may be used uninitialized Joachim Wiberg 2023-02-08 10:08:11 +01:00
  • 9cd764f031 example/main: replace hard-coded path with variables from configure Joachim Wiberg 2023-02-07 18:32:32 +01:00
  • b48c6ad982 example/main: add missing $(DESTDIR) to standard include path Joachim Wiberg 2023-02-07 18:31:00 +01:00
  • e84d43c8e3 configure.ac: add proper check for libcurl + curl/curl.h Joachim Wiberg 2023-02-07 18:30:33 +01:00
  • a7693c8856 configure.ac: find include path to libxml2 using xml2-config tool Joachim Wiberg 2023-02-07 18:29:44 +01:00
  • 8f7ae33262 Yang schema mount: repaired yanglib statedata mountpoint Example: patch to fix "dual xpath" issue Olof hagsand 2023-02-07 17:12:52 +01:00
  • 8699af97fb
    Merge pull request #419 from jarrodb/doc_faq_hello Olof Hagsand 2023-02-08 14:53:10 +01:00
  • d65a6b14c2 [docs] update FAQ hello world example url Jarrod Baumann 2023-02-07 21:38:11 -06:00
  • fcb6e5cb03 yang path sanity checks and use of real module as root Olof Hagsand 2023-02-07 11:14:17 +01:00
  • 56f15aeefd SNMP mem tests: increase timeout for walk and table, use single snmp tools macro Olof hagsand 2023-02-06 12:46:55 +01:00
  • ba861bc619 Merge branch 'StasSt-siklu-DEV-5396-tg-snmp-snmp-walk-in-tg-not-as-snmp-in-eth-8010' Olof hagsand 2023-02-06 10:51:03 +01:00
  • 3436a19ee4 Scalars do not have a .0 suffix See https://github.com/clicon/clixon/issues/401 stass 2023-01-23 19:46:39 +02:00
  • a5220805b1 New plugin callback: ca_yang_patch - for modifying existing YANG modules C-API: Added spec parameter to xml2xpath() Olof Hagsand 2023-02-05 11:09:06 +01:00
  • 48a0fb9968 Sanity checks for incoming internal netconf Hex debug of messages Olof Hagsand 2023-02-03 12:48:45 +01:00
  • 6681eb99d3 Netconf monitoring statistics frm RFC 6022 Olof hagsand 2023-02-02 16:42:00 +01:00
  • 5da8ce211a Patch of previous commit: ca_reset plugin Olof hagsand 2023-02-02 16:07:35 +01:00
  • 3d64eddaf2 All calls to ca_reset plugin callback has db=tmp Olof hagsand 2023-02-02 14:46:53 +01:00
  • a203f6cde7 Updated extraxml reset callback example and added a regression test Olof hagsand 2023-02-02 12:17:52 +01:00
  • 6d82c70e26 Investigation of https://github.com/clicon/clixon/issues/414 New tests and help texts Olof hagsand 2023-02-02 07:32:24 +01:00
  • af1f5a037d Fixed: [SNMP: snmpwalk is slow and can timeout #404 ](https://github.com/clicon/clixon/issues/404) Optimized yang_extension_value Olof hagsand 2023-02-01 14:57:51 +01:00
  • 91034e5361 YANG schema mount, added configure option --enable-yang-schema-mount Olof hagsand 2023-01-30 11:49:11 +01:00
  • 034ab632f1 * C-API: Added vlev validate level parameter to candidate_commit * vlev : validate level Olof Hagsand 2023-01-29 20:02:56 +01:00
  • a8e13047fc * YANG schema mount RFC 8528, state data Olof Hagsand 2023-01-27 12:38:56 +01:00
  • 51ebbdf12f * C-API: Added clicon_handle parameter to all xml_bind_* calls Olof hagsand 2023-01-27 10:59:20 +01:00
  • da9bfcbb53 * Changed debug levels in clicon_debug() to be based on maskable flags * Added flag names: CLIXON_DBG_* * Added maskable flags that can be combined when debugging: * DEFAULT = 1: Basic debug message, espcially initialization * MSG = 2: Input and output packets, read datastore * DETAIL = 4: Details: message dump in hex, xpath parse trees, etc * EXTRA = 8: Extra detailed logs * Test: some errors in yang-lib where content-id was in wrong place Olof hagsand 2023-01-27 10:08:07 +01:00
  • 8342b74968
    Update README with matrix pointers Olof Hagsand 2023-01-23 19:38:45 +01:00
  • b3dcee9639 * YANG schema mount RFC 8528, Initial commit (work in progress) * Keep track of YANG unknowns with ys_cvec of EXTENSION * C-API: Init ys_cvec to NULL, added yang_cvec_add() and adjusted code to use it Olof Hagsand 2023-01-20 16:06:45 +01:00
  • 8451a20db7 Improved error message when mandatory key missing Olof hagsand 2023-01-19 09:09:34 +01:00
  • b58635554c
    Merge pull request #406 from StasSt-siklu/SNMP_accepts_only_u32_and_u64 Olof Hagsand 2023-01-19 09:10:48 +01:00
  • fe291fe73d
    Merge pull request #402 from doron2020/Yang_leaves_without_smiv2_oid_directive_are_not_shown+well_in_snmpwalk Olof Hagsand 2023-01-19 09:02:23 +01:00
  • 46137e1394 Fixed: [Netconf commit confirm session-id mismatch #407](https://github.com/clicon/clixon/issues/407) Olof hagsand 2023-01-18 15:55:49 +01:00
  • 923b998774 * Fixed: Initialized session-id to 1 instead of 0 following ietf-netconf.yang * Clearer debug levels clicon_debug(): 1: Logical debug message 2: Input and output packets 3: Message dump in hex, xpath parse trees Olof hagsand 2023-01-18 13:32:30 +01:00
  • c0526fad9c Fixed: [Yang leaves without smiv2:oid directive are not shown well in snmpwalk] (https://https://github.com/clicon/clixon/issues/398) doronb 2023-01-18 14:53:25 +02:00
  • 11560e7d4f Added translation from Yang type to SNMP type stass 2023-01-17 17:57:56 +02:00
  • 3428f4d5ff Fixed: [snmpwalk doesn't show properly SNMP boolean values which equal false](https://github.com/clicon/clixon/issues/400) Olof hagsand 2023-01-16 12:00:08 +01:00
  • 0324135043 Loosened strict RFC6022 session transport requirement due to race condition in clixon_snmp Olof hagsand 2023-01-16 11:03:21 +01:00
  • 000cb866c2 RFC 8525: - Change from RFC 7805: Remove revision if empty instead of sending empty revision RFC 6022 - Added cli identity to RFC6022 transport - Added source-host for natove restconf, bit no other sessions Olof hagsand 2023-01-15 22:29:08 +01:00
  • 21785a5d3e Renamed clixon-system container to clixon-test Olof hagsand 2023-01-15 13:27:38 +01:00
  • bc6cc2b31f C-API: All calls to clicon_log_xml() changed to new function `clicon_debug_xml()\ Debugging, moved many detailed debugs from level 1 to 2 Olof Hagsand 2023-01-10 16:34:47 +01:00
  • 3916fa919c Netconf monitoring RFC 6022 Sessions (https://github.com/clicon/clixon/issues/370) - statistics and transport/source-host parameters - extended internal NETCONF hello with transport and source-host attributes clixon-lib,yang - Moved all extended internal NETCONF attributes to the clicon-lib namespace C-API: - wrapped most attribute creation into new fn xml_add_attr() Olof hagsand 2023-01-14 11:25:39 +01:00
  • 7558d40faa YANG device: allow replace of config bool as special case Olof Hagsand 2023-01-04 11:09:44 +01:00
  • ddfcb9716c C-API: Add yang_parse_post() as externally accessible Olof Hagsand 2023-01-03 21:46:46 +01:00
  • bcca87b1a0 Fixed: [locally scoped YANG typedef in grouping does not work #394](https://github.com/clicon/clixon/issues/394) Olof hagsand 2023-01-03 21:44:59 +01:00
  • 99c6f61637 Enhanced for client-side functionality: - parse of yang from string, not only file - Decode of xml encoding, not only decoding Olof Hagsand 2023-01-02 21:25:49 +01:00
  • 0df023c70e Typo in xpath ilen Doc of backend code Olof hagsand 2023-01-02 21:21:37 +01:00
  • 6fedf65de7 C-API: Changed type of veclen parameter to size_t in xpath_vec_flag() Rewrite of sed -e to be portable to freebsd Olof hagsand 2022-12-29 15:45:16 +01:00
  • 5b9921933a Freebsd socketpair include problems and lack of TAB in vagrant Makefile Olof hagsand 2022-12-27 11:56:21 +01:00
  • ca23b63a4e Fixed: [leafref in new type no work in union type](https://github.com/clicon/clixon/issues/388) Olof hagsand 2022-12-27 11:29:22 +01:00
  • fb45085491 Include fix: need sys/time.h Olof hagsand 2022-12-23 15:06:43 +01:00
  • 62b40a9397 Netconf monitoring RFC 6022: datastores Olof hagsand 2022-12-23 14:47:10 +01:00
  • 1eefadfc74 Fixed memory leak in xmld database put code C: refactored choice validate code Olof hagsand 2022-12-22 17:32:40 +01:00
  • b67ef69b7f Fixed: XPath evaluation of two nodes reverted to strcmp even if both were numbers Olof hagsand 2022-12-22 16:40:53 +01:00
  • ffe918dd0e Fixed: [Defaults in choice does not work properly](https://github.com/clicon/clixon/issues/390) C: Added new file clixon_xml_default.[ch] and moved all default handling there Olof hagsand 2022-12-22 09:15:10 +01:00
  • 7e92f67f4f RFC6022 montoring fix: submodules should report main module's namespace Olof hagsand 2022-12-20 20:09:18 +01:00
  • 29eb22d47c
    Merge pull request #389 from clicon/issue#384 Olof Hagsand 2022-12-20 14:03:39 +01:00
  • 8db7892e38 sanity checkof xret in param test: updated to new openconfig network-instance version Olof hagsand 2022-12-20 13:13:00 +01:00
  • e8048fa434 Conditional compilation to support report-all default retrieval Jan-Olof Carlson 2022-12-20 10:14:09 +00:00
  • 979d5d9ca2 Update tests to explicit basic mode retrieval. RFC6243 Jan-Olof Carlson 2022-12-13 09:45:01 +00:00
  • f46d675370 Netconf: remove operations attribute from edit-config operations Added ISO/IEC 10646 encodings to XML parser: &#[0-9]+; and &#[0-9a-fA-F]+; Olof Hagsand 2022-12-20 09:35:07 +01:00
  • 8883d012c7 Set basic mode retrieval to explicit by default. RFC6243 Jan-Olof Carlson 2022-12-12 07:52:16 +00:00
  • 0d41d49fa9 Moved with-defaults processing from get(-config) to xmldb_get when reading db With-defaults: fixed cornercase in xpath used in list pagination C-API: Added with-defaults parameter (default 0) to xmldb_get0() Olof hagsand 2022-12-16 16:42:05 +01:00
  • e885d63f68 Minor doc and err handling fixes Olof Hagsand 2022-12-16 10:48:28 +01:00
  • 04df38ddfa github actions update Olof Hagsand 2022-12-12 18:19:09 +01:00
  • 7621b2f2f3 Fixed docker example sshd init Olof Hagsand 2022-12-12 09:49:05 +01:00
  • 61e2f014be * Changed docker builds * clixon-test built in docker/test * Renamed from clixon-system built in docker/main * clixon-example built in docker/example * Added netconf ssh subsystem * Renamed from clixon built in docker/base * Added ietf-yang-schema-mount@2019-01-14.yang Olof Hagsand 2022-12-11 13:31:19 +01:00
  • 571e26e0d6 Revert with-defaults option, Added clarifying NETCONF_DEFAULT_RETRIEVAL_REPORT_ALL compile-time option instead Olof hagsand 2022-12-08 20:27:30 +01:00
  • 6baa904039 Added CLIXON_CLIENT_SSH to client API to communicate remotely via SSH netconf sub-system configure: stringified SSH_BIN C-API: Added sock_flags parameter to clixon_proc_socket() Olof Hagsand 2022-12-08 13:26:39 +01:00
  • 100f15b699 Add SSH_BIN compile-time option Clarify documentation of internal netconf message struct Olof hagsand 2022-12-07 11:28:45 +01:00
  • 407860ccc7 Add new clixon-config.yang with CLICON_NETCONF_WITHDEFAULTS_REPORTALL Olof hagsand 2022-12-07 10:28:22 +01:00
  • 0577d2a2e9 Netconf monitoring: test of yang get-schema Olof hagsand 2022-12-04 18:47:38 +01:00
  • a38c54e4cc Netconf monitoring: - Announce module capability - Return origin Yang file in get-schema Olof hagsand 2022-12-03 18:49:39 +01:00
  • 981d6f3797 Cleanup: vagrant typo Olof hagsand 2022-12-03 18:48:08 +01:00
  • 7b8f472b25 Clixon 6.1.0.PRE Olof hagsand 2022-12-03 18:45:01 +01:00
  • 083bb72d2b Clixon 6.0.0 Olof hagsand 2022-11-29 17:04:26 +01:00
  • d91eebf889 (really) fix vagrant log file name Olof hagsand 2022-11-29 16:33:10 +01:00
  • 6244db3673 Set clixon 6.0.0 date and fix vagrant log file name Olof hagsand 2022-11-29 13:53:00 +01:00
  • 67e6e5e5e1 Preparations for Clixon 6.0 release Test: - netconf-monitoring using http-data disabled for restconf=fcgi - updated cicd.sh script with detail and change logfile Olof hagsand 2022-11-29 09:15:30 +01:00
  • c94e9dad67 Feature Request: Support RFC 6022 (NETCONF Monitoring) Olof hagsand 2022-11-22 13:56:20 +01:00
  • 8ebab16c4c Add proper error message if namespace not found in module-set header Olof hagsand 2022-11-28 13:50:41 +01:00
  • 7a388b960a Docker: Add a delay until snmpd unix socket created Olof hagsand 2022-11-28 10:33:11 +01:00
  • 2cdc78c576 Fixed static compile of util validate FIxed mem-leaks on xpath errors Test: valgrind of confirmed-commit Olof hagsand 2022-11-25 15:21:03 +01:00
  • e27336e054 C-API change yang_print: print top-level and add pretty-print parameter Test: Fix valgrind dlclose suppresion Olof hagsand 2022-11-24 17:34:32 +01:00