Commit graph

  • a5ef243225 Merge branch 'master' into native-http Olof hagsand 2020-05-29 13:49:37 +02:00
  • b6edc4aff0 Added new function (this time for real) Olof hagsand 2020-05-29 13:43:43 +02:00
  • fdf335fb2f new function ; Added valgrind mem check in leak tests; pattern CDATA tests Olof hagsand 2020-05-29 12:39:07 +02:00
  • 8c1372d26a libhttp compile Olof hagsand 2020-05-28 17:19:15 +02:00
  • ebaedfd482 cligen parsetree hidden Olof hagsand 2020-05-21 16:48:32 +02:00
  • 6629f3d780 * Added new function xml_child_index_each() to iterate over the children of an XML node according to the order defined by an explicit index variable. Olof hagsand 2020-05-20 15:21:59 +02:00
  • 1a1aa58249 CLIgen pt_expand API change and mem problems Olof hagsand 2020-05-20 12:00:52 +02:00
  • 7d0b245174 Adapt to CLIgen 4.6 API changes Olof hagsand 2020-05-19 22:26:29 +02:00
  • 48dfc1201f Bumped version to 4.6.0.PRE Olof hagsand 2020-05-14 14:14:14 +02:00
  • 70ead3364a changelog Olof hagsand 2020-05-12 20:48:18 +02:00
  • dee7a8e268 Clixon release 4.5.0 Olof hagsand 2020-05-12 20:45:10 +02:00
  • 132122c937 enabled and removed USE_CLIGEN44 Olof hagsand 2020-05-12 14:02:25 +02:00
  • ac1f36009f Makefile copyright Olof hagsand 2020-05-12 13:59:45 +02:00
  • 1d17c762d2 Merge branch 'master' of https://github.com/clicon/clixon Olof Hagsand 2020-05-11 14:37:26 +00:00
  • 93a8ddbd7b mem test issues with set variables between tests Olof Hagsand 2020-05-11 14:37:13 +00:00
  • 29235d5547 Removed and enabled code for compile options: RESTART_PLUGIN_RPC, XML_NEW_DIFFERENTIATE, OPTIMIZE_45_BIND and OPTIMIZE_45_SORT Olof hagsand 2020-05-11 15:29:58 +02:00
  • a3b6ea9e10 New clixon-config@2020-04-23.yang revision * Removed xml-stats non-config data (replaced by rpc stats in clixon-lib.yang) * Added option CLICON_YANG_UNKNOWN_ANYDATA to treat unknown XML (wrt YANG) as anydata. Olof hagsand 2020-05-11 14:38:38 +02:00
  • bf04131e54 Added decriptive error message when plugins produce invalid state XML. Olof hagsand 2020-05-10 17:10:07 +02:00
  • 266e5581e4 Changed output of clixon_cli -G option to show generated CLI spec original text instead of resulting parse-tree, which gives better detail from a debugging perspective. Olof hagsand 2020-05-09 16:20:05 +02:00
  • f9e1fe5de7 removed state path kludge Olof hagsand 2020-05-05 17:13:38 +02:00
  • bc0eb921d0 Added functionality to restart an individual plugin.: New clixon-lib:restart-plugin RPC Olof hagsand 2020-05-04 14:54:57 +02:00
  • 3ab1f50a19 undef state path bypass Olof hagsand 2020-05-04 13:35:04 +02:00
  • 592c513b83 Fix up state bypass get code Olof hagsand 2020-05-04 13:10:43 +02:00
  • dafc6d10e0 Added option to treat unknown XML (wrt YANG) as anydata. Olof hagsand 2020-05-03 22:03:33 +02:00
  • 12d1b67250 * Stricter validation detecting duplicate container or leaf in XML. * Eg <x><a/><a/></x> is invalid if a is anything else than leaf or leaf-list Olof hagsand 2020-05-02 17:30:02 +02:00
  • 861f78f588 fix state path kludge Olof hagsand 2020-05-02 17:08:54 +02:00
  • b4c591a985 add state-path kludge to cligen frontend bind statement as well Olof hagsand 2020-05-02 10:37:02 +02:00
  • 08c4a424ca remove enabled Olof hagsand 2020-05-01 21:51:53 +02:00
  • 7bc772f6a8 undef USE_STATE_PATH_KLUDGE Olof hagsand 2020-05-01 21:43:45 +02:00
  • 703d1a2b08 Added CLICON_STATE_PATH_KLUDGE Olof hagsand 2020-05-01 21:39:18 +02:00
  • 442e96bdf0 Merge branch 'master' of https://github.com/clicon/clixon Olof hagsand 2020-05-01 17:09:56 +02:00
  • 82529a2f16 * Experimental optimzations of yang-bind and sort for large lists * Enabled by compile-time options: OPTIMIZE_45_BIND and OPTIMIZE_45_SORT Olof hagsand 2020-05-01 17:08:32 +02:00
  • b8a408808c default cligen44 off Olof hagsand 2020-05-01 00:44:25 +02:00
  • 772759e42f * Compile-time option: USE_CLIGEN44 for running clixon-45 with cligen-44. * Temporary fix since cligen-45 have some non-backward compatible behaviour. Olof hagsand 2020-05-01 00:42:54 +02:00
  • b8ec6a4957 * Optimized prefix checks at xml parse time: using many prefixes slowed down parsing considerably * Cleared startup-db cache after restart Olof hagsand 2020-04-29 23:11:48 +02:00
  • 5b57e68e2b remaining exit in test Olof hagsand 2020-04-28 22:40:17 +02:00
  • 94cf4a88b3 * Optimizations * Reduced memory for attribute and body objects, see XML_NEW_DIFFERENTIATE compile-time option. * Optimized cbuf handling in parsing and xml2cbuf functions. * Optimized xml scanner to read strings rather than single chars * Optimized xml_merge for the case of disjunct trees. Olof hagsand 2020-04-28 22:31:58 +02:00
  • 9a8c6cf3e6 * New clixon-lib@2020-04-23.yang revision * Added: stats RPC for clixon XML and memory statistics. * Added: restart-plugin RPC for restarting individual plugins without restarting backend. * xml-stats moved from clixon-config.yang as state data to an rpc datastats in clixon-lib.yang * Experimental: restart_plugin * Two new plugin callbacks added * ca_daemon: Called just after a server has "daemonized", ie put in background. * ca_trans_commit_done: Called when all plugin commits have been done. * Note: If you have used "end" callback and usign transaction data, you should probably use this instead. Olof hagsand 2020-04-28 22:10:06 +02:00
  • 1c99bd6a9b * xml-stats moved from clixon-config.yang as state data to an rpc datastatsin clixon-lib.yang * Two new plugin callbacks added * ca_daemon: Called just after a server has "daemonized", ie put in background. * ca_trans_commit_done: Called when all plugin commits have been done. Olof hagsand 2020-04-23 22:58:57 +02:00
  • 65806f1ef2 Copyright change: LLC -> LLC(Netgate) Olof hagsand 2020-04-23 16:55:56 +02:00
  • 476f1d84d3 Fix a bind rpc assert on unknown namespace Olof hagsand 2020-04-23 11:06:25 +02:00
  • dc36282874 * Fixed instance-id multiple results * Fixed last NACM write paths Olof hagsand 2020-04-22 14:00:40 +02:00
  • 04017c97ba Length of xml vector in many structs changed from to since it is a vector size, not byte size. This includes transaction_data_t Olof hagsand 2020-04-21 10:16:55 +02:00
  • 5be5b02a84 NACM write path delete works as well Olof hagsand 2020-04-20 22:29:09 +02:00
  • 1dff0e681b Adapted to CLIgen 4.5 API changes, eg: and Olof hagsand 2020-04-20 13:14:40 +02:00
  • 8897df202e NACM RFC8341 datanode write paths Olof hagsand 2020-04-18 17:45:47 +02:00
  • 0d4263e324 * xml_merge() changed to use 3-value return: 1:OK, 0:Yang failed, -1: Error * clixon_netconf_error(category, xerr, msg, arg) removed first argument -> clixon_netconf_error(xerr, msg, arg) * Renamed utility function clixon_util_insert() to clixon_util_xml_mod() and added merge functionality. * Fixed: Insertion of subtree leaf nodes were not made in the crrect place, always ended up last regardless of yang spec (if ordered-by system). Olof hagsand 2020-04-17 15:47:37 +02:00
  • f401c07c4b optimized NACM read paths Olof hagsand 2020-04-15 22:02:33 +02:00
  • 1fb3dcc686 NACM datnode read path implementation revised Olof hagsand 2020-04-15 16:55:22 +02:00
  • ba59e22fd7 NACM RFC341 datanode paths, read operation Olof hagsand 2020-04-14 11:38:29 +02:00
  • 58c36decef new file: clixon_xml_bind.[ch] Olof hagsand 2020-04-07 20:57:50 +02:00
  • ac5637a46a Stricter incoming RPC sanity checking, error messages may have changed Olof hagsand 2020-04-07 20:54:24 +02:00
  • f9998c441c Merge branch 'clixon-4.5' C-API changes for CLIgen code: * clicon_parse(): Changed signature due to new cligen error and result handling: * Removed: cli_nomatch() Olof hagsand 2020-04-07 18:21:10 +02:00
  • 78089fbfb1 version string Olof hagsand 2020-04-05 14:20:27 +02:00
  • 9dae9923a8 4.5.0.PRE Olof hagsand 2020-04-05 14:15:22 +02:00
  • af50d74d97 4.4.0 release Olof hagsand 2020-04-05 14:07:37 +02:00
  • 06ec75e14b test fixes Olof hagsand 2020-04-05 13:51:39 +02:00
  • e6178858f0 In the bbuild system, you dont need to do make install-include for installing include files for compiling. This is now included in the actions done by make install. Olof hagsand 2020-04-05 12:25:33 +02:00
  • 7998120ef2
    Merge pull request #105 from dcornejo/master Olof Hagsand 2020-04-05 12:08:44 +02:00
  • 8e01d7c308 Install include files within include target Dave Cornejo 2020-04-03 21:30:34 -10:00
  • d2531421f2 remove move end transaction Olof hagsand 2020-04-03 08:47:48 +02:00
  • 662d6b0a3f Clixon 4.4 three compile-time options: MOVE_TRANS_END for changing transaction-end callbacks; STATE_ORDERED_BY_SYSTEM to make state data system ordered; XML_MERGE_TWO_ROUNDS to improve xml_merge performance. Olof hagsand 2020-04-02 14:28:58 +02:00
  • 6e2cb1b97d Adjust to cligen 4.5 update Olof hagsand 2020-04-01 09:56:50 +02:00
  • 5535239363 readd namespace cache Olof hagsand 2020-03-30 22:07:46 +02:00
  • 0fd71ec372 loosen yang check of keys in lists to not do it in rpc declarations Olof hagsand 2020-03-27 15:44:05 +01:00
  • 8131bd1834 2020 copyright Olof hagsand 2020-03-27 15:42:03 +01:00
  • aa191152cb minor things for clixon.4.4 Olof hagsand 2020-03-27 11:20:35 +01:00
  • 916c1aabd7 NULL->/ for state callbacks. Clarified socket close error Olof hagsand 2020-03-26 20:42:42 +01:00
  • 1079fcad47 Added / to api-path to xpath conversion Olof hagsand 2020-03-25 22:11:07 +01:00
  • 4e578b77ee exit typo in test Olof hagsand 2020-03-24 20:57:41 +01:00
  • a7e0a30938 Fixes for 4.4 release Olof hagsand 2020-03-24 16:41:30 +01:00
  • 09a2e09848 * New XML parsing API: * clixon_xml_parse_string() * clixon_xml_parse_file() * New JSON parsing API, with same signature as XML parsing: * clixon_json_parse_string() * clixon_xml_parse_file() * XML YANG binding API have been rearranged as follows: * xml_bind_yang_rpc() * xml_bind_yang_rpc_reply() * xml_bind_yang() * xml_bind_yang0() Olof hagsand 2020-03-19 21:32:27 +01:00
  • c4b0491754 yang omission mistake Olof hagsand 2020-03-19 20:11:34 +01:00
  • b726c5008e renamed xml_spec_populate*() to xml_bind_yang*() Olof hagsand 2020-03-17 15:55:47 +01:00
  • c5e2039cac Removed prefix parameter to xml_new Added xml_new_body() by mgsmith Olof hagsand 2020-03-17 11:18:22 +01:00
  • d36ab2e093 merge Olof hagsand 2020-03-16 15:27:59 +01:00
  • 1882d431f7 Merge branch 'merge-4.3' Olof hagsand 2020-03-16 15:27:23 +01:00
  • 2034ce87be Merge tag '4.3.3' into merge-4.3 Olof hagsand 2020-03-16 14:13:47 +01:00
  • 13e9e31dbf CHANGELOG Olof hagsand 2020-03-13 15:30:02 +01:00
  • e537b1f4c0 CHANGELOG edits for 4.4 Olof hagsand 2020-03-13 15:18:54 +01:00
  • 28fad0303a * Fixed: Datastore read on startup got fixed default values. * Fixed: Default values only worked on leafs, not typedefs. Olof hagsand 2020-03-13 14:49:37 +01:00
  • 7425a3b520 * C-API change: xml_new() changed from xml_new(name, xp, ys) to xml_new(name, prefix, xp, type) * If you have used, ys, add xml_spec_set(x, ys) after the statement * If you have xml_type_set(x, TYPE) or xml_prefix_set(x, PREFIX) immediately after the statement, you can remove those and set them directly as: xml_new(name, PREFIX, xp, TYPE) Olof hagsand 2020-03-12 22:29:28 +01:00
  • 71efe18f94 NACM datanode write rules have been changed from looking at datastore being chekend (eg running/candidate/startup) to *only* look at running. Fixed: NACM datanode write problem: read/write/exec default rules did not work. Olof hagsand 2020-03-12 14:58:30 +01:00
  • 78aac85b18 Fixed [Makefile syntax error *** mixed implicit and normal rules #104](https://github.com/clicon/clixon/issues/104). Make operator seems not to work on GNU make version < 4. Olof hagsand 2020-03-11 13:16:04 +01:00
  • d7972ff311 Moved hello example to [clixon-examples](https://github.com/clicon/clixon-examples) Olof hagsand 2020-03-11 11:41:24 +01:00
  • adbb683329 C-API: * All uses of api_path2xpath_cvv() should be replaced by api_path2xpath() * api_path2xpath() added an xerr argument. Olof hagsand 2020-03-10 22:37:16 +01:00
  • 0e94937ccf Sanity check of mandatory key statement for Yang LISTs. * If fails, exit with error message, eg: Yang error: Sanity check failed: LIST vsDataContainer lacks key statement which MUST be present (See RFC 7950 Sec 7.8.2) * Can be disabled by setting CLICON_CLICON_YANG_LIST_CHECK to false Olof hagsand 2020-03-09 15:48:33 +01:00
  • 237be5b819 moved aux configure scripts to aux directory Olof hagsand 2020-03-09 15:38:21 +01:00
  • 3febc00a71 Empty values in JSON has changed to comply to RFC 7951 * empty values of yang type empty are encoded as: {"x":[null]} * empty string values are encoded as: {"x":""} (changed from null in 4.0 and [null] in 4.3) * empty containers are encoded as: {"x":{}} * empty elements in unknown/anydata/anyxml encoded as: {"x":{}} (changed from {"x":null}) Olof hagsand 2020-03-07 17:15:59 +01:00
  • fdfeec96ec Recursive (erroneous) Yang specs with recursive grouping/use statement is now fixed: instead of stack overflow, you get an error message and an exit Olof hagsand 2020-03-05 20:13:24 +01:00
  • 3855508622 stricter xml populate made some cornercase errors appear Olof hagsand 2020-03-05 11:56:13 +01:00
  • bab3b5ad56 * Added yang population of data in clicon_rpc_get[_config] Olof hagsand 2020-03-04 17:31:52 +01:00
  • 2de8497972 leafref state test error Olof hagsand 2020-03-04 11:53:28 +01:00
  • cdcffa768f * Replaced compile option VALIDATE_STATE_XML with runtime option CLICON_VALIDATE_STATE_XML. * XML childvec Compile error Olof hagsand 2020-03-04 11:46:30 +01:00
  • 0f54899ae4 * Added option: CLICON_CLI_BUF_START and CLICON_CLI_BUF_THRESHOLD so you can change the start and threshold of quadratic and linear growth of CLIgen buffers (cbuf:s) * Memory footprint * Do not autopopulate namespace cache, instead use on-demand, see xml2ns(). * Set CBUF start level to 256 (CLICON_CLI_BUF_START option) * Reduced xml child vector default size from 4 to 1 with quadratic growoth to 64K then linear Olof hagsand 2020-03-04 11:27:43 +01:00
  • 250ead517c CHanged back xvec API to use cxobj ** instead if clixon_xvec since it may be easier for the an end-user. Olof hagsand 2020-03-02 10:59:46 +01:00
  • 75b20936d3 Moved code from clixon_xml.c to namespace and io functions to reduce size of core xml file Olof hagsand 2020-03-02 09:43:57 +01:00
  • 2d521d52c8 * Added clixon-stats in clixon-config.yang for clixon XML and memory statistics. Olof hagsand 2020-03-01 10:59:24 +01:00
  • f1ceec689a Refactoring search code using clixon_xvec data structures Olof hagsand 2020-02-28 18:08:10 +01:00
  • bac2089a04 unsorted state data test change Olof hagsand 2020-02-28 14:52:51 +01:00