Commit graph

387 commits

Author SHA1 Message Date
Olof hagsand
b1d969e42b Moved callbacks starting programs from libclixon_cli to example code
The functions are: `cli_start_shell` and `cli_start_program`
If you need them, add them to your application plugin code instead
2024-12-10 10:36:39 +01:00
Olof hagsand
30f9e174fa Add ping to cli example, misc debug 2024-12-05 15:37:09 +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
b7b1bf7aa4 System-only config, fixed startup diff 2024-11-19 11:52:54 +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
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
0a37cf31ab New version string on the form: 7.1.0-1+11+g2b25294 2024-10-18 17:33:25 +02:00
Olof hagsand
3cad374f33 Formatting and documentation 2024-10-16 12:39:45 +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
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
05c881dc39 List pagination: Added where and direction parameter for configured data 2024-07-16 15:33:09 +02:00
Olof hagsand
5351ac0ffc Test: vagrant update 2024-06-22 16:30:27 +02:00
Хроменок Роман Владимирович
4632d13559 an empty line in the examples has been deleted 2024-06-20 14:03:38 +02:00
Хроменок Роман Владимирович
1f2313dadb remove run functions in example.cli 2024-06-20 14:03:38 +02:00
Хроменок Роман Владимирович
20750cb616 Added examples to the cli
The function has been renamed and has become more universal
Added error checking (incorrect input)
2024-06-20 14:03:38 +02:00
Хроменок Роман Владимирович
a6fb392365 Added examples of running scripts, and an example with an error 2024-06-20 14:03:38 +02:00
Olof hagsand
8d05432e98 CLI: Improved and renamed show statistics -> show memory command
Fixed shared yang-spec reference count
2024-06-07 13:57:41 +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
7a842846db Formatting 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
ca701b0c1a Changed intermediate version numbers to be git-style, eg 7.0.0-39 instead of 7.1.0-PRE
* Changed datastore modstate to be last in file, as prior to 7.0
2024-05-08 16:51:45 +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
bd290e4594 Fixed: Fail on return errors when reading from datastore 2024-04-24 13:48:06 +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
e55e05353f CLI pipe save function 2024-04-09 15:17:06 +02:00
Olof hagsand
f9faf1039a Example: added cli pipe 2024-04-09 14:23:36 +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
ea1efe8845 Fix static link problem in example 2024-02-17 22:21:04 +01:00
Olof hagsand
ff171afd65 Added debug level INIT 2024-02-17 22:16:56 +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
Philip Prindeville
cf2e27b43d Drop __FUNCTION__ from clixon_debug() calls 2024-01-11 17:29:37 +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
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
7713e79dc2 Netconf error callback resilient to prefixes
Reformat json code
2023-12-14 10:08:34 +01:00
Olof hagsand
2e6d9167f2 Mount-point support for restconf 2023-11-15 12:12:42 +01:00
Olof hagsand
c703e89bc8 Moved and split install of main example config file 2023-11-02 17:25:11 +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
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
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
951aa71d56 Make /var directory tree owned by $CLICON_GROUP 2023-10-03 23:41:47 +02:00
Philip Prindeville
3a2ffd4233 Run tests as appropriate group
Need to add "groupadd" and "groupdel" for Alpine. See:

https://github.com/gliderlabs/docker-alpine/issues/326
2023-10-03 23:41:47 +02:00
Philip Prindeville
5919ba6c6a Add autoconf handling of clixon user/group in config files 2023-10-03 23:41:47 +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
0e81e8137b [YANG error when poking on EOS configuration](https://github.com/clicon/clixon-controller/issues/26) 2023-08-21 10:57:27 +02:00
Olof hagsand
fc73493881 Docs update, externalized cvec_concat_cb, example mem-leak 2023-08-15 20:45:15 +02:00
Olof hagsand
bee30a4ea0 Example: added -m/-M options for testing mount-points 2023-08-07 18:12:53 +02:00
Olof hagsand
b33603107d Output pipe functionality
Based on output pipe code in CLIgen
Clixon adaptions include `CLICON_PIPETREE=` variable and a new cli_pipe.c callback file
2023-07-03 15:14:11 +02:00