Commit graph

1515 commits

Author SHA1 Message Date
Philip Prindeville
762c9fcbd8 Fix references to undefined types 2024-01-10 20:06:38 +01:00
Olof hagsand
907da6ab9a Revert premature default optimize fix 2024-01-09 10:59:34 +01:00
Olof hagsand
7b5dc3d24c Upgrade creator-attr code 2024-01-09 10:52:32 +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
cb3e74971d Partial fix for https://github.com/clicon/clixon/issues/475
Remove sanity check for insert/search which does not hold for NETCONF attributes
2024-01-06 18:27:21 +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
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
f25a77734e More updates for Error/Log/Debug API changes 2023-12-18 17:19:14 +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
2f81a086c8 Fix for the previous netconf_err2cb commit 2023-12-14 11:24:53 +01:00
Olof hagsand
7713e79dc2 Netconf error callback resilient to prefixes
Reformat json code
2023-12-14 10:08:34 +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
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
c46872c3fd Fix mount memory leakage, Add YANG_FLAG_MOUNTPOINT 2023-11-29 18:59:13 +01:00
Olof hagsand
81b4fdb274 Added SSHD_BIN in configure.ac 2023-11-28 17:02:13 +01:00
Philip Prindeville
b9ed302de1 Remove hardcoded paths to commands, configs, etc. in source 2023-11-28 16: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
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
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
e9c5287c36 Debug: improved debug level 2 with socket-description, also for notification 2023-11-01 13:48:41 +01:00
Olof hagsand
978586a493 Fixed customized errors: fcgi and snmp 2023-10-26 15:32:25 +02: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
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
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
Philip Prindeville
6e314dd96f Log if restconf started w/o configuration 2023-10-21 18:29:23 +02:00
Philip Prindeville
4a3fef4946 Always log execs 2023-10-21 18:29:23 +02:00
Philip Prindeville
55f3e396e9 Add logging and fix memory leak 2023-10-21 18:29:23 +02:00
Philip Prindeville
959e060995 Use clicon_err() consistently and drop perror() 2023-10-21 18:29:23 +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
0a72432693 Fixed: [commit d 2023-10-04 07:27:49 -05:00
Olof hagsand
794a17c2bb Valgrind fixes 2023-09-28 17:31:14 +02:00
Olof hagsand
512d085f38 Compile errors for woth-restconf=fcgi. Added CI for compiling fcgi 2023-09-26 22:50:06 +02:00
Olof hagsand
2603b6f139 CLI show compare example function
Improved diff algorithm for XML and TEXT/curly, replaced UNIX diff with structural in-mem algorithm
Fixed: ["show compare" and "show compare | display cli" differs #23](https://github.com/clicon/clixon-controller/issues/23)
Changed parameters of example clispec function `compare_dbs()`
Added show2cbuf functions for TEXT/CLI
Renamed clixon_txt2file to clixon_text2file
2023-09-22 10:42:00 +02:00
Olof hagsand
45f41e3e4d Fixed: [JSON backslash string decoding/encoding not correct](https://github.com/clicon/clixon/issues/453)
Added unicode BMP support for JSON strings
Test: encoding/decoding tests for UTF-8
2023-09-19 12:28:58 +02:00
Olof hagsand
1a43a32770 Improved performance of mountpoint show config 2023-09-16 21:59:23 +02:00
Olof hagsand
9091582087 Low-level message functions added descr argument for better logging C-API change 2023-09-12 10:08:32 +02:00
Olof hagsand
3b08653eb4 Added: [Feature request: node's alias for CLI](https://github.com/clicon/clixon/issues/434)
New `clixon-autocli@2023-09-01.yang` revision
Misc typos
2023-08-31 18:00:29 +02:00
Olof hagsand
a7ef2c4f12 Rewrote parsing of extra config-files to work recursively over structured data
Fixed that modified config variables were not properly overwritten in XML
Added `pretty` parameter to clicon_options_dump
Added testcases for recursive and structure extra config files
2023-08-23 11:10:24 +02:00
Olof hagsand
c101799e74 New command-line option for dumping configuration options for all clixon applications after load
Removed -s dump
2023-08-22 12:41:36 +02:00
Olof hagsand
0e81e8137b [YANG error when poking on EOS configuration](https://github.com/clicon/clixon-controller/issues/26) 2023-08-21 10:57:27 +02:00
Philip Prindeville
d1b8dcdf1f Add -s dump-xml mode 2023-08-20 13:00:51 +02:00