You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing an SNMP get/walk/etc and either the use_numeric flag is True, or if the MIB is not loaded, the .oid_index incorrectly steals the last component of the .oid instead of being left blank as expected.
oid_index_example.py -
from easysnmp.easy import Session
session = Session(hostname='localhost', version=2)
for use_numeric in (False, True):
session.use_numeric = use_numeric
var = session.get('.1.3.6.1.2.1.25.3.7.1.1.60.1')
print(repr(var)))
When doing an SNMP get/walk/etc and either the
use_numeric flag
is True, or if the MIB is not loaded, the.oid_index
incorrectly steals the last component of the.oid
instead of being left blank as expected.oid_index_example.py -
output -
expected output -
It appears that
easysnmp.helpers.normalize_oid()
does the right thing with numeric OIDs, but maybeinterface.c
is doing something odd?The text was updated successfully, but these errors were encountered: