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
aa4feee03e
New: [CLI simple alias]( https://github.com/clicon/cligen/issues/112 )
2024-07-24 17:14:38 +02:00
Kristofer Hallin
f42a5ba87e
Changed indentation for documentation of cli_start_program.
2024-07-02 15:00:12 +02:00
Kristofer Hallin
703114f64b
Make cli_start_program handle arguments to scripts.
2024-07-02 15:00:12 +02:00
Хроменок Роман Владимирович
1f118ecacc
add comment for function
2024-06-20 14:03:38 +02:00
Хроменок Роман Владимирович
7253b8a07a
edit format in operator else
2024-06-20 14:03:38 +02:00
Хроменок Роман Владимирович
0c6d9fc51c
fixed formatting for the cli_start_program function
2024-06-20 14:03:38 +02:00
Хроменок Роман Владимирович
d9f7669b9e
add find work dir in path script
2024-06-20 14:03:38 +02:00
Хроменок Роман Владимирович
be7c5eb7ca
change getpwuid on getpwuid_r
...
remove exit()
edit chdir in chold process
2024-06-20 14:03:38 +02:00
Хроменок Роман Владимирович
c831300a14
The description is aligned with the function
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
Хроменок Роман Владимирович
b81e18141d
Refactoring has been performed
...
Goto added
Added margins
Added comments
2024-06-20 14:03:38 +02:00
Хроменок Роман Владимирович
cc68426929
Added a feature that allows you to run python scripts from the cli without bash
2024-06-20 14:03:38 +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
Colin Baumgarten
2142a4fd96
cli_dbxml(): Fix handling of mountpoints
...
The function has code to handle mountpoints, however there is
a logic error that prevents that code from ever being run.
Fix that.
2024-05-07 12:25:43 +02:00
Olof hagsand
1be158b7be
NACM: Improved error message when no username included, and added username
2024-04-14 12:15:01 +02:00
Olof hagsand
87e49ca37a
Updated cli_kill_session
2024-04-12 16:17:45 +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
a1badc312e
Fixes after coverity static analysis
2024-03-03 17:05:36 +01:00
Olof hagsand
4138f390d4
Internal framing: fcgi error
...
CLI continue error
enable msg recv interrupt
2024-02-28 20:38:33 +01:00
Olof hagsand
520f8a9a42
Remove propriatary internal framing functions
...
Changed send/rcv API using NETCONF 10 and 11 suffixes
2024-02-28 13:38:32 +01: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
4e3bd6fbdd
Symbolic and combined debug names in cmd-line of all applications
...
New debug levels: BACKEND, CLI, NETCONF,RESTCONF, SNMP, STREAM
2024-02-02 11:54:12 +01:00
Philip Prindeville
b258fc625c
Missed a few instances of __FUNCTION__ in clixon_debug*()
2024-01-12 11:10:52 +01:00
Philip Prindeville
0ec1e0a686
Discriminate APP debugging
2024-01-10 20:06:38 +01:00
Philip Prindeville
af77da38bb
Discriminate XPath debugging
2024-01-10 20:06:38 +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
0fff9d8ef5
Fixes after coverity analysis
2023-12-30 19:49:03 +01:00
Olof hagsand
7b58c1c562
Fixed: kill-session cleanup when client none existant, and for all db:s
...
Added cli_kill_session callback
2023-12-22 22:27:54 +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
01fbf764e7
more clixon-util rm effects
2023-12-02 17:46:43 +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
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
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
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
9091582087
Low-level message functions added descr argument for better logging C-API change
2023-09-12 10:08:32 +02:00
Olof hagsand
fc73493881
Docs update, externalized cvec_concat_cb, example mem-leak
2023-08-15 20:45:15 +02:00
Olof hagsand
2485528515
cli: fixed callback append of empty prefix
2023-07-29 13:29:35 +02:00
Olof hagsand
7577245077
Changes due to CLIgen removal of expand-prepend code
2023-07-28 16:35:12 +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
080eef0278
C-API: Added cli_process_control(), added uid to cli_process_control()
2023-06-01 17:50:23 +02:00
Olof hagsand
25cc14c1a2
Minor rearrangement for exporting cli fns
2023-05-12 11:03:36 +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
bd5b51d860
CLI edit modes and mountpoints
2023-05-03 17:52:10 +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
45d8e5b6ce
C-API xmldb_validate() removed. compare_db_names() added.
2023-04-09 21:13:12 +02:00