Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ObjectIdentity resolveWithMib ignores extra indicies #328

Open
natedogith1 opened this issue Dec 6, 2019 · 0 comments
Open

ObjectIdentity resolveWithMib ignores extra indicies #328

natedogith1 opened this issue Dec 6, 2019 · 0 comments

Comments

@natedogith1
Copy link

When resolving with a mib, extra indexes are discarded (rather than being kept or raising an error).

Example:

>>> pysnmp.hlapi.ObjectIdentity('IP-MIB', 'ipAdEntAddr', '127.0.0.1', 123).resolveWithMib(b).getOid()
<ObjectName value object, tagSet <TagSet object, tags 0:0:6>, payload [1.3.6.1.2.1.4.20.1.1.127.0.0.1]>

I would expect the oid to be 1.3.6.1.2.1.4.20.1.1.127.0.0.1.123 instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant