Olof hagsand
c53877eb78
YANG namespace sanity check
...
YANG shared fix for empty revisions
2024-06-29 10:27:42 +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
5b8828c530
YANG ref count for shared fixed
2024-06-22 21:19:52 +02:00
Olof hagsand
5351ac0ffc
Test: vagrant update
2024-06-22 16:30:27 +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
Хроменок Роман Владимирович
4632d13559
an empty line in the examples has been deleted
2024-06-20 14:03:38 +02:00
Хроменок Роман Владимирович
7253b8a07a
edit format in operator else
2024-06-20 14:03:38 +02:00
Хроменок Роман Владимирович
1f2313dadb
remove run functions in example.cli
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
Хроменок Роман Владимирович
a6fb392365
Added examples of running scripts, and an example with an error
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
43325ca2f8
Fixed: [Invalid api-path errors thrown when displayin qfx family device conf in CLI]( https://github.com/clicon/clixon-controller/issues/126 )
2024-06-19 14:49:22 +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
Corey Minyard
ec36f57c8d
plugin: Consolidate plugin initialization
...
There was duplicate code in the the plugins, consolidate allocating and
adding a plugin into one function and call it from elsewhere.
Signed-off-by: Corey Minyard <minyard@acm.org>
2024-06-11 16:45:49 +02:00
Corey Minyard
a84547ed0a
plugin: Remove pointless if statement
...
cp has to be valid here, no need to check it.
Signed-off-by: Corey Minyard <minyard@acm.org>
2024-06-11 16:45:49 +02:00
Corey Minyard
c94ca6179f
plugin: Always dlclose() a module with a handle
...
Even if it doesn't have a ca_exit function. Otherwise it will leave
modules lying around.
Signed-off-by: Corey Minyard <minyard@acm.org>
2024-06-11 16:45:49 +02:00
Olof hagsand
54ba56a41e
YANG schema shared fix
...
YANG_SCHEMA_MOUNT_YANG_LIB_FORCE caused equality to fail
2024-06-11 11:35:31 +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
3579d98243
Refactoring of yang schema mount code
2024-06-02 12:16:00 +02:00
Olof hagsand
80d03fb5b0
test: adding correct x509 v3 CA cert
2024-05-31 08:48:00 +02:00
Olof hagsand
8098fb031f
Test: check openssl 3.3.0 for x509 v1
2024-05-28 19:44:38 +02:00
Olof hagsand
e2140aed10
Formatting and debugs
2024-05-28 18:50:07 +02:00
Olof hagsand
c377a28d56
Use x509 v1 certs for test use in openssl 3.3
...
Switch back to alpine 3.20
2024-05-28 17:29:27 +02:00
Olof hagsand
a194c049c7
Fix clixon test container to alpine 3.19
...
Affects make test and action regressions
Some issue with alpine 3.20, probably openssl 3.3 enforcing cert usage fields
2024-05-28 16:40:35 +02:00
Olof hagsand
b8599558d4
Test: disable ssl client cert tests (temporarily)
2024-05-27 14:55:05 +02:00
Olof hagsand
148982d3a9
Fix NETCONF filtering patch
2024-05-27 14:32:18 +02:00
Olof hagsand
1412b416f6
Filter duplicate NETCONF requests on the same object causing memory fault
2024-05-27 14:09:04 +02:00
Olof hagsand
1904805103
Fixed: [Error message from CLI if terminal is modified]( https://github.com/clicon/clixon-controller/issues/122 )
2024-05-22 16:48:57 +02:00
Olof Hagsand
d5d23dd90e
Fix shared yang code
2024-05-22 14:54:09 +02:00
Colin Baumgarten
d29b7e574c
xml_merge1(): Allow merging trees with nodes below mountpoints
...
xml_merge1() fails right now when merging trees which have data
below mountpoints with an error message like this:
XML node %s/%s has no corresponding yang specification (Invalid XML or wrong Yang spec?
This is because xml_merge1() does not handle mountpoints. Adjust
it accordingly.
Note that this was encountered when generating the state of a a yang
module that has both state and config below a mountpoint. In that case
netconf_trymerge() will be called to merge state and config and will
trigger the problem in xml_merge1().
2024-05-22 14:10:37 +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
c8a8197e92
Github actions: added a fcgi restconf test
2024-05-19 18:23:50 +02:00
Olof hagsand
1336a4ccfb
RESTCONF notification for native mode
2024-05-19 17:44:24 +02:00
Olof hagsand
7a842846db
Formatting
2024-05-19 10:04:31 +02:00
Olof hagsand
37e9429ec8
Optimization of yang schema mount: share yang-specs if equal
2024-05-19 10:04:31 +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