Olof hagsand
16a7fa3837
SNMP union leak (see https://github.com/clicon/clixon/pull/461 )
...
Added docker-snmp-mem test
2023-11-02 16:26:21 +01:00
Olof hagsand
978586a493
Fixed customized errors: fcgi and snmp
2023-10-26 15:32:25 +02: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
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
1698c6717e
Fixed undeclared variables in SNMP
2023-08-23 11:18: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
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
Olof Hagsand
40f8dd129e
Merge pull request #427 from StasSt-siklu/master
...
Support union with are same subtypes with SNMP
2023-05-05 09:00:59 +02:00
stass
2b3dd6e133
Adapted to style guidelines
2023-04-27 15:50:37 +03: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
stass
cc951fc3be
Add union test
2023-04-02 14:59:49 +03:00
stass
175f9a2136
Support union with are same subtypes with SNMP
2023-03-28 18:10:21 +03: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
995c3b2c67
typo in rearrange includes; unused reason parameter in snmp_lib
2023-03-03 17:41:02 +01:00
stass
980c7d082f
Add support decimal64 for snmp
...
Signed-off-by: Dmitry Grinberg <dima.g@siklu.com>
2023-02-21 11:57:00 +02:00
stass
3436a19ee4
Scalars do not have a .0 suffix
...
See https://github.com/clicon/clixon/issues/401
2023-02-06 10:47:03 +01:00
Olof hagsand
af1f5a037d
Fixed: [SNMP: snmpwalk is slow and can timeout #404 ]( https://github.com/clicon/clixon/issues/404 )
...
Optimized yang_extension_value
2023-02-01 14:57:51 +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
b3dcee9639
* YANG schema mount RFC 8528, Initial commit (work in progress)
...
* Keep track of YANG unknowns with ys_cvec of EXTENSION
* C-API: Init ys_cvec to NULL, added yang_cvec_add() and adjusted code to use it
2023-01-20 16:16:02 +01:00
Olof Hagsand
b58635554c
Merge pull request #406 from StasSt-siklu/SNMP_accepts_only_u32_and_u64
...
Added translation from Yang type to SNMP type
2023-01-19 09:10:48 +01:00
Olof Hagsand
fe291fe73d
Merge pull request #402 from doron2020/Yang_leaves_without_smiv2_oid_directive_are_not_shown+well_in_snmpwalk
...
Fixed: [Yang leaves without smiv2:oid directive are not shown well in…
2023-01-19 09:02:23 +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
doronb
c0526fad9c
Fixed: [Yang leaves without smiv2:oid directive are not shown well in snmpwalk] ( https://https://github.com/clicon/clixon/issues/398 )
2023-01-18 14:53:25 +02:00
stass
11560e7d4f
Added translation from Yang type to SNMP type
2023-01-17 17:57:56 +02:00
Olof hagsand
3428f4d5ff
Fixed: [snmpwalk doesn't show properly SNMP boolean values which equal false]( https://github.com/clicon/clixon/issues/400 )
2023-01-16 12:10:16 +01:00
Olof hagsand
000cb866c2
RFC 8525:
...
- Change from RFC 7805: Remove revision if empty instead of sending empty revision
RFC 6022
- Added cli identity to RFC6022 transport
- Added source-host for natove restconf, bit no other sessions
2023-01-15 22:44:00 +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
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
05b31508a1
* Fixed: [Non-obvious behavior of clixon_snmp after snmpset command when transaction validation returns an error]( https://github.com/clicon/clixon/issues/375 )
...
* Fixed by validating writes on ACTION instead of COMMIT since libnetsnmp seems not to accept commit errors
2022-10-25 16:32:48 +02:00
Olof hagsand
83663d4d15
Fixed: [Trying to change the "read-only" node through snmpset]( https://github.com/clicon/clixon/issues/376 )
2022-10-09 17:02:08 +02:00
Olof hagsand
aff69127b6
Fixed: [Trying to change the "config false" node through snmpset]( https://github.com/clicon/clixon/issues/377 )
...
* Fixed by returning `SNMP_ERR_NOTWRITABLE` when trying to reserve object
2022-10-09 11:59:26 +02:00
Olof hagsand
d2c3b903f1
SNMP: set commit fail error
2022-10-09 11:11:17 +02:00
Olof hagsand
575429caa1
* Fixed: [Non-obvious behavior of clixon_snmp after snmpset command when transaction validation returns an error]( https://github.com/clicon/clixon/issues/375 )
...
* Changed `clicon_rpc_commit()` and `clicon_rpc_validate`: Added three-value return.
2022-10-08 17:17:04 +02:00
Olof hagsand
d29c81fce0
Fixed: [clixon_snmp module crashes on snmpwalk command]( https://github.com/clicon/clixon/issues/378 )
2022-10-07 17:54:42 +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
Olof hagsand
954e5d56fd
Fixed: [unneeded trailing zero character on SNMP strings]( https://github.com/clicon/clixon/issues/367 )
2022-10-03 18:39:32 +02:00
Olof hagsand
6063d9a147
Fixed: [SNMP smiv2 yang extension doesn't work on augmented nodes]( https://github.com/clicon/clixon/issues/366 )
2022-09-27 15:47:48 +02:00
Jan-Olof Carlson
14cc88ca39
Added parameter defaults to library function clicon_rpc_get
2022-08-29 18:27:07 +02:00
Kristofer Hallin
68b528ac0b
Make Clixon build on MacOS.
2022-08-16 08:40:04 +02:00
Olof hagsand
e724dd7f40
Test: Added detail env var to sum.sh, Changed make test to include detailed test
2022-07-21 09:08:18 +02:00
Olof hagsand
49d19b263c
SNMP: Internal cache handling for rowstatus
...
Test: prefix SN=0 instead of CS=0 for override clixon_snmp start
2022-07-11 10:07:48 +02:00
Olof hagsand
5175cb8223
SNMP: Added rowstatus destroy logic
2022-07-10 12:17:01 +02:00
Olof hagsand
714e41c627
SNMP: rowstatus for go and wait
...
Remaining: destroy and internal state
2022-07-09 16:41:21 +02:00
Olof hagsand
d79d0aa933
SNMP Support for display-hint "255t" for fixed string translation
2022-07-09 12:41:58 +02:00
Olof hagsand
d9cdd669d2
SNMP: Add IPaddress scalar to clixon mib and fix ipv4 set translation
2022-07-08 10:32:25 +02:00
Olof hagsand
cd5b68b0b8
Adapt to clixon master
2022-06-26 11:39:58 +02:00
Olof hagsand
f6fe9f6a64
SNMP: fix SNMP set access of table entries
...
[Conversion of ethernet address (PhysAddress) and IP address (IPAddress) crashes agent](https://github.com/clicon/clixon/issues/340 )
Hwaddress and IP adress for scalar and table set should now work
2022-06-26 11:31:28 +02:00
Olof hagsand
fa87b7d59f
SNMP: Fixed leafref index issue and table min-column issue for mult index
2022-06-26 11:31:06 +02:00
Olof hagsand
ebfd173e0b
SNMP: Dynamic table fixes
2022-06-26 11:30:29 +02:00