Olof hagsand
9da4939ee0
C-API: Extended yang_apply return value with: 2
...
Test: openconfig: ensure openconfig dirs searched before locally cached
2024-08-13 13:32:06 +02:00
Olof hagsand
c08dac2e5d
YANG optimization: move "when" and "mymodule" to external maps
2024-08-11 14:07:33 +02:00
Olof hagsand
275cefbae7
Moved map functions from clixon_string to _map, new ptr2ptr map
2024-08-10 13:42:37 +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
ca786da156
Fixed signal handling of recv message
...
Revert to signal handling in 6.5 that was changed in the netconf uniform handling in 7.0
2024-08-06 11:27:20 +02:00
Olof hagsand
af29a0f974
Added YANG_SPEC_LINENR compile-time option
2024-07-31 14:33:31 +02:00
Olof hagsand
816238029d
Fixed: [NETCONF error reply from failed leafref rquire-instance does not comply to RFC 7950]( https://github.com/clicon/clixon/issues/53
2024-07-22 09:18:27 +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
Olof hagsand
7aac03ba5e
Clixon 7.1.0
2024-07-03 09:21:23 +02:00
Olof hagsand
58358fb6da
Misc formatting
2024-07-02 15:02:18 +02:00
Olof hagsand
419e8312f9
Replaced YANG find share algorithm, use direct yanglib diff
2024-06-30 09:46:15 +02:00
Olof hagsand
803da7b76a
Loosen yang namespace sanity check to warning
2024-06-29 15:19:50 +02:00
Olof hagsand
68bf76201c
CLI show mem: show as MiB/GiB etc
2024-06-29 10:29:32 +02:00
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
5b8828c530
YANG ref count for shared fixed
2024-06-22 21:19:52 +02:00
Olof hagsand
8a2217ff6d
Improved show memory
2024-06-20 21:58:35 +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
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