Commit graph

  • 760cdda49a Fixed: Search function checked only own not for config false statement, should have checked all ancestors. Olof hagsand 2020-02-28 14:05:56 +01:00
  • 451adfaf1f * Explicit search indexes * Added object-based clixon_xvec as a new programming construct for contiguous XML object vectors. Olof hagsand 2020-02-28 12:16:16 +01:00
  • 94c7be42b6 rpc-error error tests Olof hagsand 2020-02-27 21:16:12 +01:00
  • 86e251f30b * Fixed: Some restconf errors were wrongly formatted such as: {"ietf-restconf:errors":{"error":{"rpc-error": . There should be no "rpc-error" level. Olof hagsand 2020-02-26 21:33:31 +01:00
  • a71c256898 * New clixon-config@2020-02-22.yang revision * C-code changes: - Replaced stream uri:s w constants - Replaced large debug print code with single clicon_log_xml - Restconf put and post handling refactored using new parse API Olof hagsand 2020-02-24 15:25:06 +01:00
  • de3853a126 readnme buttons Olof hagsand 2020-02-23 17:17:28 +01:00
  • e16ef2daff Logo Olof hagsand 2020-02-23 17:12:16 +01:00
  • 83b22e7c2b 2020 copyright statement Olof hagsand 2020-02-22 15:54:15 +01:00
  • 3c6a521a80 Merge branch 'master' of https://github.com/clicon/clixon Olof hagsand 2020-02-22 11:15:55 +01:00
  • 3b26b22391 internal type/var/prefix name changes for yacc parsing Olof hagsand 2020-02-22 11:15:51 +01:00
  • 644cf96f44 utc time in stream test Olof Hagsand 2020-02-22 00:06:40 -10:00
  • e1bccfa2a7 Sorting error cornercase with invalid two choices, and also sort attributes first. Olof hagsand 2020-02-21 16:40:35 +01:00
  • b31297cb21 memory leaks Olof hagsand 2020-02-21 10:23:42 +01:00
  • 51a28f9bbf changelog toc. disable searchindex test Olof hagsand 2020-02-20 17:37:28 +01:00
  • 2eae2b6000 extension search index Olof hagsand 2020-02-20 15:08:25 +01:00
  • c43ee9e1ef latest commit, table-of-content, etc Olof hagsand 2020-02-20 14:18:15 +01:00
  • 5918efa7c1 Clixon 4.3.3 Olof hagsand 2020-02-20 14:06:10 +01:00
  • 9fa5e216c4 * New "general-purpose" datastore upgrade callback added which i called once on startup, intended for lo w-level general upgrades and as a complement to module-specific upgrade. * Called on startup after initial XML parsing, but before module-specific upgrades * Enabled by definign the .ca_datastore_upgrade * [General-purpose upgrade documentation](https://clixon-docs.readthedocs.io/en/latest/backend.html#ge neral-purpose) * JSON parse error messages change from on line x: syntax error,.. to json_parse: line x: syntax err or * Unknown-element error message is more descriptive, eg from namespace is: urn:example:clixon to: Fai led to find YANG spec of XML node: x with parent: xp in namespace urn:example:clixon. * C-API parse and validation API more capable * xml_spec_populate family of functions extended with three-value return values * -1: error, 0: parse OK, 1: parse and YANG binding OK. * xml_parse and json_parse API changes * Three value returns: -1: error, 0: parse OK, 1: parse and YANG binding OK. * Extended xml_parse_file2 and xml_parse_string2 extended API functions with all options available. * New concept called yang_bind that defines how XML symbols are bound to YANG after parsing * Existing API same except xml_parse_file endtag argument moved to xml_parse_file2 * C-API: Added instrumentation: xml_size and xml_stats_get. * Fixed: Enabling modstate (CLICON_XMLDB_MODSTATE), changing a revision on a yang, and restarting made the backend daemon exit at start (thanks Matt) * Also: ensure to load ietf-yang-library.yang if CLICON_XMLDB_MODSTATE is set Olof hagsand 2020-02-20 14:00:01 +01:00
  • 4338b68167 Due to increased memory usage in internal XML trees, the [use cbuf for xml value code](9575d10887) is reversed. Olof hagsand 2020-02-19 16:48:18 +01:00
  • d665992f7c Uniform time cmd in performance tests Olof hagsand 2020-02-16 10:23:03 +01:00
  • d78a6401c3 4.3.2 CHANGELOG updated VALIDATE_STATE_XML disabled Olof hagsand 2020-02-15 14:45:01 +01:00
  • 7fd1751302 Merge branch 'datastore-repair' into release-4.3 Olof hagsand 2020-02-15 14:31:38 +01:00
  • 5dd3243f66 Known Issues: * If you retrieve state _and_ config data using RESTCONF or NETCONF get, a severe performance penalty occurs if you have large lists (eg ACLs). Workaround: disable VALIDATE_STATE_XML in include/clixon_custom.h. Olof hagsand 2020-02-14 15:16:17 +01:00
  • fa257ebb88 datastore upgrade bugs Olof hagsand 2020-02-12 17:37:23 +01:00
  • cdd22bc33d example typo Olof hagsand 2020-02-12 17:01:25 +01:00
  • b6812793f9 General-purpose upgrade Olof hagsand 2020-02-12 16:40:52 +01:00
  • 3748eefb8e datastore repair test branch Olof hagsand 2020-02-11 20:17:15 +01:00
  • 76a4d31c4b Fixed: Enabling modstate (CLICON_XMLDB_MODSTATE), changing a revision on a yang, and restarting made the backend daemon exit at start (thanks Matt). * Also: ensure to load ietf-yang-library.yang if CLICON_XMLDB_MODSTATE is set Olof hagsand 2020-02-10 20:23:48 +01:00
  • 5831c053fa clixon_util_path did not sort XML properly Olof hagsand 2020-02-08 17:00:47 +01:00
  • a674af6f2c Cleaning up code for xml insignificant whitespace removal Experimenal explicit index search code Olof hagsand 2020-02-07 14:59:57 +01:00
  • 61e03690ca Fixed: Pretty-printed XML using prefixes not parsed correctly. * eg <a:x> <y/></a:x> could lead to errors, wheras (<x> <y/></x>) works fine. Olof hagsand 2020-02-06 18:02:14 +01:00
  • a2b1674708 XML namespace merge bug fixed. Example: two xmlns attributes could both survive a merge whereas one should replace the other. Olof hagsand 2020-02-05 19:49:23 +01:00
  • 3d5c2cc678 * Session-id CLI functionality delayed: "lazy evaluation" * From a cli perspective this is a revert to 4.1 behaviour, where the cli does not immediately exit on start if the backend is not running, but with the new session-id function Olof hagsand 2020-02-05 16:09:26 +01:00
  • c7d6f69a85 * Session-id CLI functionality delayed: "lazy evaluation" * From a cli perspective this is a revert to 4.1 behaviour, where the cli does not immediately exit on start if the backend is not running, but with the new session-id function Olof hagsand 2020-02-05 15:37:25 +01:00
  • 39e7f387f8 XML namespace merge bug fixed. Example: two xmlns attributes could both survive a merge whereas one should replace the other. Olof hagsand 2020-02-05 12:08:20 +01:00
  • e68753655b Obsoleted and removed XMLDB format "tree". This function did not work. Only xml and json allowed. Olof hagsand 2020-02-02 19:15:39 +01:00
  • 51e17671a8 cicd tests Olof hagsand 2020-02-02 18:46:18 +01:00
  • 7350ec1624 warnings in travis Olof hagsand 2020-02-02 17:07:46 +01:00
  • 7bcd6aed08 added instance_id parse files Olof hagsand 2020-02-02 16:05:10 +01:00
  • 5fc9fa0b8d typos Olof hagsand 2020-02-02 15:59:26 +01:00
  • 19e21be0bc Very large commit for upcoming 4.4 release Olof hagsand 2020-02-02 15:52:30 +01:00
  • ba2d18417a 4.3.1 release Olof hagsand 2020-02-02 08:50:44 +01:00
  • a58f1872ad Restructure of get state/config code to enable all combinations of filtering config/state for both <get> and <get-config> Olof hagsand 2020-02-01 20:16:04 +01:00
  • b7f1d72c28 read whole running config when reading state data Olof hagsand 2020-01-31 16:13:50 +01:00
  • 20d28b4796 Compile option VALIDATE_STATE_XML introduced in include/custom.h to control whether code for state data validation is compiled or not. Olof hagsand 2020-01-29 21:56:50 +01:00
  • f5209b1fab * Fixed: Validation of user state data led to wrong validation, if state relied on config data, eg leafref/must/when etc. * Fixed: No revision in yang module led to errors in validation of state data Olof hagsand 2020-01-27 22:11:35 +01:00
  • 64f73771d9 Fixed: Leafref validation did not cover case of when the "path" statement is declared within a typedef, only if it was declared in the data part directly under leaf. Olof hagsand 2020-01-26 22:16:12 +01:00
  • 6384fb89f1 Fixed: Yang xpath statements containing prefixes stopped working due to namespace context updates Olof hagsand 2020-01-23 22:53:19 +01:00
  • e8ae628d06 4.3.0 commit Olof hagsand 2020-01-01 12:16:32 +01:00
  • c1903916f9 * Created two sub-files (clixon_validate.c and clixon_api_path.c) from large lib/src/clixon_xml_map.c source file. Olof hagsand 2020-01-01 11:12:54 +01:00
  • 50420cb262 Merge branch 'master' of https://github.com/clicon/clixon Olof hagsand 2019-12-31 13:30:52 +01:00
  • b340c36f79 Experimental optimized XPath, multiple keys Olof hagsand 2019-12-31 13:29:25 +01:00
  • a87e9cb246 clang warnings Olof Hagsand 2019-12-23 14:03:42 +00:00
  • 7fb452f96e nacm external mem leak Olof hagsand 2019-12-22 18:00:46 +01:00
  • 67da95c468 Test error message. Olof hagsand 2019-12-21 21:15:42 +01:00
  • b78054e7cf State callback error message changed to include namespace and use proper <bad-element> Olof hagsand 2019-12-21 20:50:55 +01:00
  • 7ad16bd84b * C-API: Added xpath_first_localonly() as an xpath function that skips prefix and namespace checks. * Added experimental code for optizing XPath search using binary search. * Enable with XPATH_LIST_OPTIMIZE * Changed clicon_rpc_generate_error(msg, xerr) to clicon_rpc_generate_error(xerr, msg, arg) Olof hagsand 2019-12-20 18:21:46 +01:00
  • ab46ce9820 XML parser failed on ]]]> termination of CDATA. Olof hagsand 2019-12-19 21:43:03 +01:00
  • 241ae26e55 Merge branch 'master' of https://github.com/clicon/clixon Olof hagsand 2019-12-18 23:27:52 +01:00
  • 02c461b84f Fixed CLI error messages on wrong cli_set/merge xml-key Olof hagsand 2019-12-18 23:27:19 +01:00
  • 05ce6f38a3 test kill valgrind process after run Olof hagsand 2019-12-09 21:12:39 +01:00
  • d68a829862 * Added namespace-context parameter nsc to xpath_first and xpath_vec, (xpath_vec_nsc and xpath_first_nsc` are removed). Olof hagsand 2019-12-07 20:46:13 +01:00
  • ba2f40728b [filter in netconf - one specific entry #100](https://github.com/clicon/clixon/issues/100) Olof hagsand 2019-12-07 18:10:19 +01:00
  • 46552066d1 Added nsc parameter to xmldb_get() Olof hagsand 2019-12-02 20:55:28 +01:00
  • 08b128f4d7 moved config yang spec from main functions to options_main function Olof hagsand 2019-12-01 17:42:34 +01:00
  • c4954f5c43 memerror in uid-get. reinsert save config yang spec (removed for wrong reasons previously causing memleaks) Olof hagsand 2019-12-01 16:48:45 +01:00
  • 69b27f3280 Added clicon_handle as parameter to all functions to get better error message Olof hagsand 2019-11-30 22:19:23 +01:00
  • 6fc8a69dff Fixed: [xpath_tree2cbuf() changes integers into floating point representations #99](https://github.com/clicon/clixon/issues/99) Olof hagsand 2019-11-27 22:02:39 +01:00
  • 9090fe6484 Merge branch 'master' of https://github.com/clicon/clixon Olof hagsand 2019-11-26 21:52:08 +01:00
  • 0d22a8b6d0 Yang files reorganized into three classes: clixon, mandatory, optional Olof hagsand 2019-11-26 21:51:28 +01:00
  • 1927060384
    Merge pull request #97 from atoy40/patch-1 Olof Hagsand 2019-11-20 21:29:26 +01:00
  • ba472bf15f
    Update xml root element Anthony Hinsinger 2019-11-19 14:40:48 +01:00
  • 9575d10887 use cbuf for xml value code Olof hagsand 2019-11-18 21:16:12 +01:00
  • f2cad01fc6 Updated openconfig and yangmodels repos lead to some changed in testscript and a minor parsing lapsus Olof hagsand 2019-11-16 17:34:18 +01:00
  • d0e97ee338 Removed obsolete config yang handler Added base netconf as default namespace in canonical nsctx Olof hagsand 2019-11-16 16:49:40 +01:00
  • 52629d7b35 Added "canonical" global namespace context: nsctx_global Olof hagsand 2019-11-15 17:04:13 +01:00
  • 06c2793e79 added perf xml test Olof hagsand 2019-11-14 22:26:07 +01:00
  • 43eb9fe9d2 state callback xml error Olof hagsand 2019-11-14 22:16:45 +01:00
  • 039e08f86a [xml_parse_string() is slow for a long XML string #96](https://github.com/clicon/clixon/issues/96) Olof hagsand 2019-11-14 20:57:20 +01:00
  • 6b9a9d46f9 changed netconf_err2cb Olof hagsand 2019-11-12 20:47:09 +01:00
  • 70caeaa783 mandatory test Olof hagsand 2019-11-12 20:17:43 +01:00
  • 58f3d7b59a compile error Olof hagsand 2019-11-11 21:52:21 +01:00
  • 1defd2afc7 memleak Olof hagsand 2019-11-11 21:47:03 +01:00
  • 835f9030d2 * State callbacks provided by user are validated. If they are invalid an internal error is returned. * Fixed multi-namespace for augmented state which was not covered in 4.2.0. * The multi-namespace augment state may rearrange the XML namespace attributes. * Mandatory variables can no longer be deleted. Olof hagsand 2019-11-11 21:03:11 +01:00
  • 728fe9c6ac * Bumped version to 4.3.0.PRE * Added wildcard * as a mode to CLICON_MODE in clispec files * [Add missing includes](https://github.com/clicon/clixon/pulls) Olof hagsand 2019-11-03 13:05:50 +01:00
  • b26eb5851f 4.2 Olof hagsand 2019-10-27 21:50:10 +01:00
  • 6bf8e49f3f CHANGELOG for 4.2.0 Olof hagsand 2019-10-27 19:47:59 +01:00
  • 82356b7450 test scripts: separated wait of backend and restconf starts Olof Hagsand 2019-10-27 15:54:16 +00:00
  • 948e203a61 moved initial hello request from client to backend to immediate before first actual query Olof hagsand 2019-10-27 10:24:13 +01:00
  • 84c94b2c0e recover user as config option instead of constant Olof hagsand 2019-10-24 20:43:03 +02:00
  • 44138c0071 internal netconf hello mechanism to obtain session-id Olof hagsand 2019-10-24 11:46:06 +02:00
  • 59825214f3 typos Olof Hagsand 2019-10-21 20:11:00 +01:00
  • 433392a724 merge Olof hagsand 2019-10-20 21:20:33 +02:00
  • 87f76c42f8 test script minor modifications Olof hagsand 2019-10-20 21:11:13 +02:00
  • 5e8a81389d Merge branch 'master' of https://github.com/clicon/clixon Olof Hagsand 2019-10-20 09:04:16 -10:00
  • d7bb96b9cf FreeBSD modifications: Configure, makefiles and test scripts modification for Freebsd Olof Hagsand 2019-10-20 09:03:31 -10:00
  • 9a6478e267 Merge branch 'master' of https://github.com/clicon/clixon Olof Hagsand 2019-10-19 20:58:07 +00:00
  • 28a62ecb11 memleak Olof Hagsand 2019-10-19 20:58:03 +00:00
  • 1fa45067a7 typo Olof hagsand 2019-10-19 22:56:25 +02:00
  • b624e911b8 * Internal backend socket protocol changed: uint32_t session-id added, see clixon_proto.h * * Changed session-id handing. Instead of using pid of peer process, a proper session id generated by the server is used, following RFC6241. Olof hagsand 2019-10-19 19:52:09 +02:00