* 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
This commit is contained in:
Olof hagsand 2022-10-25 16:32:48 +02:00
parent 3a5d156690
commit 05b31508a1
5 changed files with 46 additions and 13 deletions

View file

@ -276,7 +276,7 @@ new "wait backend"
wait_backend
new "set value with error"
expectpart "$($snmpset ${MIB}.1.1 i 4321)" 0 "INTEGER: 4321"
expectpart "$($snmpset ${MIB}.1.1 i 4321 2>&1)" 2 "commitFailed"
new "Cleaning up"
testexit