Commit graph

1318 commits

Author SHA1 Message Date
Kristofer Hallin
f0eadc6e32 Fixed: [HOST_VENDOR must be defined before we use it](https://github.com/clicon/clixon/issues/541) 2024-08-20 09:37:54 +02:00
Kristofer Hallin
3b45cf9f4d Fixed: [Handle missing SOCK_NONBLOCK on MacOS](https://github.com/clicon/clixon/issues/540) 2024-08-20 09:37:54 +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
Mico Micic
a2fe24937b Set pointer to NULL after free 2024-08-01 06:51:28 +02:00
Mico Micic
1a248b75e5 Fix memory leak 2024-08-01 06:51:28 +02:00
Mico Micic
8ee9b82152 Fix code formatting and naming 2024-08-01 06:51:28 +02:00
Mico Micic
48a15a87f1 Fix missing include 2024-08-01 06:51:28 +02:00
Mico Micic
4920b9d32b Add support for snmp v2 traps 2024-08-01 06:51:28 +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
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
36f3c95768 List-pagination sort-by parameter 2024-07-11 22:45:15 +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
9a553bdcaa Re-add option CLICON_NETCONF_DUPLICATE_ALLOW 2024-06-24 08:40:36 +02:00
Olof hagsand
c2841d6e40 Various memory and file resource cleanup after valgrind tests 2024-06-23 18:46:44 +02:00
Olof hagsand
78cd42c15d Test: mem.sh rm files, rm commit tests from datastore_multi 2024-06-23 10:49:13 +02:00
Olof hagsand
a80c9b0f8e Fix: wrong typedef 2024-06-20 21:58:35 +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
Corey Minyard
26062d7003 backend: Consolidate common code in plugin callbacks
There was a bunch of repeated code in the calls to the transaction
callbacks.  Consolidate it all in one function and call that from the
various transaction handling functions.

Signed-off-by: Corey Minyard <minyard@acm.org>
2024-06-11 16:45:49 +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
25e1bade8f RESTCONF notification for HTTP/2 native mode 2024-06-06 17:04:53 +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
Olof hagsand
1336a4ccfb RESTCONF notification for native mode 2024-05-19 17:44:24 +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
Olof hagsand
c353c6dcab Debug: Added PARSE debug flag 2024-05-15 13:51:18 +02:00
Olof hagsand
03a9c03b1c Fixed: backend exit when receiving invalid NETCONF get select XPath
Added XML encoding to XPaths in `select` attribute
2024-05-15 13:44:12 +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
2b2a2ec1ad Restconf native stream support 2024-05-13 08:29:48 +02:00
Olof hagsand
488a532dec Log: remove trailing \n, added log description 2024-05-09 17:00:01 +02:00