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
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
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
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
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
Philip Prindeville
cf2e27b43d
Drop __FUNCTION__ from clixon_debug() calls
2024-01-11 17:29:37 +01:00
Olof hagsand
d5a8d6b6e1
Fixed: segv on exit
...
Test: rm openconfig-interface
2024-01-10 20:10:38 +01:00
Philip Prindeville
0ec1e0a686
Discriminate APP debugging
2024-01-10 20:06:38 +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
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
Philip Prindeville
959e060995
Use clicon_err() consistently and drop perror()
2023-10-21 18:29:23 +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
Philip Prindeville
d1b8dcdf1f
Add -s dump-xml mode
2023-08-20 13:00:51 +02:00
Olof hagsand
a1e7c6f126
Modified backend exit strategy so that 2nd ^C actually exits
...
Copied creator cvec if modified with REPLACE
2023-06-13 13:34:57 +02:00
Olof hagsand
da2edceb7e
* Added new functions: xml_tree_equal and xpath2xml
...
* RFC 8528 yang schema mount-points:
* Made expand_dbvar and cli_dbxml mountpoint-aware (RFC 8528)
* autocli supportgenerate
* Made api_path2xml and xml2api_path mount-point-aware
* Temporar fix in clixon_custom.h: XPATH_CANONICAL_SKIP_CHECK
* `xml2xpath()`: Added `apostrophe` as 4th parameter, default 0
* removed extra assert.h includes
2023-03-23 22:16:33 +01:00
Olof hagsand
5f2978d06c
Files: Rearranged backend .h files: moved client_entry to clixon_backend_client.h
2023-03-03 16:05:31 +01:00
Olof hagsand
585823a609
Memory leaks
2023-02-14 16:42:43 +01:00
Olof hagsand
6681eb99d3
Netconf monitoring statistics frm RFC 6022
2023-02-04 17:13:45 +01:00
Olof hagsand
5da8ce211a
Patch of previous commit: ca_reset plugin
2023-02-02 16:07:35 +01:00
Olof hagsand
3d64eddaf2
All calls to ca_reset plugin callback has db=tmp
2023-02-02 14:46:53 +01:00
Olof hagsand
a203f6cde7
Updated extraxml reset callback example and added a regression test
2023-02-02 12:17:52 +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
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
7976303ef2
Confirmed-commit handle drop privileges
...
Create and drop priv of rollback datastore on startup
Reverted xmldb to truncate instead of deleting datastores due to privileges drop
2022-10-26 14:39:47 +02:00
Olof hagsand
62e652bbcf
Confirm-commit refactoring
...
Moved commit-confirm code to backend_confirm.c and removed (almost all) globals vars
2022-10-24 10:54:51 +02:00
Olof hagsand
11eccd5478
Confirm commit:
...
- Removed confirm-commit 1.0 capability (only 1.1 present)
- Made startup capability conditional (as confirmed-commit)
- Fixed startup error when rollback did not exist
- Adjust snmp commit calls
- Move failsafe to lib
- Test: Minimized test application, test capability
2022-10-07 16:04:31 +02:00
Phil Heller
8abcda6f85
confirmed-commit fixes, tests
...
- fixed typo preventing evaluation of confirmed-commit logic in backend_startup
- fixed uninitialized variable warnings
- added details to CHANGELOG.MD
- added capabilities advertisement for confirmed-commit 1.0 and 1.1
- added xml hello message that uses only eom framing, for simplicity in asynch tests
- add stty restore after wait_restconf to fix console corruption in tests
- adjust test_confirmed_commit to drop perms and run as the invoking user. This will require running user to have permissions on /usr/local/var/example
- added CLI tests
2022-10-03 21:47:09 -06:00
Phil Heller
284316b646
Initial implementation of NETCONF confirmed-commit
2022-10-03 21:44:35 -06:00
Olof hagsand
eb8d0c0b3a
SNMP frontend: added -z zap command-line option and pid-file exclusive check, fixed mem check
2022-06-26 11:28:42 +02:00
Olof hagsand
42f21a309a
SNMP frontend: conflict typos, snmp pidfile
2022-06-26 11:28:42 +02:00
Olof hagsand
5551d753ef
Logging fixes
...
* Fixed: [Error message seen twice in some cases](https://github.com/clicon/clixon/issues/325 )
* Extended `-l` command-line option to all clixon commands with a `none` option, eg `-l n` directs logging to `dev/null`
2022-04-30 11:31:51 +02:00
Olof hagsand
ff37ce808c
* Rename demon -> daemon
2022-03-07 11:18:27 +01:00
Olof hagsand
cf2de375f7
- Moved backend start message to after the clixon socket ops: create/bind/listen
2022-02-26 10:24:29 +01:00
Olof hagsand
78bdc4eaca
Backend ignore of SIGPIPE. This occurs if client quits unexpectedly over the UNIX socket.
...
This is a timing issue but occurs more frequently in large RESTCONF messgaes.
2022-02-14 20:56:57 +01:00
Olof hagsand
6ae749c9dd
* New clixon-config@2022-02-11.yang revision
...
* Added option: `CLICON_LOG_STRING_LIMIT`
2022-02-12 21:45:50 +01:00
Olof hagsand
77b4468eb3
Updated copyright statements to 2022
2022-01-18 16:36:00 +01:00
Olof hagsand
478911d0f5
* Changed typo configure --with-yang-standard-installdir to `configure --with-yang-standard-dir
...
* Updated command-line usage of cli,netconf,backend apps in sync with clixon-docs user manual
* Documented differences between protocol stubs for external vs internal netconf
2021-12-05 12:17:11 +01:00
Olof hagsand
b91ce762d5
* Performance improvement
...
* Added ancestor config cache indicating wether the node or an ancestor is config false or true
* Improved yang cardinality lookup
* Added yang_init(), called from all apps using yang
2021-11-18 08:37:54 +01:00
Olof hagsand
edbbb43e1f
Removed remaining and replaced pagination-mode with locked parameter
...
Dispatcher: Added dispatcher_free(), fixed mem-leaks and malloc return
checks
2021-10-10 11:40:47 +02:00
Olof hagsand
0c7f2043f3
* Pagination according to new draft
...
* count/skip -> limit/offset
* ietf-yang-metadata RFC 7952 support, placeholder parsing and extension
2021-09-21 11:22:41 +02:00