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
558a0df1f3
Fixed proper restore of cttl-C in msg rcv
...
Rename and move plugin_context_check to clixon_resource_check
2023-12-21 15:00:12 +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
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
c46872c3fd
Fix mount memory leakage, Add YANG_FLAG_MOUNTPOINT
2023-11-29 18:59:13 +01:00
Olof hagsand
be3001acf5
XML: Add XML_FLAG_ANYDATA to mimic an xml node to be ANYDATA
2023-11-23 18:44:17 +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
2e6d9167f2
Mount-point support for restconf
2023-11-15 12:12:42 +01:00
Olof hagsand
597cbe882b
Yang schema mount fix: canonical paths and register on conatiner instead of unknown
2023-11-14 19:35:17 +01:00
Olof hagsand
62348fc9c7
C-style update: Unified comment, retvals in order, remove trailing spaces
...
Changed function name for `clicon_debug` functions
2023-10-23 09:58:13 +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
Olof hagsand
bee30a4ea0
Example: added -m/-M options for testing mount-points
2023-08-07 18:12:53 +02:00
Olof hagsand
05c082b202
init variables, vagrant with-cligen
2023-07-28 12:49:51 +02:00
Olof hagsand
b6116261a3
* Restructured and extended <stats> rpc to schema mountpoints
...
* New revision of clixon-lib.yang
* CLI: Added `show statistics` example code for backend and CLI memory stats
2023-05-05 17:54:10 +02:00
Olof hagsand
da2edceb7e
* Added new functions: xml_tree_equal and xpath2xml
...
* RFC 8528 yang schema mount-points:
* Made expand_dbvar and cli_dbxml mountpoint-aware (RFC 8528)
* autocli supportgenerate
* Made api_path2xml and xml2api_path mount-point-aware
* Temporar fix in clixon_custom.h: XPATH_CANONICAL_SKIP_CHECK
* `xml2xpath()`: Added `apostrophe` as 4th parameter, default 0
* removed extra assert.h includes
2023-03-23 22:16:33 +01:00
Olof hagsand
1e136bc9df
Added clicon_data_init API, and yang_mount_get API
...
Moved dynamic options from options to data API
2023-03-12 21:04:23 +01:00
Olof hagsand
48a7eac096
yang load add test to not parse files if not already loaded
2023-02-21 12:02:40 +01:00
Olof hagsand
585e725aec
Yang schema mount: replaced config --enable-yang-schame-mount with runtime option CLICON_YANG_SCHEMA_MOUNT
...
Added config and validation-level as parameters to ca_yang_mount
2023-02-17 16:39:39 +01:00
Olof Hagsand
fcf9a8b0b0
C-API: Exposed diff function
...
Test: double leaf validate test
2023-02-13 20:23:18 +01:00
Olof hagsand
8f7ae33262
Yang schema mount: repaired yanglib statedata mountpoint
...
Example: patch to fix "dual xpath" issue
2023-02-08 15:00:07 +01:00
Olof Hagsand
a5220805b1
New plugin callback: ca_yang_patch - for modifying existing YANG modules
...
C-API: Added `spec` parameter to `xml2xpath()`
2023-02-05 14:14:57 +01:00
Olof Hagsand
034ab632f1
* C-API: Added vlev validate level parameter to candidate_commit
...
* `vlev` : validate level
2023-01-29 20:02:56 +01:00
Olof Hagsand
a8e13047fc
* YANG schema mount RFC 8528, state data
2023-01-27 15:11:08 +01:00
Olof Hagsand
b3dcee9639
* YANG schema mount RFC 8528, Initial commit (work in progress)
...
* Keep track of YANG unknowns with ys_cvec of EXTENSION
* C-API: Init ys_cvec to NULL, added yang_cvec_add() and adjusted code to use it
2023-01-20 16:16:02 +01:00