Olof hagsand
3be786c211
Misc formatting
2025-01-10 16:27:40 +01:00
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
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
69eaf98913
Remove extra lines
2024-12-05 17:35:05 +01:00
Olof hagsand
3332dfef20
Fixed: [Autocli: error when empty YANG group and grouping-treeref=true]( https://github.com/clicon/clixon/issues/579 )
2024-12-05 16:43:11 +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
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
f0bd103e79
Added new DOMAIN level in YANG spec structure
2024-10-06 10:51:26 +02:00
Olof hagsand
f0f3ed0dff
Optimize autocli memory: Late evaluation of uses/grouping
2024-09-28 18:25:03 +02:00
Olof hagsand
43bfc82942
Break out init of orig-ptr to yang_start() to be made after options
2024-09-28 18:04:04 +02:00
Olof hagsand
8901d00e47
Reworked cli show mem to yang domains
2024-09-26 13:36:14 +02:00
Olof hagsand
c06945ec37
Set domain as yang-spec name
2024-09-25 19:03:26 +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
dfe5c1bac1
Refactoring of schema mount-points
...
Add new top-level `Y_MOUNTS` and add top-level yangs and mountpoints in yspecs
2024-08-29 17:24:44 +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
1709537701
Replaced clixon_get_logflags() with clixon_logflags_get()
...
Added `clixon_logflags_set()`
2024-08-16 10:31:52 +02:00
Olof hagsand
c08dac2e5d
YANG optimization: move "when" and "mymodule" to external maps
2024-08-11 14:07:33 +02:00
Olof hagsand
781c9d9d27
YANG optimize, add orig pointer for derived trees
...
Skip some yang objects in derived trees
Add function to remove USES in augment/grouping trees
2024-08-09 12:03:14 +02:00
Olof hagsand
af29a0f974
Added YANG_SPEC_LINENR compile-time option
2024-07-31 14:33:31 +02:00
Olof hagsand
aa4feee03e
New: [CLI simple alias]( https://github.com/clicon/cligen/issues/112 )
2024-07-24 17:14:38 +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
3e07a1d279
configure version major/minor derived from git
...
Remove compile-time COMPAT_6_5 and IDENTITYREF_KLUDGE
2024-07-03 12:55:02 +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
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
Хроменок Роман Владимирович
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
Хроменок Роман Владимирович
de820417d1
Added api
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
0234ed94bc
Added CLICON_LOG_DESTINATION and CLICON_LOG_FILE for al applications
2024-06-19 12:46:09 +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
e2140aed10
Formatting and debugs
2024-05-28 18:50:07 +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
4b33841858
cli_auto_up: Partly fix handling of mountpoints
...
The cli_auto_up command right now does not properly handle
mountpoints.
Fix the case when going up one level inside of a mounted
module.
Note that this does not yet fix the case where the current level
is the top-level of the mounted module. In that case the up command
should switch to the presence container that holds the mounted
module. Instead it switches all the way up to the topmost level, so
it has the same effect as the top command.
2024-05-16 12:09:55 +02:00