Commit graph

286 commits

Author SHA1 Message Date
Olof hagsand
b09e326307 C-API: string to pointer map
Optimization of yspec+namespace lookup
Optimization of non-presence container default tree
2025-01-10 16:29:50 +01:00
Olof hagsand
2790d243e1 CLI: Added meta format pipe-xml-default for cli commands inside pipes 2024-12-09 22:52:23 +01:00
Olof hagsand
21476c1399 Fixed: [Mem error when more multiple uses on top level with multiple statements in grouping](https://github.com/clicon/clixon/issues/583) 2024-12-05 15:44:01 +01:00
Olof hagsand
30f9e174fa Add ping to cli example, misc debug 2024-12-05 15:37:09 +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
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
fd4e694312 Re-add yang ref-count for obsolete yangs in readfile 2024-10-22 21:02:00 +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
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
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
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
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
19c11eabb7 YANG mount refactoring: remove set functions 2024-09-01 16:45:39 +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
26ca872b0c Transform YANG when expressions to canonical xpath form 2024-08-23 08:39:32 +02:00
Olof hagsand
b1a4656f72 YANG deviation: Resolve deviated types lexically in deviation context 2024-08-16 13:33:43 +02:00
Olof hagsand
39fb149756 Modified YANG deviate+derived solution
Changed flag to YANG_FLAG_REFINE
More complete test
2024-08-16 09:19:15 +02:00
Olof hagsand
442e0391cc Added YANG deviate flag to not follow orig links
Fixed unbounded loop in deviation
2024-08-15 18:47:48 +02:00
Olof hagsand
bd5214dde1 Optmize YANG memory: Yang-type cache only for original trees 2024-08-13 13:48:53 +02:00
Olof hagsand
9da4939ee0 C-API: Extended yang_apply return value with: 2
Test: openconfig: ensure openconfig dirs searched before locally cached
2024-08-13 13:32:06 +02:00
Olof hagsand
c08dac2e5d YANG optimization: move "when" and "mymodule" to external maps 2024-08-11 14:07:33 +02:00
Olof hagsand
275cefbae7 Moved map functions from clixon_string to _map, new ptr2ptr map 2024-08-10 13:42:37 +02:00
Olof hagsand
781c9d9d27 YANG optimize, add orig pointer for derived trees
Skip some yang objects in derived trees
Add function to remove USES in augment/grouping trees
2024-08-09 12:03:14 +02:00
Olof hagsand
af29a0f974 Added YANG_SPEC_LINENR compile-time option 2024-07-31 14:33:31 +02:00
Olof hagsand
36f3c95768 List-pagination sort-by parameter 2024-07-11 22:45:15 +02:00
Olof hagsand
4b9ee6740b C-API changes: Replace yn_each with yn_iter, add keyw argument to yang_stats() 2024-07-04 18:27:14 +02:00
Olof hagsand
9a553bdcaa Re-add option CLICON_NETCONF_DUPLICATE_ALLOW 2024-06-24 08:40:36 +02:00
Olof hagsand
c2841d6e40 Various memory and file resource cleanup after valgrind tests 2024-06-23 18:46:44 +02:00
Olof hagsand
0234ed94bc Added CLICON_LOG_DESTINATION and CLICON_LOG_FILE for al applications 2024-06-19 12:46:09 +02:00
Olof hagsand
3579d98243 Refactoring of yang schema mount code 2024-06-02 12:16:00 +02:00
Olof hagsand
f6993de7eb Optimization of cardinality 2024-04-28 23:13:10 +02:00
Olof hagsand
a1badc312e Fixes after coverity static analysis 2024-03-03 17:05:36 +01:00
Olof hagsand
278def125c clixon-config@2024-01-01.yang: Changed semantics of CLICON_VALIDATE_STATE_XML
Minor optimizations
2024-02-22 09:40:07 +01:00
Olof hagsand
dff3b25c34 Replaced config cache with a single state flag 2024-01-25 22:50:54 +01:00
Olof hagsand
a97a06d15a Fixed: [yang_enum_int_value() fails if no explicit values are assigned to enums](https://github.com/clicon/clixon/issues/483) 2024-01-24 23:16:57 +01:00
Olof hagsand
465a5999fe Changed function name: choice_case_get() -> yang_choice_case_get()
Rewrote yang_choice()
2024-01-17 13:06:56 +01:00
Olof hagsand
344f5ec39d Remove USE_CONFIG_FLAG_CACHE, been enabled long time 2024-01-12 11:24:24 +01:00
Philip Prindeville
cf2e27b43d Drop __FUNCTION__ from clixon_debug() calls 2024-01-11 17:29:37 +01:00
Philip Prindeville
cb134875f9 Discriminate YANG debugging 2024-01-10 20:06:38 +01:00
Olof hagsand
9e54f0602f Changed ca_errmsg callback to a more generic variant
Includes all error, log and debug messages
See [Customized NETCONF error message](https://github.com/clicon/clixon/issues/454)
2024-01-05 16:41:53 +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
e619632ac7 Optimization: Added mountpoint cache as yang flag YANG_FLAG_MTPOINT_POTENTIAL
Filter state-data w xpath
2023-12-12 14:12:50 +01:00
Olof hagsand
012158fb24 Optimization of yang_find() 2023-12-10 21:03:46 +01:00
Olof hagsand
574106125f Added reference count for shared yang-specs (schema mounts) 2023-12-06 13:48:41 +01:00
Olof hagsand
c46872c3fd Fix mount memory leakage, Add YANG_FLAG_MOUNTPOINT 2023-11-29 18:59:13 +01:00