Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Missing documentation for **kwargs of ObjectIdentity.add_asn1_mib_source() #201

@chrullrich

Description

@chrullrich

Is your feature request related to a problem? Please describe.

The documentation for ObjectIdentity.add_asn1_mib_source() mentions only the *asn1Sources argument/s. It does not reveal that this method also takes kwargs which influence, among other things, the on-the-fly MIB compilation.

I noticed this when looking for a way to have PySNMP put compiled MIB modules into a less unwieldy path than (on Windows) ~/PySNMP Configuration/mibs. The only approach apparent from samples is to create a MibBuilder and MibViewController, followed by calling resolve_with_mib() on every ObjectType and ObjectIdentity. Compared with that, adding a simple destination=... to add_asn1_mib_source() calls is outright trivial.

Describe the solution you'd like

There appear to be five keywords arguments to add_asn1_mib_source() that resolve_with_mib() looks for:

  • searchers
  • borrowers
  • destination
  • ifAvailable
  • ifNotAdded

The documentation should describe their types and purpose.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:documentationImprovements or additions to documentationideaSuggestions/advice on new things, but might not be mature enough to work on.priority:lowLow priority items.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions