Commit graph

1500 commits

Author SHA1 Message Date
Olof hagsand
462b18e0d0 string substitute NULL with "" 2024-11-28 16:44:28 +01:00
Olof hagsand
be5a7c418a Fixed Debug -D msg: dont show length in detailed debug 2024-11-27 10:55:34 +01:00
Olof hagsand
030dd89b83 Debug -D msg: dont show length in detailed debug 2024-11-23 10:54:01 +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
199a3fd88e Fixed: Segv in canonical xpath transform 2024-11-20 15:14:02 +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
27c821e3ce C-API: changed singature to yang_mount_set(y), rm: yang_mount_yspec2ymnt 2024-11-14 11:27:51 +01:00
Olof hagsand
ca695ea386 Fixed: [Error with submodules and feature Interaction](https://github.com/clicon/clixon-controller/issues/158) 2024-11-08 16:37:31 +01:00
Olof hagsand
daaeaa0039 test: lock-auto 2024-11-08 16:28:08 +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
aec0a5fc3f First version of system-only-config
A new extension added in clixon-lib.yang
A conditional in xmldb_dump to not write system-only data to datastores
A test for verifying system-only data is not written at edit-commit
2024-11-04 09:32:23 +01:00
Olof hagsand
515d30bdd7 New: [feature request: support xpath functions for strings](https://github.com/clicon/clixon/issues/556)
Added: re-match, substring, string, string-length, translate, substring-before, substring-after, starts-with
2024-11-02 17:27:25 +01:00
Olof hagsand
3188e3cc59 Fixed: [string length validation doesn't work for the entry "" in case it has default value specified](https://github.com/clicon/clixon/issues/563) 2024-11-01 09:58:28 +01:00
Olof hagsand
0307aa5374 Fixed: [YANG 'when' does not work in multiple grouping](https://github.com/clicon/clixon/issues/572) 2024-10-28 12:06:28 +01:00
Olof hagsand
73129b96d9 Test: restconf http1.1 only had http2 test
test: snmpwalk -t for valgrind
leak in clicon_rpc
2024-10-26 22:37:48 +02:00
Olof hagsand
582bf3feb1 Config check for qsort_s/qsort_r 2024-10-25 19:24:37 +02:00
Olof hagsand
fd4e694312 Re-add yang ref-count for obsolete yangs in readfile 2024-10-22 21:02:00 +02:00
Olof hagsand
fa93364953 Restconf mem leak 2024-10-22 12:44:49 +02:00
Olof hagsand
315e554637 Test: mem test delays
Yang-lib capabilty fix
2024-10-21 23:47:06 +02:00
Mykola Perehudov
03f153d6fa Change yang-library version 2024-10-21 13:09:43 +02:00
Olof hagsand
4dd3f9fd34 Fixed: [Error when changing choice/case with different structure](https://github.com/clicon/clixon/issues/568) 2024-10-19 17:05:19 +02:00
Olof hagsand
0a37cf31ab New version string on the form: 7.1.0-1+11+g2b25294 2024-10-18 17:33:25 +02:00
Olof hagsand
3cad374f33 Formatting and documentation 2024-10-16 12:39:45 +02:00
Olof hagsand
f87ff859a6 Removed list-pagination-partial-state extension
Refactored pagination code
Reverted clixon-lib.yang to 2024-04-01 revision
2024-10-16 10:46:54 +02:00
Olof hagsand
b9ff2d083a YANG domain/spec support
cli show mem improvement
2024-10-06 20:07:08 +02:00
Olof hagsand
5ebc5a2219 Re-added shared yang mounts
YANG: de-dperecated CLICON_YANG_SCHEMA_MOUNT_SHARE
2024-10-06 15:46:15 +02:00
Olof hagsand
f0bd103e79 Added new DOMAIN level in YANG spec structure 2024-10-06 10:51:26 +02:00
Olof hagsand
0c8aef0291 Fixed: [CLI bug w/ device domains on juniper qfx devices](https://github.com/clicon/clixon-controller/issues/145)
Reverted uses/grouping remove optimization
2024-10-05 13:35:00 +02:00
Olof hagsand
43bfc82942 Break out init of orig-ptr to yang_start() to be made after options 2024-09-28 18:04:04 +02:00
Olof hagsand
ba40f5a929 Move debug msg to msg+detail, only msg length in debug level msg
Move log warning of namespace mismatch to debug
2024-09-27 14:45:08 +02:00
Olof hagsand
1994a405dd Replaced compile-time with CLICON_YANG_USE_ORIGINAL
Use original yang object in grouping/augment
2024-09-26 15:17:57 +02:00
Olof hagsand
8901d00e47 Reworked cli show mem to yang domains 2024-09-26 13:36:14 +02:00
Olof hagsand
212be7ad57 Replace shared yang with yang domains 2024-09-26 09:47:03 +02:00
Olof hagsand
c06945ec37 Set domain as yang-spec name 2024-09-25 19:03:26 +02:00
Olof hagsand
6a634effea Fixed: [Clixon handle if-feature incorrectly](https://github.com/clicon/clixon/issues/555) 2024-09-21 15:15:15 +02:00
Olof hagsand
3108dfca1e Fixed: [Clixon fails to load yang with extension](https://github.com/clicon/clixon/issues/554) 2024-09-21 11:04:03 +02:00
EvgeniiVR
7ea344c51f
add commit failed cb (#550)
* add revert failed cb

* add revert failed cb

* add commit failed cb

* add commit failed cb
2024-09-18 20:51:09 +02:00
Olof hagsand
158ea40b59 Restconf: Fixed http accept/content-type logic
yang mem-leak
2024-09-16 14:24:20 +02:00
Olof hagsand
cc194ac7c5 Added yang domains for mount-point isolation
New option: `CLICON_YANG_DOMAIN_DIR`
New `clixon-config@2024-08-01.yang` revision
2024-09-12 20:48:14 +02:00
Olof hagsand
31008e8492 Fixed: Double top-levels in xmldb_get that could occur with xpath containing choice. 2024-09-04 12:12:36 +02:00
Olof hagsand
c1ea72bcb3 Restconf: Support for list of media in Accept:
Restconf: Better RFC compliance with Accept errors: 406 vs 415
Fixed: [RESTCONF exit on cert error + complex accept](https://github.com/clicon/clixon/issues/551)
2024-09-02 16:37:11 +02:00
Olof hagsand
19c11eabb7 YANG mount refactoring: remove set functions 2024-09-01 16:45:39 +02:00
Olof hagsand
b0ec866544 when_xpath memory fixes and trimmed perf 2024-08-29 17:57:52 +02:00
Olof hagsand
911594ead1 Fixed show mem total yang output
Fixed log message for mount error
2024-08-29 17:55:28 +02:00
Olof hagsand
dfe5c1bac1 Refactoring of schema mount-points
Add new top-level `Y_MOUNTS` and add top-level yangs and mountpoints in yspecs
2024-08-29 17:24:44 +02:00
Olof hagsand
99503ac7fb Minor perf improve of NETCONF input read 2024-08-23 09:54:42 +02:00
Olof hagsand
26ca872b0c Transform YANG when expressions to canonical xpath form 2024-08-23 08:39:32 +02:00
Olof hagsand
71e921520e Improved customized error handling 2024-08-20 11:05:52 +02:00
Olof hagsand
7cbc0a8dc3 Fixed: [Deletion of leaf in YANG choice removes leaf in a different choice/case](https://github.com/clicon/clixon/issues/542) 2024-08-20 10:07:03 +02:00