I am new to this discussion forum and new to confd. I searched this forum but could not find a similar problem to mine so apologies for creating a new topic.
I have a confd-based application with SNMP API and YANG model converted from MIBs. I am setting 2 or more attributes using snmpset. I am using an incorrect value and expecting to see an error saying why it failed and on which object. The problem is that it always says that the failed object was the first one from the list, even if the value provided to the first one is correct and actual problem was with another object from the list. In my code I am using confd_trans_seterr_extended to propagate the error to confd from my application and I am passing a tag that should point to the object on which I am failing the transaction but that does not seem to work.
This is how I call the function:
confd_trans_seterr_extended(ctx, CONFD_ERRCODE_INCONSISTENT_VALUE, 0, tag, “my message %s”, my_error_str);
In result I am getting good reason message:
Reason: inconsistentValue (The set value is illegal or unsupported in some way)
but wrong object in 'Failed object: ’ line.
Any idea what I am missing here? Is that the correct way to tell confd which object failed in the transaction?