Commit graph

1053 commits

Author SHA1 Message Date
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
91ea38eff0 Fixed: [NACM create rules do not work properly on objects with default values](https://github.com/clicon/clixon/issues/506) 2024-04-01 17:02:48 +02:00
Olof hagsand
b13320f1a1 Fixed: [CLI: Explicit api-path not encoded correctly](https://github.com/clicon/clixon/issues/504) 2024-03-26 11:53:02 +01:00
Olof hagsand
928d7d5b4d Fixed: [Startup and default of same object causes too-many-elements error](https://github.com/clicon/clixon/issues/503) 2024-03-18 17:07:43 +01:00
Olof hagsand
e07fdb3089 Start of 7.1.0.PRE
Fixed memleak
2024-03-12 15:07:57 +01:00
Olof hagsand
28050f44f8 Clixon 7.0.0 2024-03-08 09:41:57 +01:00
Olof hagsand
6b8f7754b8 Fixed: [If services add duplicate entries, controller does not detect this](https://github.com/clicon/clixon-controller/issues/107)
Rename function `xml_yang_minmax_recurse()` -> `xml_yang_validate_minmax()`
2024-03-07 08:38:40 +01:00
Olof hagsand
520f8a9a42 Remove propriatary internal framing functions
Changed send/rcv API using NETCONF 10 and 11 suffixes
2024-02-28 13:38:32 +01:00
Olof hagsand
db11b5ef99 Changed framing between backend and frontend to RFC6242 "chunked-encoding" 2024-02-27 09:56:48 +01:00
Olof hagsand
9f73014500 Added yspec parameter to api_path_fmt2api_path()
Added "%k" as extra flag character to api-path-fmt
2024-02-26 13:18:26 +01:00
Olof hagsand
96f94114e2 Fixed: [Problems with diff of YANG lists ordered-by user](https://github.com/clicon/clixon/issues/496) 2024-02-23 22:08:15 +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
a8773fad82 Added us resolution to logs via stderr/stdout 2024-02-19 12:37:21 +01:00
Olof hagsand
4ee6b48abe Fixed: [show compare does not show correct diff while load merge xml](https://github.com/clicon/clixon-controller/issues/101)
Diff code did not check non-yang leaf/terminal values
2024-02-08 10:41:13 +01:00
Olof hagsand
833e748288 Fixed: [commit goes 2 times](https://github.com/clicon/clixon/issues/488) 2024-02-07 09:31:00 +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
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
f8de2b7c0a Optimized datastore access by ensuring REPORT_ALL in memory and EXPLICIT in file 2024-02-01 20:42:25 +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
3149d53564 C-API: Add error socket to clixon_proc_socket() 2024-01-31 14:36:40 +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
b89d5e2cde Fixed: [show compare/diff problems with sorted-by user](https://github.com/clicon/clixon/issues/482) 2024-01-24 09:45:28 +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
465a5999fe Changed function name: choice_case_get() -> yang_choice_case_get()
Rewrote yang_choice()
2024-01-17 13:06:56 +01:00
Olof hagsand
9e6557aad1 Fixed: [Choice and Leafref](https://github.com/clicon/clixon/issues/469) 2024-01-17 12:31:13 +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
04a548ad78 Fixed: [Problem deleting non-last list element if ordered-by user](https://github.com/clicon/clixon/issues/475) 2024-01-07 16:52:04 +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
798a9fbfcb Reworked exand/completion code for mountpoints
Fixed: [Tab completion mounted devices with lists](https://github.com/clicon/clixon-controller/issues/72)
2024-01-02 09:33:46 +01:00
Olof hagsand
0fff9d8ef5 Fixes after coverity analysis 2023-12-30 19:49:03 +01:00
Olof hagsand
7b58c1c562 Fixed: kill-session cleanup when client none existant, and for all db:s
Added cli_kill_session callback
2023-12-22 22:27:54 +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
261469be16 Feature: [Add support for -V option to give version](https://github.com/clicon/clixon/issues/472) 2023-12-14 23:10:51 +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
4d91ce0995 Fixed: [Using the characters '<' and '>' might cause an invalid diff](https://github.com/clicon/clixon-controller/issues/73) 2023-12-09 14:11:18 +01:00
Olof hagsand
574106125f Added reference count for shared yang-specs (schema mounts) 2023-12-06 13:48:41 +01:00
Olof hagsand
f64c9016a1 6.6.0.PRE 2023-12-06 13:45:52 +01:00
Olof hagsand
d85f7c0032 Clixon 6.5.0 2023-12-05 16:10:23 +01:00
Olof hagsand
054ffccb31 test:vagrant nginx fix, CHANGELOG 2023-12-05 15:04:01 +01:00
Olof hagsand
80a10b694c All clixon test utilities in util/ moved to separate repo: clicon/clixon-util 2023-12-02 17:11:16 +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
cafbe7d200 Docker: enable ssh tests
Test: restore tty after restconf start
2023-11-20 09:55:37 +01:00
Olof hagsand
aaab8a4920 Fixed: [NACM paths don't work for mounted YANG models](https://github.com/clicon/clixon-controller/issues/62) 2023-11-15 16:47:33 +01:00
Olof hagsand
2f88ef3ed6 Fixed: [cl:creator attribute must be persistent](https://github.com/clicon/clixon-controller/issues/54) 2023-11-03 14:06:41 +01:00
Olof hagsand
c703e89bc8 Moved and split install of main example config file 2023-11-02 17:25:11 +01:00
Olof hagsand
5bdad1870e New feature: [Customized NETCONF error message](https://github.com/clicon/clixon/issues/454)
* Added new callback `.ca_errmsg`
* Changed signature of `clicon_netconf_error()` and `netconf_err2cb()`
2023-10-26 14:59:51 +02:00