Re: Searching for objects

Saurabh> The application for which I plan on using libsmi would Saurabh> benefit from the convenience of being able to specify the Saurabh> root of a subtree to which the search for the given object Saurabh> should be restriced.
Did I get you right?... You wish to have a way to specify a node and search for a specific node by a given name, e.g. search for sysDescr underneath 1.3.6.1.2?
Saurabh> From my understanding of the API, there isn't a way to do Saurabh> this? Am I right?
If I understand your wish correctly, you are right. This is not possible.
Saurabh> If so, would the maintainers consider adding such an Saurabh> interface in a future release?
I think, the only exact way to search for a node is by giving a module and a name. A subtree root node is no good choice for limiting the namespace of object identifiers, since (a) it is not capable to preclude the possibility of a name duplicate and (b) it does not (gernerally) allow to limit the set of nodes to semantic groups like a module does.
So, I have a preference not to include such a function in the API. -- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to libsmi-request@ibr.cs.tu-bs.de. !! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.

A little while ago I sent an addition to libsmi that provided Python bindings using SWIG. I'm not sure it that actually went through as I was having email problems. Did you see it?
/___\|//__//// \ (+ +) \\ -- --------------------oOOo~(_)~oOOo---------------------------------------- Keith Dart mailto:kdart@kdart.com http://www.kdart.com/~kdart/ ============================================================================
-- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to libsmi-request@ibr.cs.tu-bs.de. !! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.
participants (2)
-
Frank Strauss
-
Keith Dart