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

Introduce higher level API to SMI objects #327

Open
etingof opened this issue Nov 17, 2019 · 0 comments
Open

Introduce higher level API to SMI objects #327

etingof opened this issue Nov 17, 2019 · 0 comments

Comments

@etingof
Copy link
Owner

etingof commented Nov 17, 2019

This problem came up lately, perhaps we could have some higher-level API to achieve this and similar functionality around indices easier:

for var_bind in var_binds:
    object_identity, value = var_bind
    mib_node = object_identity.getMibNode()
    object_instance_oid = object_identity.getOid()
    object_oid = mib_node.getName()
    index_part = object_instance_oid[len(object_oid):]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant