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
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
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
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
5e2643c382
Test: remove testdir also if skip test
2022-09-03 13:07:26 +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
d82d08b4ac
Merge branch 'snmp' of github.com:clicon/clixon into snmp
2022-06-26 11:51:08 +02:00
Olof hagsand
4dd633ba31
SNMP: ifStackStatus test
2022-06-26 11:31:28 +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
10226ceddd
SNMP Tests: Added clixon sanity checks on all tests
...
Ie, CLICON_VALIDATE_STATE_XML=true
Changed symbolic OID to numeric
2022-06-26 11:30:29 +02:00
Olof hagsand
86e6c3cd5e
SNMP test: remove state from snmp_set
2022-06-26 11:29:40 +02:00
Kristofer Hallin
a3d0b74e4b
Validate both numerical and lexical OIDs.
2022-06-26 11:29:40 +02:00
Kristofer Hallin
44d7d898bb
snmpset tests re-written.
2022-06-26 11:29:40 +02:00
Olof hagsand
ff52cad3a8
SNMP frontend: Types and indexes
...
Added timestamp and inet address
First go at index names
2022-06-26 11:29:40 +02:00
Olof hagsand
18ff854e12
SNMP frontend: special case for SnmpAdminString with not null-terminated string
2022-06-26 11:29:40 +02:00
Olof hagsand
7bcecc155a
SNMP Frontend, fixed remaining types: phys-addr, timeticks, binary, objectid
2022-06-26 11:29:40 +02:00
Olof hagsand
6f7a33d196
SNMP frontend, new preli table handling code
...
Skipped data set and use table-helper only
Specialized SNMP error handling
2022-06-26 11:28:42 +02:00
Olof hagsand
6e60287bc0
SNMP frontend: forgot GET detailed type info in last commit
2022-06-26 11:28:42 +02:00
Olof hagsand
a02e78a3c1
SNMP frontend tests: Added more descriptic types of each get/set value and netsnmp instructions
2022-06-26 11:28:42 +02:00
Olof hagsand
8c253cfc61
SNMP test typo in test_snmp_set
2022-06-26 11:28:42 +02:00
Olof hagsand
05f3ebb59e
SNMP frontend: SNMP2YANG type conversion for snmpset
2022-06-26 11:28:42 +02:00
Olof hagsand
46cb21f3e8
SNMP frontend: Generalized type handling for set functions
...
SPlit scalar_handler into get and set subfunctions
2022-06-26 11:28:42 +02:00
Olof hagsand
62a32faf9c
SNMP frontend. New snmp_lib.[ch] and rearranged code into lib
...
Test: renamed WITH_SNMP -> ENABLE_SNMP
2022-06-26 11:28:42 +02:00
Olof hagsand
1f8b82e8e1
SNMP frontend, add int32 + string type for scalars
...
Added get string test
Added set value for netconf test
2022-06-26 11:28:42 +02:00
Olof hagsand
72534e864d
SNNP frontend. Added SMI default value support and deviation for set
2022-06-26 11:28:42 +02:00
Olof hagsand
4ff2ea099c
SNMP frontend table fix: handler called with heartrate, return 0
2022-06-26 11:28:42 +02:00
Olof hagsand
3bb681ffe2
SNMP frontend, main test for config false only, write test move to test_snmp_set.sh
2022-06-26 11:28:42 +02:00
Olof hagsand
99b766ee50
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-22 13:06:23 +02:00
Olof hagsand
fa57fe8be7
SNMP Tests: Added clixon sanity checks on all tests
...
Ie, CLICON_VALIDATE_STATE_XML=true
Changed symbolic OID to numeric
2022-06-08 20:34:48 +02:00
Olof hagsand
f67913a999
SNMP test: remove state from snmp_set
2022-06-07 11:09:02 +02:00
Kristofer Hallin
eb6185c888
Validate both numerical and lexical OIDs.
2022-06-03 06:20:02 +02:00
Kristofer Hallin
a33db6ef15
snmpset tests re-written.
2022-06-02 16:21:59 +02:00
Olof hagsand
739193a3de
SNMP frontend: Types and indexes
...
Added timestamp and inet address
First go at index names
2022-05-30 11:34:35 +02:00
Olof hagsand
02983a025a
SNMP frontend: special case for SnmpAdminString with not null-terminated string
2022-05-28 15:30:16 +02:00
Olof hagsand
bf110058bc
SNMP Frontend, fixed remaining types: phys-addr, timeticks, binary, objectid
2022-05-28 10:48:17 +02:00
Olof hagsand
b2be7e9e1b
SNMP frontend, new preli table handling code
...
Skipped data set and use table-helper only
Specialized SNMP error handling
2022-05-26 19:04:51 +02:00
Olof hagsand
f6b762f4a5
SNMP frontend: forgot GET detailed type info in last commit
2022-05-25 20:24:27 +02:00
Olof hagsand
a7df2cd2f2
SNMP frontend tests: Added more descriptic types of each get/set value and netsnmp instructions
2022-05-24 11:16:44 +02:00
Olof hagsand
0fa35b6926
SNMP test typo in test_snmp_set
2022-05-23 14:42:29 +02:00
Olof hagsand
675f4c9f7e
SNMP frontend: SNMP2YANG type conversion for snmpset
2022-05-23 14:33:32 +02:00
Olof hagsand
ea03363c3a
SNMP frontend: Generalized type handling for set functions
...
SPlit scalar_handler into get and set subfunctions
2022-05-20 15:05:23 +02:00
Olof hagsand
8a208693ba
SNMP frontend. New snmp_lib.[ch] and rearranged code into lib
...
Test: renamed WITH_SNMP -> ENABLE_SNMP
2022-05-19 15:46:35 +02:00
Olof hagsand
3642fde46f
SNMP frontend, add int32 + string type for scalars
...
Added get string test
Added set value for netconf test
2022-05-19 15:46:35 +02:00
Olof hagsand
1b921e874e
SNNP frontend. Added SMI default value support and deviation for set
2022-05-19 15:46:35 +02:00
Olof hagsand
63c5846091
SNMP frontend table fix: handler called with heartrate, return 0
2022-05-19 15:46:35 +02:00
Olof hagsand
0473303a4c
SNMP frontend, main test for config false only, write test move to test_snmp_set.sh
2022-05-19 15:46:35 +02:00