Olof hagsand
3be786c211
Misc formatting
2025-01-10 16:27:40 +01:00
Olof hagsand
c353c6dcab
Debug: Added PARSE debug flag
2024-05-15 13:51:18 +02:00
Olof hagsand
6ff1588397
Changed cl:ignore-compare to also include core diff algorithm
2024-02-09 16:18:47 +01:00
Olof hagsand
4ee6b48abe
Fixed: [show compare does not show correct diff while load merge xml]( https://github.com/clicon/clixon-controller/issues/101 )
...
Diff code did not check non-yang leaf/terminal values
2024-02-08 10:41:13 +01:00
Olof hagsand
9f592911f5
More fix problems with cl:ignore attribute for xml_diff2cbuf & co
2024-02-07 15:57:49 +01:00
Olof hagsand
391179730e
ADdded proper include files from previous withdefault patch
2024-01-26 10:08:13 +01:00
Olof hagsand
2c2398d23e
text diff ordered by user
2024-01-24 09:36:20 +01:00
Philip Prindeville
cf2e27b43d
Drop __FUNCTION__ from clixon_debug() calls
2024-01-11 17:29:37 +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
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
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
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
51ebbdf12f
* C-API: Added clicon_handle parameter to all xml_bind_* calls
2023-01-27 14:56:58 +01:00
Olof hagsand
56f4bb45cc
* Added PRETTYPRINT_INDENT compile-time option controlling indentation level for XML,JSON and TEXT
...
* Default value is `3`
2022-10-31 14:20:14 +01:00
Olof hagsand
d84c529ff1
[Code formatting: Change indentation style to space]( https://github.com/clicon/clixon/issues/379 )
...
* Applies to all c/h/y/l/sh files and .editorconfig
2022-10-27 14:21:17 +02:00
Olof hagsand
bed6d3c739
TEXT file format: Keep backward-compatible non-top-level prefix with compile-time option TEXT_SYNTAX_NOPREFIX
...
See https://github.com/clicon/clixon/issues/345
2022-07-26 18:10:27 +02:00
Olof hagsand
4514f2a538
Fixed: ["autocli:hide-show" extension cause bug in xmldb_put method #343 ]( https://github.com/clicon/clixon/issues/343 )
...
As a side-effect, added extra "autocliext" parameter to:
- clixon_xml2file()
- clixon_json2file()
- clixon_json2cbuf()
- clixon_txt2file()
2022-07-22 16:06:28 +02:00
Olof hagsand
38027c8331
Added XPATH function boolean()
...
* This caused problem for new NTP YANG in RFC 9249
Fixed segv on anydata for http parser
2022-07-08 15:11:56 +02:00
Olof hagsand
b1cb774c9d
TEXT output/parser: fix space-separated leaf/leaf-lists
2022-06-07 13:23:05 +02:00
Olof hagsand
01b38c6645
Fix text parser leaf-list / leaf succession
...
See https://github.com/clicon/clixon/issues/324
2022-06-06 15:40:07 +02:00
Olof hagsand
4f9ed02a46
Text syntax parser/loader, fixed double leaf-list issue
...
Test: extended test_cli with format 4x tests
2022-06-03 14:03:01 +02:00
Olof hagsand
b6bfcb69f7
Text syntax parser/loader
...
Added support for list x y;
Uses a mechanism to parse as unknown XML body and post-parsing replace with list keys
Fixed example and test to work with new TEXT syntax
2022-06-02 19:28:49 +02:00
Olof hagsand
0c79298e76
Changed C-API for xml translation/print the internal cxobj tree data structure to other formats
...
New API is as follows:
* `clixon_xml2file()` - Print internal tree as XML to file
* `clixon_xml2cbuf()` - Print internal tree as XML to buffer
* `clixon_json2file()` - Print internal tree as JSON to file
* `clixon_json2cbuf()` - Print internal tree as JSON to buffer
* `clixon_cli2file()` - Print internal tree as CLI format to file
* `clixon_txt2file()` - Print internal tree as text format to file
2022-06-01 20:02:27 +02:00
Olof hagsand
87719c623c
Text syntax parser/loader
...
Leaf-list syntax using: "id [ leaf leaf ...]" syntax for output and input
Variables using \n\r in text
Added clixon_xvec_merge()
2022-06-01 11:08:19 +02:00
Olof hagsand
820ed5686b
Text syntax parser/loader
...
Added string quites around text containing spaces
Added support for colon in text
2022-06-01 11:07:55 +02:00
Olof hagsand
2ece0b8f51
* Experimental text syntax parser/loader
...
* Added new text syntax parsing and loading from CLI
* Unified text output functions to `xml2txt` and moved to clixon_text_syntax.[ch]
* The following are removed: `cli_xml2txt` and `xml2txt_cb`
* Text output format changed:
* Namespace/modulename added to top-level
* See [Support performant load_config_file(...) for TEXT format](https://github.com/clicon/clixon/issues/324 )
2022-06-01 11:07:15 +02:00