Philip Prindeville
42a92f262a
Add process-specific logging
2024-01-22 08:46:15 +01:00
Philip Prindeville
f923524378
Add NACM-specific logging
2024-01-22 08:46:15 +01:00
Olof hagsand
88b60daa75
Revert and obsolete the creators attribute feature introduced in 6.2.
2024-01-21 12:58:51 +01:00
Olof hagsand
465a5999fe
Changed function name: choice_case_get() -> yang_choice_case_get()
...
Rewrote yang_choice()
2024-01-17 13:06:56 +01:00
Olof hagsand
344f5ec39d
Remove USE_CONFIG_FLAG_CACHE, been enabled long time
2024-01-12 11:24:24 +01:00
Philip Prindeville
9dbca0c562
Shuffle debugging category/level bits
2024-01-11 17:29:37 +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
20b233e96f
Allow more complex debugging like YANG with DETAIL
2024-01-10 20:06:38 +01:00
Philip Prindeville
762c9fcbd8
Fix references to undefined types
2024-01-10 20:06:38 +01:00
Olof hagsand
ea645d1334
New clixon-lib@2024-01-01.yang revision
...
* Replaced container creators to grouping/uses
2024-01-09 10:42:33 +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
558a0df1f3
Fixed proper restore of cttl-C in msg rcv
...
Rename and move plugin_context_check to clixon_resource_check
2023-12-21 15:00:12 +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
e619632ac7
Optimization: Added mountpoint cache as yang flag YANG_FLAG_MTPOINT_POTENTIAL
...
Filter state-data w xpath
2023-12-12 14:12:50 +01:00
Olof hagsand
012158fb24
Optimization of yang_find()
2023-12-10 21:03:46 +01:00
Olof hagsand
574106125f
Added reference count for shared yang-specs (schema mounts)
2023-12-06 13:48:41 +01:00
Olof hagsand
c46872c3fd
Fix mount memory leakage, Add YANG_FLAG_MOUNTPOINT
2023-11-29 18:59:13 +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
be3001acf5
XML: Add XML_FLAG_ANYDATA to mimic an xml node to be ANYDATA
2023-11-23 18:44:17 +01:00
Olof hagsand
aaab8a4920
Fixed: [NACM paths don't work for mounted YANG models]( https://github.com/clicon/clixon-controller/issues/62 )
2023-11-15 16:47:33 +01:00
Olof hagsand
597cbe882b
Yang schema mount fix: canonical paths and register on conatiner instead of unknown
2023-11-14 19:35:17 +01:00
Olof hagsand
2f88ef3ed6
Fixed: [cl:creator attribute must be persistent]( https://github.com/clicon/clixon-controller/issues/54 )
2023-11-03 14:06:41 +01:00
Olof hagsand
5bdad1870e
New feature: [Customized NETCONF error message]( https://github.com/clicon/clixon/issues/454 )
...
* Added new callback `.ca_errmsg`
* Changed signature of `clicon_netconf_error()` and `netconf_err2cb()`
2023-10-26 14:59:51 +02:00
Olof hagsand
e7313fc9a2
New clixon-lib@2023-11-01.yang revision with ignore-compare extension
2023-10-25 18:09:40 +02: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
2603b6f139
CLI show compare example function
...
Improved diff algorithm for XML and TEXT/curly, replaced UNIX diff with structural in-mem algorithm
Fixed: ["show compare" and "show compare | display cli" differs #23 ](https://github.com/clicon/clixon-controller/issues/23 )
Changed parameters of example clispec function `compare_dbs()`
Added show2cbuf functions for TEXT/CLI
Renamed clixon_txt2file to clixon_text2file
2023-09-22 10:42:00 +02:00
Olof hagsand
45f41e3e4d
Fixed: [JSON backslash string decoding/encoding not correct]( https://github.com/clicon/clixon/issues/453 )
...
Added unicode BMP support for JSON strings
Test: encoding/decoding tests for UTF-8
2023-09-19 12:28:58 +02:00
Olof hagsand
1a43a32770
Improved performance of mountpoint show config
2023-09-16 21:59:23 +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
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
bee30a4ea0
Example: added -m/-M options for testing mount-points
2023-08-07 18:12:53 +02:00
Olof hagsand
f526d5b7a0
Autocli optimization feature for generating smaller CLISPECs for large YANGs using treerefs
...
New `grouping-treeref` option added to clixon-autocli.yang
Default is disabled, set to true to generate smaller memory footprint of clixon_cl
Add prefix "mtpoint:" to cli api-paths to identify change of yang schemas
2023-07-23 15:21:59 +02:00
Olof hagsand
d48442960e
Changed YANG uses/grouping to keep uses statement and flag it with YANG_FLAG_USES_EXP
...
Updated yang code headers
2023-07-19 10:52:29 +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
8091b4ab7e
Added fdkeep parameter to clixon_process_register
2023-06-08 15:51:16 +02:00
Olof hagsand
634e13ea32
C-API: Added xml_creator_print
2023-06-08 12:02:48 +02:00
Olof hagsand
8598fca688
Add gid to clixon_process_register() for drop privs
2023-06-02 13:38:00 +02:00
Olof hagsand
080eef0278
C-API: Added cli_process_control(), added uid to cli_process_control()
2023-06-01 17:50:23 +02:00
Olof hagsand
b3a7e39d26
C-API: Added specialized xml_child_each_attr function to counter perf issue
2023-05-29 12:25:39 +02:00
Olof hagsand
307a992f36
* Added output function to JSON output:
...
* `xml2json_vec(...,skiptop)` --> `xml2json_vec(..., cligen_output, skiptop)`
2023-05-17 16:25:35 +02:00
Mico Micic
6006be038b
Avoid conversion to 'size_t' from 'int' warnings
2023-05-08 12:28:14 +02:00
Olof hagsand
b6116261a3
* Restructured and extended <stats> rpc to schema mountpoints
...
* New revision of clixon-lib.yang
* CLI: Added `show statistics` example code for backend and CLI memory stats
2023-05-05 17:54:10 +02:00
Olof hagsand
a0df12134a
Fixed: [if-feature always negative if imported from another module]( https://github.com/clicon/clixon/issues/429 )
...
Apply styleguide to snmp patch
2023-05-05 17:54:10 +02:00
Shmuel Hazan
b13917b2ac
Call ys_populate_feature from if_feature_check
...
In some cases, the feature won't be populated yet, and therefore, we
will consider this feature as disabled.
Fixes #429
2023-04-30 17:34:31 +03: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