Olof hagsand
ea64bb3f3d
Fixed: [Diff of top-level default values on startup stopped working in 7.3]( https://github.com/clicon/clixon/issues/596 )
2025-03-13 14:10:20 +01:00
Corey Minyard
25f7c56c0a
backend: Handle RPC errors
...
Use the new RPC error reporting interface to report RPC errors from
plugins.
Signed-off-by: Corey Minyard <minyard@acm.org>
2025-01-30 15:21:24 +01:00
Olof hagsand
ead9e8d666
C-API: New no-copy xmldb_get_cache function for performance
...
Added SKIP flag to XML for skipping nodes in xml_diff
2024-12-18 16:54:01 +01:00
Olof hagsand
4c57edfc57
System-only config: revert clearing of candidate after commit
...
Add compile-time option SYSTEM_ONLY_CONFIG_CANDIDATE_CLEAR to document
2024-11-25 15:09:10 +01:00
Olof hagsand
0193186272
Fixed: [Change CLICON_NETCONF_DUPLICATE_ALLOW to remove duplicates]( https://github.com/clicon/clixon-controller/issues/160 )
...
C-API: Removed xml_tree_prune_flagged
2024-11-23 10:54:00 +01:00
Olof hagsand
08c8e43fb8
Disable CLICON_XMLDB_SYSTEM_ONLY_CONFIG by default
2024-11-23 08:36:15 +01:00
Olof hagsand
b7b1bf7aa4
System-only config, fixed startup diff
2024-11-19 11:52:54 +01:00
Olof hagsand
313a2caadd
System-only config: Source of truth
...
Candidate, fix system-only in cache when locked or modified, re-read otherwise
Remove system-only from cache after commit
2024-11-15 10:43:53 +01:00
Olof hagsand
69b65ad13d
System-only-config
...
* Fix startup diff
* Add system-only to running on startup
* JSON support:
2024-11-04 15:55:23 +01:00
Olof hagsand
3a656fac07
System-only config
...
New `ca_system_only` backend callback for reading system-only data
New `CLICON_XMLDB_SYSTEM_ONLY_CONFIG` configuration option
API: Added `system_only` parameter to clixon_xml2file1()
Cleared running on commit and inited candidate on startup with system-only data
Added callback code in main example
2024-11-04 09:34:27 +01:00
Olof hagsand
fcdfbd23cc
Re-optimized yang cardinality
...
Misc rearrangements
2024-05-02 13:34:46 +02:00
Olof hagsand
f511cb0030
Split config into multiple sub-files on mount-point boundaries and dont write clean subfiles
...
Added CLICON_XMLDB_MULTI option, added cl:xmldb-split extension
2024-04-25 14:58:14 +02:00
Olof hagsand
bd290e4594
Fixed: Fail on return errors when reading from datastore
2024-04-24 13:48:06 +02:00
Olof hagsand
407b4703b3
[Autolock]( https://github.com/clicon/clixon/issues/508 )
...
Added option: `CLICON_AUTOLOCK`
2024-04-12 13:09:27 +02:00
Olof hagsand
9826ac16ff
Formatting and CHANGELOG updates
2024-04-03 17:40:32 +02:00
Olof hagsand
8f2601bfdf
Fixed several backend memory leacks
2024-02-18 17:55:38 +01:00
Olof hagsand
d660c01a58
Optimization of xldb_put
...
Added flags parameter to default functions
removed call to bind
2024-02-06 09:27:51 +01:00
Olof hagsand
23dcb58758
Optimization of PUT
2024-02-05 17:14:36 +01:00
Olof hagsand
4e3bd6fbdd
Symbolic and combined debug names in cmd-line of all applications
...
New debug levels: BACKEND, CLI, NETCONF,RESTCONF, SNMP, STREAM
2024-02-02 11:54:12 +01:00
Olof hagsand
9989ee4d52
Removed other datastore options than cached
...
Marked `CLICON_DATASTORE_CACHE` as obsolete
2024-02-01 19:28:41 +01:00
Olof hagsand
121cd3ed2e
Debug: ensured all exit logs are on the format: retval:%s
2024-01-24 10:03:28 +01:00
Philip Prindeville
cf2e27b43d
Drop __FUNCTION__ from clixon_debug() calls
2024-01-11 17:29:37 +01:00
Philip Prindeville
0ec1e0a686
Discriminate APP debugging
2024-01-10 20:06:38 +01:00
Philip Prindeville
063c8d664f
Messages can't be DETAIL alone so pair with DEFAULT
2024-01-10 20:06:38 +01:00
Olof hagsand
558a0df1f3
Fixed proper restore of cttl-C in msg rcv
...
Rename and move plugin_context_check to clixon_resource_check
2023-12-21 15:00:12 +01:00
Olof hagsand
24a4991ec8
Restructured error,debug anf log API
...
Renamed functions clicon->clixon, replaced global variables w access functions
Unified clicon_netconf_error with clixon_err()
2023-12-18 08:29:14 +01:00
Olof hagsand
e9c5287c36
Debug: improved debug level 2 with socket-description, also for notification
2023-11-01 13:48:41 +01:00
Alexander Skorichenko
71431dcd82
Let restart-plugin RPC pick up on yang's defaults
...
In the transaction that applies plugin's config don't include
yang's defaults in the transaction source.
2023-10-31 14:57:20 +01:00
Olof hagsand
62348fc9c7
C-style update: Unified comment, retvals in order, remove trailing spaces
...
Changed function name for `clicon_debug` functions
2023-10-23 09:58:13 +02:00
Olof hagsand
86ef8053a2
Typo in previous commit
2023-05-29 10:55:05 +02:00
Olof hagsand
a97a66cb92
Performance: A change in the merge code made "co-located" config and non-config get retrieval go considerable faster.
2023-05-29 10:47:00 +02:00
Olof hagsand
6335f810d3
C-API: clixon_xml2file and clixon_xml2cbuf added prefix argument
...
Added in-mem xml diff function: `xml_tree_diff_print`
2023-04-12 10:44:58 +02:00
Olof hagsand
45d8e5b6ce
C-API xmldb_validate() removed. compare_db_names() added.
2023-04-09 21:13:12 +02:00
Olof Hagsand
7eb37273b8
Formatting of comments
2023-03-30 15:39:35 +02:00
Olof hagsand
da2edceb7e
* Added new functions: xml_tree_equal and xpath2xml
...
* RFC 8528 yang schema mount-points:
* Made expand_dbvar and cli_dbxml mountpoint-aware (RFC 8528)
* autocli supportgenerate
* Made api_path2xml and xml2api_path mount-point-aware
* Temporar fix in clixon_custom.h: XPATH_CANONICAL_SKIP_CHECK
* `xml2xpath()`: Added `apostrophe` as 4th parameter, default 0
* removed extra assert.h includes
2023-03-23 22:16:33 +01:00
Olof hagsand
1e136bc9df
Added clicon_data_init API, and yang_mount_get API
...
Moved dynamic options from options to data API
2023-03-12 21:04:23 +01:00
Olof hagsand
5f2978d06c
Files: Rearranged backend .h files: moved client_entry to clixon_backend_client.h
2023-03-03 16:05:31 +01:00
Olof hagsand
55422f4187
PERF: Added a recurse parameter to xml_yang_minmax_recurse() to avoid "double recursion"
...
C-API: `candidate_commit()`: validate_level (added in 6.1) marked obsolete
2023-02-23 11:42:15 +01:00
Olof hagsand
fe8636bb77
Move validation flag to include diff
2023-02-21 20:19:59 +01:00
Olof Hagsand
034ab632f1
* C-API: Added vlev validate level parameter to candidate_commit
...
* `vlev` : validate level
2023-01-29 20:02:56 +01:00
Olof hagsand
51ebbdf12f
* C-API: Added clicon_handle parameter to all xml_bind_* calls
2023-01-27 14:56:58 +01:00
Olof hagsand
da9bfcbb53
* Changed debug levels in clicon_debug() to be based on maskable flags
...
* Added flag names: `CLIXON_DBG_*`
* Added maskable flags that can be combined when debugging:
* `DEFAULT` = 1: Basic debug message, espcially initialization
* `MSG` = 2: Input and output packets, read datastore
* `DETAIL` = 4: Details: message dump in hex, xpath parse trees, etc
* `EXTRA` = 8: Extra detailed logs
* Test: some errors in yang-lib where content-id was in wrong place
2023-01-27 14:56:58 +01:00
Olof hagsand
46137e1394
Fixed: [Netconf commit confirm session-id mismatch #407 ]( https://github.com/clicon/clixon/issues/407 )
2023-01-18 15:55:49 +01:00
Olof hagsand
0df023c70e
Typo in xpath ilen
...
Doc of backend code
2023-01-02 21:21:37 +01:00
Olof hagsand
6fedf65de7
C-API: Changed type of veclen parameter to size_t in xpath_vec_flag()
...
Rewrite of sed -e to be portable to freebsd
2022-12-29 15:49:19 +01:00
Olof hagsand
0d41d49fa9
Moved with-defaults processing from get(-config) to xmldb_get when reading db
...
With-defaults: fixed cornercase in xpath used in list pagination
C-API: Added `with-defaults` parameter (default 0) to `xmldb_get0()`
2022-12-18 19:59:02 +01:00
Olof hagsand
8ebab16c4c
Add proper error message if namespace not found in module-set header
2022-11-28 13:50:41 +01:00
Olof hagsand
f82ce896a9
Typos and docker test fix for ubuntu-22.04
2022-11-10 11:40:54 +01:00
Olof hagsand
d84c529ff1
[Code formatting: Change indentation style to space]( https://github.com/clicon/clixon/issues/379 )
...
* Applies to all c/h/y/l/sh files and .editorconfig
2022-10-27 14:21:17 +02:00
Olof hagsand
a9d1ab006c
Confirmed commit: lock check on running
2022-10-26 20:18:57 +02:00