Commit graph

1502 commits

Author SHA1 Message Date
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
6ce1df2e5e Fixed: [Expansion removes the double quote](https://github.com/clicon/clixon/issues/524)
Add escaping in expand_dbvar instead of automatic in cligen
2024-11-08 11:49:53 +01:00
Olof hagsand
7b01b029a4 System-only 7.2 adjustment mismatching yang revisions after branch merge 2024-11-04 15:56:35 +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
0586e94856 Post-release test and docs 2024-10-29 09:53:20 +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
54a8f51bfd Fixed show mem yspec vs ydomain issue 2024-10-28 10:39:04 +01:00
Olof hagsand
947128339c snmp getpwuid leak 2024-10-27 11:50:44 +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
537df0756d Test: timing changes 2024-10-26 13:48:59 +02:00
Olof hagsand
0b78c9ded0 test: restconf status message removed 2024-10-25 18:36:18 +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
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
098262e2e7 Test: Remove group check 2024-10-18 22:28:14 +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
f0bd103e79 Added new DOMAIN level in YANG spec structure 2024-10-06 10:51:26 +02:00
Olof hagsand
f0f3ed0dff Optimize autocli memory: Late evaluation of uses/grouping 2024-09-28 18:25:03 +02:00
Olof hagsand
45e744d6eb Fixed test from previous commit 2024-09-26 14:00:16 +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
Olof hagsand
158ea40b59 Restconf: Fixed http accept/content-type logic
yang mem-leak
2024-09-16 14:24:20 +02:00
Olof hagsand
f1d9e26755 Restconf: Notify ssl version on start
SNMP: rm unused variables
2024-09-15 11:58:44 +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
a66fe05149 Test: Restconf accept encoding tests 2024-09-03 08:34:20 +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
26ca872b0c Transform YANG when expressions to canonical xpath form 2024-08-23 08:39:32 +02:00
Olof hagsand
7cc94b3ac5 Some fixex on list pagination remaining attribute 2024-08-20 10:07:03 +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
Olof hagsand
d6622772bf Added new autocli revision in test 2024-08-18 14:16:38 +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
658ad5504e regcomp issue on alpine, RE_DUP_MAX =255, Fixed by match-all fallback 2024-08-15 11:13:43 +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
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
Mico Micic
7d70325125 Add test for snmp v2 traps 2024-08-01 06:51:28 +02:00
Olof hagsand
af29a0f974 Added YANG_SPEC_LINENR compile-time option 2024-07-31 14:33:31 +02:00
Olof hagsand
aa4feee03e New: [CLI simple alias](https://github.com/clicon/cligen/issues/112) 2024-07-24 17:14:38 +02:00
Olof hagsand
9ee55441ac Pagination test/doc errors 2024-07-22 09:23:02 +02:00
Olof hagsand
816238029d Fixed: [NETCONF error reply from failed leafref rquire-instance does not comply to RFC 7950](https://github.com/clicon/clixon/issues/53 2024-07-22 09:18:27 +02:00