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
f0bd103e79
Added new DOMAIN level in YANG spec structure
2024-10-06 10:51:26 +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
ba40f5a929
Move debug msg to msg+detail, only msg length in debug level msg
...
Move log warning of namespace mismatch to debug
2024-09-27 14:45:08 +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
c08dac2e5d
YANG optimization: move "when" and "mymodule" to external maps
2024-08-11 14:07:33 +02:00
Olof hagsand
a80c9b0f8e
Fix: wrong typedef
2024-06-20 21:58:35 +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
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
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
520f8a9a42
Remove propriatary internal framing functions
...
Changed send/rcv API using NETCONF 10 and 11 suffixes
2024-02-28 13:38:32 +01:00
Olof hagsand
9bc60abe2e
Fixed memory leaks at -V
2024-02-18 22:42:55 +01:00
Olof hagsand
ff171afd65
Added debug level INIT
2024-02-17 22:16:56 +01:00
Olof hagsand
3b0b734de1
Fix same -V version string
...
Restconf exit segv
2024-02-17 22:11:35 +01:00
Olof hagsand
4e3bd6fbdd
Symbolic and combined debug names in cmd-line of all applications
...
New debug levels: BACKEND, CLI, NETCONF,RESTCONF, SNMP, STREAM
2024-02-02 11:54:12 +01:00
Olof hagsand
121cd3ed2e
Debug: ensured all exit logs are on the format: retval:%s
2024-01-24 10:03:28 +01:00
Philip Prindeville
cf2e27b43d
Drop __FUNCTION__ from clixon_debug() calls
2024-01-11 17:29:37 +01:00
Philip Prindeville
0ec1e0a686
Discriminate APP debugging
2024-01-10 20:06:38 +01:00
Philip Prindeville
063c8d664f
Messages can't be DETAIL alone so pair with DEFAULT
2024-01-10 20:06:38 +01:00
Philip Prindeville
86667a0190
Don't use literal for CLIXON_DBG_XXX
2024-01-10 20:06:38 +01:00
Olof hagsand
9e54f0602f
Changed ca_errmsg callback to a more generic variant
...
Includes all error, log and debug messages
See [Customized NETCONF error message](https://github.com/clicon/clixon/issues/454 )
2024-01-05 16:41:53 +01:00
Olof hagsand
24a4991ec8
Restructured error,debug anf log API
...
Renamed functions clicon->clixon, replaced global variables w access functions
Unified clicon_netconf_error with clixon_err()
2023-12-18 08:29:14 +01:00
Olof hagsand
261469be16
Feature: [Add support for -V option to give version]( https://github.com/clicon/clixon/issues/472 )
2023-12-14 23:10:51 +01:00
Olof hagsand
bbcb4a7b03
Creator attribute changes: added as xmldb metadata
...
clixon-config.yang: New revision and Added `CLICON_NETCONF_CREATOR_ATTR` option
clixon-lib.yang: Added creator meta
Changed return value of xml_add_attr
2023-11-28 14:44:01 +01:00
Olof hagsand
62348fc9c7
C-style update: Unified comment, retvals in order, remove trailing spaces
...
Changed function name for `clicon_debug` functions
2023-10-23 09:58:13 +02:00
Olof hagsand
9091582087
Low-level message functions added descr argument for better logging C-API change
2023-09-12 10:08:32 +02:00
Olof hagsand
a7ef2c4f12
Rewrote parsing of extra config-files to work recursively over structured data
...
Fixed that modified config variables were not properly overwritten in XML
Added `pretty` parameter to clicon_options_dump
Added testcases for recursive and structure extra config files
2023-08-23 11:10:24 +02:00
Olof hagsand
124afb8788
Modified -C command-line handling and added to SNMP
2023-08-23 10:52:47 +02:00
Olof hagsand
c101799e74
New command-line option for dumping configuration options for all clixon applications after load
...
Removed -s dump
2023-08-22 12:41:36 +02:00
Olof hagsand
5d1c6b5759
Preparations for 6.2.0
...
Openssl 3.0 and autoconf 2.71
2023-04-29 16:23:54 +02:00
Olof hagsand
447b8eb1d3
test fix breaking actions. Minor doc changes
2023-04-25 16:22:25 +02:00
Olof hagsand
5cb41c8d8a
Fixed: unified netconf input: wrong yang-bind
2023-04-20 21:47:33 +02:00
Olof hagsand
e7c9f3d075
Unified netconf input function
...
First for external use, later internal
2023-04-20 21:28:01 +02:00
Olof hagsand
6335f810d3
C-API: clixon_xml2file and clixon_xml2cbuf added prefix argument
...
Added in-mem xml diff function: `xml_tree_diff_print`
2023-04-12 10:44:58 +02:00
Olof hagsand
1e136bc9df
Added clicon_data_init API, and yang_mount_get API
...
Moved dynamic options from options to data API
2023-03-12 21:04:23 +01:00
Olof hagsand
5822c1a72a
* clicon_msg_rcv: Added intr parameter for interrupting on ^C (default 0)
...
* Internal NETCONF (client <-> backend)
* Ensure message-id increments
* Separated rpc from notification socket in same session
* Removed coverage icon from homepage since it stopped working some time ago
2023-03-08 21:41:29 +01:00
Olof hagsand
51ebbdf12f
* C-API: Added clicon_handle parameter to all xml_bind_* calls
2023-01-27 14:56:58 +01:00
Olof hagsand
da9bfcbb53
* Changed debug levels in clicon_debug() to be based on maskable flags
...
* Added flag names: `CLIXON_DBG_*`
* Added maskable flags that can be combined when debugging:
* `DEFAULT` = 1: Basic debug message, espcially initialization
* `MSG` = 2: Input and output packets, read datastore
* `DETAIL` = 4: Details: message dump in hex, xpath parse trees, etc
* `EXTRA` = 8: Extra detailed logs
* Test: some errors in yang-lib where content-id was in wrong place
2023-01-27 14:56:58 +01:00
Olof hagsand
923b998774
* Fixed: Initialized session-id to 1 instead of 0 following ietf-netconf.yang
...
* Clearer debug levels `clicon_debug()`:
1: Logical debug message
2: Input and output packets
3: Message dump in hex, xpath parse trees
2023-01-18 15:51:31 +01:00
Olof hagsand
3916fa919c
Netconf monitoring RFC 6022 Sessions ( https://github.com/clicon/clixon/issues/370 )
...
- statistics and transport/source-host parameters
- extended internal NETCONF hello with transport and source-host attributes
clixon-lib,yang
- Moved all extended internal NETCONF attributes to the clicon-lib namespace
C-API:
- wrapped most attribute creation into new fn xml_add_attr()
2023-01-15 12:36:59 +01:00
Olof hagsand
c94e9dad67
Feature Request: Support RFC 6022 (NETCONF Monitoring)
...
* Added capabilities and schema state, and get-schema rpc
* New `clixon-config@2022-11-01.yang` revision
* Added option:
* `CLICON_NETCONF_MONITORING`
* `CLICON_NETCONF_MONITORING_LOCATION`
2022-11-28 15:53:24 +01:00
Olof hagsand
779fcf5458
Fixed xpath crashes discovered by fuzzing
...
Added fuzz code for xpath
Test: added negative xpath tests
2022-11-04 17:45:54 +01:00
Olof hagsand
05cdbf5c4f
* List-pagination: Adhere to ietf-draft: Removed list-pagination "presence"
...
* Remove default expansion in NETCONF client
* C-API: Added `expanddefault` parameter to `xml_yang_validate_rpc()`
2022-11-02 11:25:06 +01:00
Olof hagsand
d84c529ff1
[Code formatting: Change indentation style to space]( https://github.com/clicon/clixon/issues/379 )
...
* Applies to all c/h/y/l/sh files and .editorconfig
2022-10-27 14:21:17 +02:00
Olof hagsand
e3f3d772c7
Fixed: [message-id present on netconf app "hello"]( https://github.com/clicon/clixon/issues/369 )
2022-09-28 15:04:11 +02:00
Olof hagsand
795ac0cc7d
Clixon-netconf: Redirect logs to syslog by default, instead of stderr
2022-08-23 19:41:02 +02:00
Kristofer Hallin
68b528ac0b
Make Clixon build on MacOS.
2022-08-16 08:40:04 +02:00
Olof hagsand
bdb516fec9
YANG Action (RFC 7950 Section 7.15)
...
See [Support for "action" statement](https://github.com/clicon/clixon/issues/101 )
2022-06-21 15:44:02 +02:00
Olof hagsand
0c79298e76
Changed C-API for xml translation/print the internal cxobj tree data structure to other formats
...
New API is as follows:
* `clixon_xml2file()` - Print internal tree as XML to file
* `clixon_xml2cbuf()` - Print internal tree as XML to buffer
* `clixon_json2file()` - Print internal tree as JSON to file
* `clixon_json2cbuf()` - Print internal tree as JSON to buffer
* `clixon_cli2file()` - Print internal tree as CLI format to file
* `clixon_txt2file()` - Print internal tree as text format to file
2022-06-01 20:02:27 +02:00