Olof hagsand
65451f1045
forgot new data and datastore files
2019-03-31 18:20:48 +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
0f359676b1
Merge branch 'master' of https://github.com/clicon/clixon
2019-03-28 11:24:35 +01:00
Olof hagsand
b10c3c5727
more upgrade-interfaces test cases
2019-03-28 10:56:53 +01:00
Olof Hagsand
7ee4a151cf
guard CLICON_CLI_HIST_SIZE with CLIgen default
2019-03-28 09:19:43 +01:00
Olof hagsand
772d93963c
Merge branch 'master' of https://github.com/clicon/clixon
2019-03-27 18:15:38 +01:00
Olof hagsand
3dfc1f56a0
upgrade docs
2019-03-27 18:15:16 +01:00
Olof Hagsand
72e5ca884c
tab err
2019-03-27 18:06:01 +01:00
Olof hagsand
be59bd48d8
upgrade example and test
2019-03-27 18:04:01 +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
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()`.
2019-03-27 16:04:14 +01:00
Olof Hagsand
5fd092b785
reverted internal-rpc nacm rule
2019-03-26 16:26:07 +01:00
Olof hagsand
8624be0a67
xml changelog next iteration
2019-03-26 12:04:51 +01:00
Olof Hagsand
3f3f70dfd6
xml changelog
2019-03-25 22:55:24 +01:00
Olof Hagsand
1991c3870c
uninitialized vars
2019-03-25 22:16:51 +01:00
Olof hagsand
7b9edd7112
ret error
2019-03-25 14:31:21 +01:00
Olof hagsand
b9df1ed5b3
mem-leak
2019-03-25 11:26:57 +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
d3ac21a975
startup doc upgrade
2019-03-22 10:16:38 +01:00
Olof Hagsand
f4a19f6371
doc startup with new upgrade mechanism
2019-03-22 10:05:27 +01:00
Olof Hagsand
9d64ddd305
handle null
2019-03-21 20:51:57 +01:00
Olof Hagsand
10d45bcee3
Memory leaks and errors
2019-03-21 20:36:47 +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
0bf838eb8c
added module-revision Yang
2019-03-19 11:55:44 +01:00
Olof hagsand
e8983a4be5
Upgrade repair test and docs
2019-03-19 10:04:16 +01:00
Olof hagsand
7b30b7a9e0
ordering problems
2019-03-18 21:59:41 +01:00
Olof hagsand
789732c613
xml sort adjust to different yang models
...
global yang ordering for top-level xml symbols
2019-03-18 19:15:21 +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
b3cd48468d
Cleaned up after regression tests. New upgrade running docs.
2019-03-13 13:26:04 +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
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.
2019-03-12 09:56:09 +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
5602d3e987
forgot exit in testcase
2019-03-06 10:37:01 +01:00
Olof hagsand
6d85b2c000
Merge branch 'dcornejo-master'
2019-03-06 10:04:30 +01:00
Olof hagsand
77387e9c65
Merge branch 'master' of https://github.com/dcornejo/clixon into dcornejo-master
2019-03-06 10:03:58 +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