Commit graph

  • 4de15343c9 optimize Olof hagsand 2019-04-02 11:46:28 +02:00
  • ed62c33a79 xpath parser scan strings instead of characters Olof hagsand 2019-04-02 11:01:01 +02:00
  • a68174897d leaf-list default; yangmodels/junos models Olof hagsand 2019-04-01 16:04:02 +02:00
  • c1b489c8db Merge branch 'develop' Olof hagsand 2019-03-31 20:54:44 +02:00
  • 1d2a001597 memleak Olof Hagsand 2019-03-31 20:38:33 +02:00
  • 34196456a2 mv example to example/main Olof Hagsand 2019-03-31 18:34:30 +02:00
  • 65451f1045 forgot new data and datastore files Olof hagsand 2019-03-31 18:20:48 +02:00
  • 98a5ebc76e * Structural change: removed datastore plugin and directory, and merged into regulat clixon lib code. * Moved out code from clixon_options.[ch] into a new file: clixon_data.[ch] Olof hagsand 2019-03-31 18:17:40 +02:00
  • 5123dbb3ac memtest fixes Olof Hagsand 2019-03-29 16:48:51 +01:00
  • c07577b42b startup diff vector should be children of config root, not root itself Olof Hagsand 2019-03-29 15:31:00 +01:00
  • 38991084a5 mem.sh with more than one target Olof Hagsand 2019-03-28 21:57:28 +01:00
  • a269e26c0d Directory change: Moved example to example/main to make room for other examples Olof hagsand 2019-03-28 17:58:47 +01:00
  • 60cb87f998 Removed argc/argv parameters from ca_start plugin API function. You may need to change signatures of your startup in your plugins Olof hagsand 2019-03-28 17:11:55 +01:00
  • cdbce7645e Changed hash API for better error handling Olof hagsand 2019-03-28 13:16:44 +01:00
  • 0f359676b1 Merge branch 'master' of https://github.com/clicon/clixon Olof hagsand 2019-03-28 11:24:35 +01:00
  • b10c3c5727 more upgrade-interfaces test cases Olof hagsand 2019-03-28 10:56:53 +01:00
  • 7ee4a151cf guard CLICON_CLI_HIST_SIZE with CLIgen default Olof Hagsand 2019-03-28 09:19:43 +01:00
  • 772d93963c Merge branch 'master' of https://github.com/clicon/clixon Olof hagsand 2019-03-27 18:15:38 +01:00
  • 3dfc1f56a0 upgrade docs Olof hagsand 2019-03-27 18:15:16 +01:00
  • 72e5ca884c tab err Olof Hagsand 2019-03-27 18:06:01 +01:00
  • be59bd48d8 upgrade example and test Olof hagsand 2019-03-27 18:04:01 +01:00
  • 4902f7cf1d Merge branch 'develop' Olof hagsand 2019-03-27 16:32:01 +01:00
  • 8a18b04a34 xml_wrap, clicon-argv() Olof hagsand 2019-03-27 16:07:38 +01:00
  • 6ff36a2894 * Added xml_wrap function that adds an XML node above a node as a wrapper * also renamed xml_insert to xml_wrap_all. * Added clicon_argv_get() function to get the user command-line options, ie the args in -- <args>. This is an alternative to using them passed to plugin_start(). Olof hagsand 2019-03-27 16:04:14 +01:00
  • 5fd092b785 reverted internal-rpc nacm rule Olof Hagsand 2019-03-26 16:26:07 +01:00
  • 8624be0a67 xml changelog next iteration Olof hagsand 2019-03-26 12:04:51 +01:00
  • 3f3f70dfd6 xml changelog Olof Hagsand 2019-03-25 22:55:24 +01:00
  • 1991c3870c uninitialized vars Olof Hagsand 2019-03-25 22:16:51 +01:00
  • 7b9edd7112 ret error Olof hagsand 2019-03-25 14:31:21 +01:00
  • b9df1ed5b3 mem-leak Olof hagsand 2019-03-25 11:26:57 +01:00
  • a0abf8436e XML chanelog revision Olof hagsand 2019-03-25 10:42:27 +01:00
  • 0c0efd4037 Added synatctic check for yang status: current, deprectated or obsolete Olof Hagsand 2019-03-23 13:23:50 +01:00
  • 69dcc721a9 * Added CLICON_NACM_MODE "internal-rpc" which is for RPC functionality only Olof Hagsand 2019-03-22 17:09:05 +01:00
  • 0898870e68 Re-inserted cli_output_reset for what was erroneuos thought to be an obsole\ te function Olof Hagsand 2019-03-22 16:13:51 +01:00
  • d3ac21a975 startup doc upgrade Olof Hagsand 2019-03-22 10:16:38 +01:00
  • f4a19f6371 doc startup with new upgrade mechanism Olof Hagsand 2019-03-22 10:05:27 +01:00
  • 9d64ddd305 handle null Olof Hagsand 2019-03-21 20:51:57 +01:00
  • 10d45bcee3 Memory leaks and errors Olof Hagsand 2019-03-21 20:36:47 +01:00
  • 3f68cca06c * New yang changelog experimental feature for automatic upgrade * Added modules-state diff parameter to xmldb_get datastore function for startup scenarios. * Allowed Yang extended Xpath functions (syntax only): * re-match, deref, derived-from, derived-from-or-self, enum-value, bit-is-set * XSD regular expression handling of dash(-) *: Translate XDS [xxx\-yyy] to POSIX [xxxyyy-]. * YANG Anydata treated same as Anyxml Olof hagsand 2019-03-21 17:42:53 +01:00
  • 434f0b930e Made Makefile concurrent so that it can be compiled with -jN Olof hagsand 2019-03-21 10:40:00 +01:00
  • 0bf838eb8c added module-revision Yang Olof hagsand 2019-03-19 11:55:44 +01:00
  • e8983a4be5 Upgrade repair test and docs Olof hagsand 2019-03-19 10:04:16 +01:00
  • 7b30b7a9e0 ordering problems Olof hagsand 2019-03-18 21:59:41 +01:00
  • 789732c613 xml sort adjust to different yang models global yang ordering for top-level xml symbols Olof hagsand 2019-03-18 17:59:17 +01:00
  • 606245ef02 * Added flags to example backend to control its behaviour: * Start with -- -r to run the reset plugin * Start with -- -s to run the state callback * Rewrote yang dir load algorithm to follow the algorithm in [FAQ](FAQ(doc/FAQ.md#how-are-yang-files-found) with more precise timestamp checks, etc. Olof hagsand 2019-03-18 16:31:34 +01:00
  • 8f656da15b Bugfix: [Nodes from more than one of the choice's branches exist at the same time](https://github.com/clicon/clixon/issues/81) Olof hagsand 2019-03-14 16:33:10 +01:00
  • b3cd48468d Cleaned up after regression tests. New upgrade running docs. Olof hagsand 2019-03-13 13:26:04 +01:00
  • 29535d5997 Bugfix: Default NACM policies applied even if NACM is disabled Olof hagsand 2019-03-13 11:34:18 +01:00
  • 932ca2e8ce Changed (startup) running mode so that startup_db is not overwritten. This changes the upgrade semantics for running mode which will have to be accounted for later. Olof hagsand 2019-03-12 09:56:09 +01:00
  • b54e6c1cc0 example regression fail FAQ table-of-content Olof hagsand 2019-03-10 18:33:17 +01:00
  • b1c74b5f1f * Ensured you can add multiple callbacks for any RPC, including basic ones. * Extra RPC:s will be called _after_ the basic ones. * One specific usecase is hook for copy-config (see [doc/ROADMAP.md] that can be implemented thus way. * rpc_callback_register added a namespace parameter. Example: `` rpc_callback_register(h, empty_rpc, NULL, "urn:example:clixon", "empty"); `` Olof hagsand 2019-03-10 17:27:52 +01:00
  • 748c7282ea typos Olof hagsand 2019-03-08 11:31:12 +01:00
  • b03f8332e1 * CLI history: [Preserve CLI command history across sessions. The up/down arrows](https://github.com/clicon/clixon/issues/79) * The design is similar to bash history: * The CLI loads/saves its complete history to a file on entry and exit, respectively * The size (number of lines) of the file is the same as the history in memory * Only the latest session dumping its history will survive (bash merges multiple session history). * Tilde-expansion is supported * Files not found or without appropriate access will not cause an exit but will be logged at debug level * New config options: CLICON_CLI_HIST_FILE with default value ~/.clixon_cli_history * New config options: CLICON_CLI_HIST_SIZE with default value 300. Olof hagsand 2019-03-08 11:26:07 +01:00
  • 5602d3e987 forgot exit in testcase Olof hagsand 2019-03-06 10:37:01 +01:00
  • 6d85b2c000 Merge branch 'dcornejo-master' Olof hagsand 2019-03-06 10:04:30 +01:00
  • 77387e9c65 Merge branch 'master' of https://github.com/dcornejo/clixon into dcornejo-master Olof hagsand 2019-03-06 10:03:58 +01:00
  • 8cfd72c2c5 Merge branch 'develop' Olof hagsand 2019-03-06 09:44:43 +01:00
  • 98fb6eceef * Clixon configuration file top-level symbols has changed to clixon-configand namespace check is enforced. * clixon-config YAML file has new revision: 2019-03-05. * New URN and changed top-level symbol to clixon-config * Removed obsolete _CLICON_XML_NS_STRICT variable and CLICON_XML_NS_STRICT config option. Olof hagsand 2019-03-05 14:35:49 +01:00
  • 01c8b0b836 * [Identityref inside augment statement](https://github.com/clicon/clixon/issues/77) * Yang-stmt enhanced with "shortcut" to original module Olof hagsand 2019-03-05 22:41:41 +01:00
  • efe44d60e8 Added base as CLI default mode and cli Olof hagsand 2019-03-05 16:19:20 +01:00
  • e2e465eb7b remove redundant typedef that caused problems with some compilers Dave Cornejo 2019-03-04 09:24:42 -10:00
  • 4b17af0278 * Strict XML Prefixed namespace check * Yang augment created multiple augmented children (no side-effect) * XML prefixed attribute names were not copied into the datastore Olof hagsand 2019-03-04 19:15:23 +01:00
  • b182e8666f [yang type range statement does not support multiple values](https://github.com/clicon/clixon/issues/59) [Multiple ranges support](https://github.com/clicon/clixon/issues/78) Restructured "cb" parameter in cli_generate.c Olof hagsand 2019-03-04 14:36:43 +01:00
  • fc93051b87 Fixed numeric ordering of lists (again) [https://github.com/clicon/clixon/issues/64] It was previously just fixed for leaf-lists. Olof hagsand 2019-02-28 17:07:24 +01:00
  • 4d3c61735c Ensure non-modstate enabled backends ignore the modstate Olof hagsand 2019-02-28 16:03:23 +01:00
  • 31304380cd memleak for unknown in yang parser Olof hagsand 2019-02-28 14:39:16 +01:00
  • 00335452fa Added long.sh test for continuous restconf test Olof Hagsand 2019-02-28 13:13:39 +01:00
  • 3dd67474e0 Merge branch 'master' of https://github.com/clicon/clixon Olof Hagsand 2019-02-28 13:12:06 +01:00
  • a529546c88 Merge branch 'master' of https://github.com/clicon/clixon Olof Hagsand 2019-02-28 13:11:22 +01:00
  • ff3ff0daa9 * There was a problem with ordered-by-user for XML children that appeared in so\ me circumstances and difficult to trigger. Entries entered by the user did not \ appear in the order they were entered. This should now be fixed by adding an enumeration to xml children for sorting ordered by user properly Olof Hagsand 2019-02-27 18:11:52 +01:00
  • ceb5df2050 * New xml_isancestor xml function * Fixed memleak test for upgrade Olof Hagsand 2019-02-27 16:33:51 +01:00
  • f035c3ca23 * Removed all dependency on strverscmp * Added libgen.h for baseline() Olof Hagsand 2019-02-27 10:32:11 +01:00
  • d37aec7651 skip test_upgrade Olof hagsand 2019-02-26 17:16:14 +01:00
  • 598ab84c15 skip test_startup Olof hagsand 2019-02-26 17:09:05 +01:00
  • 2ecc5ae634 Optimized text_get Olof Hagsand 2019-02-26 16:58:49 +01:00
  • 2394c6f46e Merge branch 'modules-state' Olof hagsand 2019-02-26 16:53:59 +01:00
  • 560110b4e8 * New backend startup and upgrade support, see [doc/startup.md] for details * Datastore files contain RFC7895 module-state information Olof hagsand 2019-02-13 11:35:49 +01:00
  • 241ed2ed7d updated startup description Olof Hagsand 2019-02-26 13:57:04 +01:00
  • f26de05b7d updated startup description Olof Hagsand 2019-02-26 13:47:39 +01:00
  • fb8a1b282c updated startup description Olof Hagsand 2019-02-26 13:40:34 +01:00
  • 91e92565d2 updated startup description Olof Hagsand 2019-02-26 13:35:50 +01:00
  • b49fabd1e3 updated startup description Olof Hagsand 2019-02-26 12:32:45 +01:00
  • e282493095 FreeBSD compatibility & pedanticism patches Dave Cornejo 2019-02-22 19:57:42 -10:00
  • 7590395fe3 Starting 3.10 release cycle Moved docs to doc/ Olof Hagsand 2019-02-22 14:45:37 +01:00
  • 701ef1dead 3.9.0 Olof hagsand 2019-02-21 20:04:04 +01:00
  • 9afdd66f9a Preparing for 3.9.0 Olof hagsand 2019-02-21 16:12:37 +01:00
  • 3c332b689f Added cache for modules-state RFC7895 to avoid building new XML every get call Olof hagsand 2019-02-21 15:06:20 +01:00
  • a20865846e new try: optimized yang string parsing Olof hagsand 2019-02-20 17:36:40 +01:00
  • 8279c015d8 Revert "optimized string lex parsing" Olof hagsand 2019-02-20 16:26:01 +01:00
  • 83edd29678 Revert "Revert "* Added valgrind memory leak tests in testmem.sh for restconf"" Olof hagsand 2019-02-20 16:25:42 +01:00
  • a73d2bd242 Revert "* Added valgrind memory leak tests in testmem.sh for restconf" String error This reverts commit 6e63f0a77b. Olof hagsand 2019-02-20 16:19:07 +01:00
  • 5b6bdbfd3a optimized string lex parsing Olof hagsand 2019-02-20 15:37:10 +01:00
  • 6e63f0a77b * Added valgrind memory leak tests in testmem.sh for restconf * Added clicon_socket_set() and clicon_socket_get() functions for cleaning up backend server and restconf FCGI socket on termination. * Removed obsolete -x command-line option to clixon_cli. Olof Hagsand 2019-02-20 13:05:31 +01:00
  • 28bd698968 [Issue with bare axis names](https://github.com/clicon/clixon/issues/54) Olof hagsand 2019-02-19 22:54:12 +01:00
  • 7e4cce0000 test docs Olof hagsand 2019-02-19 13:32:03 +01:00
  • 4c0b412e9f Added valgrind memory leak tests for backend. Fixed some minor leaks and file descriptor closes. Olof hagsand 2019-02-19 13:16:59 +01:00
  • add43d250d Merge branch 'master' of https://github.com/clicon/clixon Olof hagsand 2019-02-18 16:10:19 +01:00
  • 286c2ec04f Added valgrind memory leak tests in testmem.sh for cli and netconf Olof hagsand 2019-02-18 16:05:51 +01:00
  • 055b1df80c Merge branch 'develop' of https://github.com/clicon/clixon into develop Olof hagsand 2019-02-18 15:53:41 +01:00
  • 5c46a7301e Merge branch 'master' of https://github.com/clicon/clixon Olof Hagsand 2019-02-16 17:54:05 +01:00