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
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
3579d98243
Refactoring of yang schema mount code
2024-06-02 12:16:00 +02:00
Olof hagsand
e2140aed10
Formatting and debugs
2024-05-28 18:50:07 +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
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
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
488a532dec
Log: remove trailing \n, added log description
2024-05-09 17:00:01 +02:00
Olof hagsand
9738345f82
Optimize of multi-db write
2024-05-09 12:18:35 +02:00
Olof hagsand
ca701b0c1a
Changed intermediate version numbers to be git-style, eg 7.0.0-39 instead of 7.1.0-PRE
...
* Changed datastore modstate to be last in file, as prior to 7.0
2024-05-08 16:51:45 +02:00
Olof hagsand
8ebfdb8168
Changed datastore modstate to be last in file, as prior to 7.0
2024-05-08 14:47:44 +02:00
Olof hagsand
b1209aac67
Multi-db: Moved top-level datastore from (eg) running_db to running.d/0.xml
2024-05-08 09:40:27 +02:00
Olof hagsand
fcdfbd23cc
Re-optimized yang cardinality
...
Misc rearrangements
2024-05-02 13:34:46 +02:00
Olof hagsand
f6993de7eb
Optimization of cardinality
2024-04-28 23:13:10 +02:00
Olof hagsand
c57188992b
Optimize get autocli config
2024-04-28 19:38:17 +02:00
Olof hagsand
7e1a00669c
Event priority. Backend socket has higher prio.
2024-04-25 14:58:41 +02:00
Olof hagsand
f511cb0030
Split config into multiple sub-files on mount-point boundaries and dont write clean subfiles
...
Added CLICON_XMLDB_MULTI option, added cl:xmldb-split extension
2024-04-25 14:58:14 +02:00
Olof hagsand
bd290e4594
Fixed: Fail on return errors when reading from datastore
2024-04-24 13:48:06 +02:00
Olof hagsand
aba5c68fe2
Move format code to options and cleanup
2024-04-16 12:06:46 +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
344786a971
Fixed: [Duplicate config files in configdir causes merge problems -> set ? = NULL]( https://github.com/clicon/clixon/issues/510 )
...
Made file-dir match more exact, eg .cli not ?cli
Added -1 as any arg to xml_rm_children()
2024-04-11 12:02:08 +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
9826ac16ff
Formatting and CHANGELOG updates
2024-04-03 17:40:32 +02:00
Olof hagsand
91ea38eff0
Fixed: [NACM create rules do not work properly on objects with default values]( https://github.com/clicon/clixon/issues/506 )
2024-04-01 17:02:48 +02:00
Olof hagsand
c9c5d4f813
Added error-info to netconf error-msg for duplicate leaf-lists
...
Test: removed potential duplicate user in nacm.sh
2024-03-27 14:02:13 +01:00
Olof hagsand
b13320f1a1
Fixed: [CLI: Explicit api-path not encoded correctly]( https://github.com/clicon/clixon/issues/504 )
2024-03-26 11:53:02 +01:00
Olof hagsand
928d7d5b4d
Fixed: [Startup and default of same object causes too-many-elements error]( https://github.com/clicon/clixon/issues/503 )
2024-03-18 17:07:43 +01:00
Olof hagsand
59b3100704
Adjusted code to not rely on COMPAT_6_5 API
...
Leak in optimize xpath code
2024-03-14 15:35:15 +01:00
Mico Micic
d3587b8646
Fix pr review findings (typos and formatting)
2024-03-12 15:22:50 +01:00
Mico Micic
4f306056ea
Add helper functions for bits data type
2024-03-12 15:22:50 +01:00
Olof hagsand
e07fdb3089
Start of 7.1.0.PRE
...
Fixed memleak
2024-03-12 15:07:57 +01:00
Olof hagsand
6b8f7754b8
Fixed: [If services add duplicate entries, controller does not detect this]( https://github.com/clicon/clixon-controller/issues/107 )
...
Rename function `xml_yang_minmax_recurse()` -> `xml_yang_validate_minmax()`
2024-03-07 08:38:40 +01: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
5fa82dcea7
Swapped to use chunked framing in internal protocol
2024-02-28 13:38:12 +01:00
Olof hagsand
e4834b9896
NETCONF internal: Enable RFC 6242 chunked encoding
2024-02-27 13:22:50 +01:00
Olof hagsand
db11b5ef99
Changed framing between backend and frontend to RFC6242 "chunked-encoding"
2024-02-27 09:56:48 +01:00