pysnmp icon indicating copy to clipboard operation
pysnmp copied to clipboard

Introduce higher level API to SMI objects

Open etingof opened this issue 5 years ago • 0 comments

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):]

etingof avatar Nov 17 '19 07:11 etingof