Commit graph

1504 commits

Author SHA1 Message Date
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
Philip Prindeville
79fac840ba Make indentation consistent 2023-08-20 13:00:51 +02:00
Olof hagsand
fc73493881 Docs update, externalized cvec_concat_cb, example mem-leak 2023-08-15 20:45:15 +02:00
Philip Prindeville
f56f3bef40 Properly ignore skipped nodes 2023-08-15 18:21:49 +02:00
Philip Prindeville
dc0f740a04 Avoid copying timeval onto stack 2023-08-15 18:02:14 +02:00
Olof hagsand
3b636b51f0 Fixed: [Openconfig configuration on Juniper MX does not work](https://github.com/clicon/clixon-controller/issues/20) 2023-08-11 17:12:11 +02:00
Olof hagsand
cdc305ed2f C-style comments 2023-08-09 18:47:40 +02:00
Olof hagsand
bee30a4ea0 Example: added -m/-M options for testing mount-points 2023-08-07 18:12:53 +02:00
Olof hagsand
836ec5dde5 Renamed custom constant to better reflect usage, fixed some vagrant problems 2023-07-28 16:56:08 +02:00
Olof hagsand
05c082b202 init variables, vagrant with-cligen 2023-07-28 12:49:51 +02:00
Olof hagsand
f526d5b7a0 Autocli optimization feature for generating smaller CLISPECs for large YANGs using treerefs
New `grouping-treeref` option added to clixon-autocli.yang
Default is disabled, set to true to generate smaller memory footprint of clixon_cl
Add prefix "mtpoint:" to cli api-paths to identify change of yang schemas
2023-07-23 15:21:59 +02:00
Olof hagsand
d48442960e Changed YANG uses/grouping to keep uses statement and flag it with YANG_FLAG_USES_EXP
Updated yang code headers
2023-07-19 10:52:29 +02:00