Commit graph

328 commits

Author SHA1 Message Date
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
68e132c275 Re-arranged yang, minor docs
github actions, re-balanced jobs
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
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
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
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
5ebc5a2219 Re-added shared yang mounts
YANG: de-dperecated CLICON_YANG_SCHEMA_MOUNT_SHARE
2024-10-06 15:46:15 +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
a4225c43b4 YANG: reorder CLICON_YANG_DIRs to yang group. remove trailing spaces 2024-09-18 20:51:31 +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
619719bb4d autocli: forgot add yang file in prev commit 2024-08-18 14:10:51 +02:00
Olof hagsand
7ed3973b8d autocli: fix for disable rule in previous commit 2024-08-18 14:01:16 +02:00
Olof hagsand
74e8934636 New clixon-autocli@2024-08-01.yang revision: Added disable operation for module rules 2024-08-18 12:39:13 +02:00
Olof hagsand
07a1fa164f List pagination, uniform config/state handling with new attributes
New `clixon-lib@2024-04-01.yang` revision and list_pagination_partial_state extension
2024-07-17 14:39:48 +02:00
Olof hagsand
ad5312d824 Add ietf-system-capabilities and adapt all tests 2024-07-09 17:38:07 +02:00
Olof hagsand
28bede2c8f Updated ietf-list-pagination YANGs to 2024-07-08 2024-07-09 10:17:13 +02:00
Olof hagsand
9a553bdcaa Re-add option CLICON_NETCONF_DUPLICATE_ALLOW 2024-06-24 08:40:36 +02:00
Olof hagsand
78cd42c15d Test: mem.sh rm files, rm commit tests from datastore_multi 2024-06-23 10:49:13 +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
b6480ac07d clixon-config.yang: Added CLICON_DEBUG, Removed: CLICON_NETCONF_DUPLICATE_ALLOW
Rearranged and grouped options
clixon-lib.yang: Added debug types
Removed git reliance in test - moved to configure script
2024-05-21 13:21:55 +02:00
Olof hagsand
37e9429ec8 Optimization of yang schema mount: share yang-specs if equal 2024-05-19 10:04:31 +02:00
Olof hagsand
62a4b5feff Restconf native+http/1 + tls
Added command-line timeout -t <sec> to restconf
Example: Added programmable timeout to backend example
Test: updated for fcgi and native using internal timeouts
2024-05-13 23:13:05 +02:00
Olof hagsand
2d5a646b51 Changed -f /usr/local/etc/example.xml -> /usr/local/etc/clixon/example.xml everywhere 2024-05-13 08:29:46 +02:00
Olof hagsand
9738345f82 Optimize of multi-db write 2024-05-09 12:18:35 +02:00
Olof hagsand
8ebfdb8168 Changed datastore modstate to be last in file, as prior to 7.0 2024-05-08 14:47:44 +02:00
Olof hagsand
af36838b4c Changed -f /usr/local/etc/example.xml -> /usr/local/etc/clixon/example.xml everywhere 2024-05-07 12:27:51 +02:00
Olof hagsand
7e1a00669c Event priority. Backend socket has higher prio. 2024-04-25 14:58:41 +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
407b4703b3 [Autolock](https://github.com/clicon/clixon/issues/508)
Added option: `CLICON_AUTOLOCK`
2024-04-12 13:09:27 +02:00
Olof hagsand
344786a971 Fixed: [Duplicate config files in configdir causes merge problems -> set ? = NULL](https://github.com/clicon/clixon/issues/510)
Made file-dir match more exact, eg .cli not ?cli
Added -1 as any arg to xml_rm_children()
2024-04-11 12:02:08 +02:00
Olof hagsand
60a774cbf7 CLI configurable format: [Default format should be configurable](https://github.com/clicon/clixon-controller/issues/87)
Added option: `CLICON_CLI_OUTPUT_FORMAT` - Default CLI output format
2024-04-06 12:02:12 +02:00
Olof hagsand
bd3a841103 New clixon-config@2024-04-01.yang revision
Added options: `CLICON_NETCONF_DUPLICATE_ALLOW` - Disable duplicate check in NETCONF messages
New `clixon-lib@2024-04-01.yang` revision
2024-04-03 17:40:32 +02:00
Olof hagsand
9826ac16ff Formatting and CHANGELOG updates 2024-04-03 17:40:32 +02:00
Olof hagsand
28050f44f8 Clixon 7.0.0 2024-03-08 09:41:57 +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
6ff1588397 Changed cl:ignore-compare to also include core diff algorithm 2024-02-09 16:18:47 +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
f1cf5c4234 Removed container creators from clixon-lib.yang 2024-01-22 13:05:53 +01:00
Olof hagsand
88b60daa75 Revert and obsolete the creators attribute feature introduced in 6.2. 2024-01-21 12:58:51 +01:00
Olof hagsand
bb603e0a83 New clixon-config@2024-01-01.yang revision 2024-01-15 14:39:33 +01:00
Olof hagsand
ea645d1334 New clixon-lib@2024-01-01.yang revision
* Replaced container creators to grouping/uses
2024-01-09 10:42:33 +01:00
Olof hagsand
bbcb4a7b03 Creator attribute changes: added as xmldb metadata
clixon-config.yang: New revision and Added `CLICON_NETCONF_CREATOR_ATTR` option
clixon-lib.yang: Added creator meta
Changed return value of xml_add_attr
2023-11-28 14:44:01 +01:00
Olof hagsand
e9c5287c36 Debug: improved debug level 2 with socket-description, also for notification 2023-11-01 13:48:41 +01:00
Olof hagsand
e7313fc9a2 New clixon-lib@2023-11-01.yang revision with ignore-compare extension 2023-10-25 18:09:40 +02:00
Olof hagsand
f6dbb30110 Minor fixes: UTF str: removed unused code, clarified loading of yang-lib load 2023-10-20 10:04:03 +02:00