Olof hagsand
7fd1751302
Merge branch 'datastore-repair' into release-4.3
2020-02-15 14:31:38 +01:00
Olof hagsand
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`.
2020-02-14 15:16:17 +01:00
Olof hagsand
b6812793f9
General-purpose upgrade
2020-02-12 16:40:52 +01:00
Olof hagsand
3748eefb8e
datastore repair test branch
2020-02-11 20:17:15 +01:00
Olof hagsand
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
2020-02-10 20:23:48 +01:00
Olof hagsand
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
2020-02-05 16:09:26 +01:00
Olof hagsand
a58f1872ad
Restructure of get state/config code to enable all combinations of filtering config/state for both <get> and <get-config>
2020-02-01 20:16:11 +01:00
Olof hagsand
b7f1d72c28
read whole running config when reading state data
2020-01-31 16:13:50 +01:00
Olof hagsand
20d28b4796
Compile option VALIDATE_STATE_XML introduced in include/custom.h to control whether code for state data validation is compiled or not.
2020-01-29 21:56:50 +01:00
Olof hagsand
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
2020-01-27 22:11:35 +01:00
Olof Hagsand
a87e9cb246
clang warnings
2019-12-23 14:03:42 +00:00
Olof hagsand
7fb452f96e
nacm external mem leak
2019-12-22 18:00:46 +01:00
Olof hagsand
b78054e7cf
State callback error message changed to include namespace and use proper <bad-element>
2019-12-21 20:50:55 +01:00
Olof hagsand
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)`
2019-12-20 18:21:46 +01:00
Olof hagsand
241ae26e55
Merge branch 'master' of https://github.com/clicon/clixon
2019-12-18 23:27:52 +01:00
Olof hagsand
02c461b84f
Fixed CLI error messages on wrong cli_set/merge xml-key
2019-12-18 23:27:19 +01:00
Olof hagsand
05ce6f38a3
test kill valgrind process after run
2019-12-09 21:12:39 +01:00
Olof hagsand
d68a829862
* Added namespace-context parameter nsc to xpath_first and xpath_vec, (xpath_vec_nsc and xpath_first_nsc` are removed).
2019-12-07 20:46:13 +01:00
Olof hagsand
ba2f40728b
[filter in netconf - one specific entry #100 ]( https://github.com/clicon/clixon/issues/100 )
2019-12-07 18:10:19 +01:00
Olof hagsand
46552066d1
Added nsc parameter to xmldb_get()
2019-12-02 20:55:28 +01:00
Olof hagsand
08b128f4d7
moved config yang spec from main functions to options_main function
2019-12-01 17:42:34 +01:00
Olof hagsand
c4954f5c43
memerror in uid-get. reinsert save config yang spec (removed for wrong reasons previously causing memleaks)
2019-12-01 16:48:45 +01:00
Olof hagsand
0d22a8b6d0
Yang files reorganized into three classes: clixon, mandatory, optional
2019-11-26 21:51:28 +01:00
Olof hagsand
d0e97ee338
Removed obsolete config yang handler
...
Added base netconf as default namespace in canonical nsctx
2019-11-16 16:49:40 +01:00
Olof hagsand
52629d7b35
Added "canonical" global namespace context: nsctx_global
2019-11-15 17:04:13 +01:00
Olof hagsand
43eb9fe9d2
state callback xml error
2019-11-14 22:16:45 +01:00
Olof hagsand
6b9a9d46f9
changed netconf_err2cb
2019-11-12 20:47:09 +01:00
Olof hagsand
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.
2019-11-11 21:03:11 +01:00
Olof hagsand
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 )
2019-11-03 13:05:50 +01:00
Olof hagsand
948e203a61
moved initial hello request from client to backend to immediate before first actual query
2019-10-27 10:24:13 +01:00
Olof hagsand
84c94b2c0e
recover user as config option instead of constant
2019-10-24 20:43:03 +02:00
Olof hagsand
44138c0071
internal netconf hello mechanism to obtain session-id
2019-10-24 11:46:06 +02:00
Olof hagsand
433392a724
merge
2019-10-20 21:20:33 +02:00
Olof hagsand
87f76c42f8
test script minor modifications
2019-10-20 21:11:13 +02:00
Olof Hagsand
5e8a81389d
Merge branch 'master' of https://github.com/clicon/clixon
2019-10-20 09:04:16 -10:00
Olof Hagsand
d7bb96b9cf
FreeBSD modifications: Configure, makefiles and test scripts modification for Freebsd
2019-10-20 09:03:31 -10:00
Olof Hagsand
9a6478e267
Merge branch 'master' of https://github.com/clicon/clixon
2019-10-19 20:58:07 +00:00
Olof Hagsand
28a62ecb11
memleak
2019-10-19 20:58:03 +00:00
Olof hagsand
1fa45067a7
typo
2019-10-19 22:56:25 +02:00
Olof hagsand
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.
2019-10-19 19:52:09 +02:00
Olof hagsand
279614d64f
* The backend socket has now support of credentials of peer clients
...
* Added: CLICON_NACM_CREDENTIALS and CLICON_NACM_RECOVERY_USER
2019-10-18 19:33:23 +02:00
Olof Hagsand
77b491c568
Demon->Daemon, FreeBSD grep changes
2019-10-14 07:47:08 -10:00
Olof hagsand
03acf8e19c
* XPATH canonical form implemented for NETCONF get and get-config.
2019-10-09 22:13:04 +02:00
Olof hagsand
8cdb0bb062
* Changed so that 400 Bad Request are for invalid api-path or unknown yang elements, 404 Not Found for valid xml when object not found.
2019-10-07 22:20:34 +02:00
Olof hagsand
6e41592aec
* Changed clicon_rpc_get and clicon_rpc_get_config functions: added username and replaced namespace with namespace context
...
* Fixed several issues with multiple namespaces.
2019-10-03 22:01:16 +02:00
Olof hagsand
d9136c8972
* Stricter handling of multi-namespace handling
...
* This occurs in cases where there are more than one XML namespaces in a config tree, such as `augment`:ed trees.
* Affects all parts of the system, including datastore, backend, restconf and cli.
* Invalid api-path syntax (eg non-matching yang) error changed from 412 operation-failed to 400 Bad request invalid-value, or unknown-element.
2019-09-29 14:45:08 +02:00
Olof hagsand
22307e0a9e
Invalid api-path syntax error changed from 412 operation-failed to 404 invalid-value.
2019-09-21 11:26:03 +02:00
Olof hagsand
27fd99e7cd
* Implemented backend daemon drop privileges after initialization to
...
run as non-privileged user
2019-09-14 18:34:32 +02:00
Olof hagsand
3d5abb77f9
* Backend daemon drops privileges after initialization (to not run as root)
...
* New config option `CLICON_USER` with default value `clicon`
* Can also be set with `-U <user>` clixon_backend command-line option
2019-09-11 21:24:14 +02:00
Olof hagsand
3806f7652e
Hello netconf candidate capability misspelled, mentioned in [Can clixon_netconf receive netconf packets as a server? #93 ]( https://github.com/clicon/clixon/issues/93 )
2019-09-04 14:56:17 +02:00