Olof hagsand
2790d243e1
CLI: Added meta format pipe-xml-default for cli commands inside pipes
2024-12-09 22:52:23 +01:00
Olof hagsand
c24c38dbb5
CLI generic pipe callbacks
2024-12-06 11:02:53 +01:00
Olof hagsand
6ce1df2e5e
Fixed: [Expansion removes the double quote]( https://github.com/clicon/clixon/issues/524 )
...
Add escaping in expand_dbvar instead of automatic in cligen
2024-11-08 11:49:53 +01:00
Olof hagsand
69b65ad13d
System-only-config
...
* Fix startup diff
* Add system-only to running on startup
* JSON support:
2024-11-04 15:55:23 +01:00
Olof hagsand
54a8f51bfd
Fixed show mem yspec vs ydomain issue
2024-10-28 10:39:04 +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
b9ff2d083a
YANG domain/spec support
...
cli show mem improvement
2024-10-06 20:07:08 +02:00
Olof hagsand
5ebc5a2219
Re-added shared yang mounts
...
YANG: de-dperecated CLICON_YANG_SCHEMA_MOUNT_SHARE
2024-10-06 15:46:15 +02:00
Olof hagsand
8901d00e47
Reworked cli show mem to yang domains
2024-09-26 13:36:14 +02:00
Olof hagsand
19c11eabb7
YANG mount refactoring: remove set functions
2024-09-01 16:45:39 +02:00
Olof hagsand
911594ead1
Fixed show mem total yang output
...
Fixed log message for mount error
2024-08-29 17:55:28 +02:00
Olof hagsand
4b9ee6740b
C-API changes: Replace yn_each with yn_iter, add keyw argument to yang_stats()
2024-07-04 18:27:14 +02:00
Olof hagsand
68bf76201c
CLI show mem: show as MiB/GiB etc
2024-06-29 10:29:32 +02:00
Olof hagsand
8a2217ff6d
Improved show memory
2024-06-20 21:58:35 +02:00
Olof hagsand
ef89561215
CLI: improved show memory command
2024-06-08 14:51:36 +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
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
Colin Baumgarten
60fdb65ee0
cli_auto_edit: Fix data below mountpoint cannot be edited
...
Without this fix, every edit affects the mountpoint destination
module directly instead of the same module inside of its mountpoint
container.
2024-05-07 12:25:43 +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
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
01938b7a64
Generalized template and variable substitution functions
...
Modified api-path-fmt to uri-encoded only =restval
2024-02-22 12:31:48 +01:00
Olof hagsand
01327fc8f0
Added cli expand_yang() function
2024-02-18 11:21:31 +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
a94756c799
expand_augment
2024-01-09 20:06:20 +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
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
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
Olof hagsand
856c9058f8
Fixed: [Does clixon cli support autocompletion for leafrefs pointed to another module?]( https://github.com/clicon/clixon/issues/455 )
2023-10-05 07:52:31 -05: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
4730082d7b
C-API: Add fromroot parameter to cli_show_common()
2023-09-12 21:57:47 +02:00
Olof hagsand
b8f4dbd8d1
Test: more test cli multiple pipes
2023-09-04 14:04:34 +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
f067968535
Clarified clixon_cli command-line: clixon_cli [options] [commands] [-- extra-options]
2023-08-07 18:15:49 +02:00
Olof hagsand
7577245077
Changes due to CLIgen removal of expand-prepend code
2023-07-28 16:35:12 +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
Renato Botelho do Couto
a773384ccc
cli_show_option_bool: Rename bool -> result
...
bool will conflict with boolean type if stdbool.h is included. No
functional changes intended.
2023-07-07 15:09:12 +02:00
Olof hagsand
080eef0278
C-API: Added cli_process_control(), added uid to cli_process_control()
2023-06-01 17:50:23 +02:00
Olof hagsand
307a992f36
* Added output function to JSON output:
...
* `xml2json_vec(...,skiptop)` --> `xml2json_vec(..., cligen_output, skiptop)`
2023-05-17 16:25:35 +02:00
Olof hagsand
ad07eb3adf
API change: remove yang2cli_yspec last argument printgen, removed obsolete: `cli_auto_show()
2023-05-11 16:57:19 +02:00
Olof hagsand
9550ba808b
cli show for mtpoint: increased range for arg check
2023-05-08 14:34:35 +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
bd5b51d860
CLI edit modes and mountpoints
2023-05-03 17:52:10 +02:00
Olof hagsand
05da8ef3c1
Add mount-point aware code to cli_auto_show
...
Revert patch in xpath2canonical for mountpoints
2023-04-23 17:54:02 +02:00
Olof hagsand
6335f810d3
C-API: clixon_xml2file and clixon_xml2cbuf added prefix argument
...
Added in-mem xml diff function: `xml_tree_diff_print`
2023-04-12 10:44:58 +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
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