Olof hagsand
c3d9b392dd
Scaling large lists report
2019-04-17 15:50:38 +02:00
Olof hagsand
14d319dd9b
* A new "hello world" example is added
...
* The directory `docker/system` has been moved to `docker/main`
2019-04-17 11:26:05 +02:00
Olof hagsand
71da2ac6cb
Merge branch 'master' of https://github.com/clicon/clixon
2019-04-14 14:43:20 +02:00
Olof hagsand
c79baf1b1f
* Optimized validation of large lists
...
* New xmldb_get1() returning actual cache - not a copy. This has lead to some householding instead of just deleting the copy
* xml_diff rewritten to work linearly instead of O(2)
* New xml_insert function using tree search. The new code uses this in insertion xmldb_put and defaults. (Note previous xml_insert renamed to xml_wrap_all)
2019-04-14 14:36:41 +02:00
Olof hagsand
cef0dc5a22
* Added yang access functions
...
* Change all y->ys_parent to yang_parent_get(y)
* Change all y->ys_keyword to yang_keyword_get(y)
* Change all y->ys_argument to yang_argument_get(y)
* Change all y->ys_cv to yang_cv_get(y)
* Change all y->ys_cvec to yang_cvec_get(y)
2019-04-11 15:53:25 +02:00
Olof hagsand
cf7675dfac
Experimental customized error output strings, see [lib/clixon/clixon_err_string.h]
2019-04-11 12:45:31 +02:00
Olof hagsand
56f32371ce
* Backend plugin returning NULL was still installed - is now logged and skipped.
...
* [Parent list key is not validated if not provided via RESTCONF #83 ](https://github.com/clicon/clixon/issues/83 ), thanks achernavin22.
2019-04-11 11:25:42 +02:00
Olof hagsand
881dd56ee1
Empty leaf values, eg <a></a> are now checked at vlidation.
2019-04-10 17:35:36 +02:00
Olof hagsand
6bfa510ea3
[Invalid JSON if GET /operations via RESTCONF #82 ]( https://github.com/clicon/clixon/issues/82 ), thanks achernavin22
2019-04-09 16:32:17 +02:00
Olof hagsand
9b9b53c4ee
changelog fix
2019-04-07 16:15:08 +02:00
Olof hagsand
a37b89600f
Merge branch 'master' of https://github.com/clicon/clixon
2019-04-07 16:04:23 +02:00
Olof hagsand
e29cd7cfb9
* Optimized validation by making xml_diff work on raw cache tree (not copies)
...
* xmldb_get() removed unnecessary config option
2019-04-07 15:55:53 +02:00
Olof hagsand
4fbec973d7
List ordering bug - lists with ints as keys behaved wrongly and slow
2019-04-07 15:49:19 +02:00
Olof Hagsand
473d82a8a3
NACM read default rule did not work properly if nacm was enabled AND no group\
...
s were defined
2019-04-07 15:49:19 +02:00
Olof hagsand
4021d65d7a
Merge branch 'master' of https://github.com/clicon/clixon
2019-04-07 15:47:10 +02:00
Olof hagsand
473d65c511
* Optimized validation by making xml_diff work on raw cache tree (not copies)
...
* xmldb_get() removed unnecessary config option
2019-04-06 21:43:51 +02:00
Olof hagsand
2d7e303341
List ordering bug - lists with ints as keys behaved wrongly and slow
2019-04-05 20:08:54 +02:00
Olof Hagsand
5b78abccdc
NACM read default rule did not work properly if nacm was enabled AND no group\
...
s were defined
2019-04-03 18:19:14 +02:00
Olof hagsand
b5f1f7346e
Structural C-code change: Merged yang_spec and yang_node types into yang_stmt
2019-04-02 12:27:33 +02:00
Olof hagsand
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]
2019-03-31 18:17:40 +02:00
Olof hagsand
a269e26c0d
Directory change: Moved example to example/main to make room for other examples
2019-03-28 17:58:47 +01:00
Olof hagsand
60cb87f998
Removed argc/argv parameters from ca_start plugin API function. You may need to change signatures of your startup in your plugins
2019-03-28 17:11:55 +01:00
Olof hagsand
cdbce7645e
Changed hash API for better error handling
2019-03-28 13:16:44 +01:00
Olof hagsand
4902f7cf1d
Merge branch 'develop'
2019-03-27 16:32:01 +01:00
Olof hagsand
8a18b04a34
xml_wrap, clicon-argv()
2019-03-27 16:07:38 +01:00
Olof Hagsand
5fd092b785
reverted internal-rpc nacm rule
2019-03-26 16:26:07 +01:00
Olof hagsand
a0abf8436e
XML chanelog revision
2019-03-25 10:42:27 +01:00
Olof Hagsand
0c0efd4037
Added synatctic check for yang status: current, deprectated or obsolete
2019-03-23 13:23:50 +01:00
Olof Hagsand
69dcc721a9
* Added CLICON_NACM_MODE "internal-rpc" which is for RPC functionality only
2019-03-22 17:09:05 +01:00
Olof Hagsand
0898870e68
Re-inserted cli_output_reset for what was erroneuos thought to be an obsole\
...
te function
2019-03-22 16:13:51 +01:00
Olof hagsand
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
2019-03-21 18:05:55 +01:00
Olof hagsand
434f0b930e
Made Makefile concurrent so that it can be compiled with -jN
2019-03-21 10:40:00 +01:00
Olof hagsand
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.
2019-03-18 16:31:34 +01:00
Olof hagsand
8f656da15b
Bugfix: [Nodes from more than one of the choice's branches exist at the same time]( https://github.com/clicon/clixon/issues/81 )
2019-03-14 16:33:10 +01:00
Olof hagsand
29535d5997
Bugfix: Default NACM policies applied even if NACM is disabled
2019-03-13 11:35:11 +01:00
Olof hagsand
b54e6c1cc0
example regression fail
...
FAQ table-of-content
2019-03-10 18:33:17 +01:00
Olof hagsand
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");
```
2019-03-10 17:27:52 +01:00
Olof hagsand
748c7282ea
typos
2019-03-08 11:31:12 +01:00
Olof hagsand
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.
2019-03-08 11:26:07 +01:00
Olof hagsand
8cfd72c2c5
Merge branch 'develop'
2019-03-06 09:44:43 +01:00
Olof hagsand
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.
2019-03-06 09:42:55 +01:00
Olof hagsand
01c8b0b836
* [Identityref inside augment statement]( https://github.com/clicon/clixon/issues/77 )
...
* Yang-stmt enhanced with "shortcut" to original module
2019-03-05 22:42:13 +01:00
Olof hagsand
efe44d60e8
Added base as CLI default mode and cli
2019-03-05 16:19:20 +01:00
Olof hagsand
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
2019-03-04 19:15:23 +01:00
Olof hagsand
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
2019-03-04 14:36:43 +01:00
Olof hagsand
fc93051b87
Fixed numeric ordering of lists (again) [ https://github.com/clicon/clixon/issues/64 ] It was previously just fixed for leaf-lists.
2019-02-28 17:07:24 +01:00
Olof Hagsand
3dd67474e0
Merge branch 'master' of https://github.com/clicon/clixon
2019-02-28 13:12:06 +01:00
Olof Hagsand
a529546c88
Merge branch 'master' of https://github.com/clicon/clixon
2019-02-28 13:11:22 +01:00
Olof Hagsand
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
2019-02-27 18:20:23 +01:00
Olof Hagsand
f035c3ca23
* Removed all dependency on strverscmp
...
* Added libgen.h for baseline()
2019-02-27 10:46:05 +01:00