Open mjrauhal opened 5 years ago
I think the root of the problem is here:
pyasn1.error.PyAsn1Error: Attempted "__ne__" operation on ASN.1 schema object
I have two suggestions to play with:
ifindex
is properly initialized i.e. it is a value, not a schema object. Can you just print out this object without a failure?ifEntry
columns at onceifindex is type <class 'int'> and its value is 1. Same result if I fill in all the ifEntry columns (or even all the ifXEntry columns as well) at once.
@mjrauhal I have faced the same problem as you did while trying to writeVars() to object ifEntry. Have you figured out any solution to this error?
This can be worked around by
del ifEntry.augmentingRows[("IF-MIB", "ifTestEntry")]
With code that works with pysnmp 4.3.3, in 4.4.12 I get a WrongValueError() in trying to write ifEntry (((1, 3, 6, 1, 2, 1, 2, 2, 1, 1, 1), 1),) with writeVars(). (Original code would write also other records into the ifEntry but found that the error persists even with just the first entry, so I reduced the problem to that for the purposes of this issue.)
What confuses me is the error references (1, 3, 6, 1, 2, 1, 31, 1, 3, 1, 1, 1) (under ifTestEntry, apparently) which is not referenced by my code at all.
Writing system records, system description 1.3.6.1.2.1.1.1.0 and friends, works fine.
Code snippet below; ifIndex is 1 and write_vars content verified by debug output to be (((1, 3, 6, 1, 2, 1, 2, 2, 1, 1, 1), 1),)
This is the error output (path beginnings sanitized):
Any idea what I should be doing differently from 4.3.3? Thanks.