
Greetings all,
Thanks for your work on libsmi. I'm working on a python application to connect snmp traps to a TCP stream oriented management application and I've found libsmi to be exactly what I need to decode trap PDU's to tokens and arguments that the management application can parse.
To do so, I've implemented a hand coded Python wrapper around (so far) smi_config (except SetErrorHandler), most of smi_module (no Revision functions) and some of smi_node (no Element or Refinement functions). The advantage to hand-coding over SWIG is that the smi data structures are properly reflected in real python objects. With SWIG, a nodes smiValue reference becomes a string representation of a C pointer, providing no real value to the python programmer. By properly producing the return objects, the python Node object contains a "real" Value object that properly represents the equivalent C structure.
First question: Is there a test suite anywhere that I can use to help generate a python test suite to verify that I'm not mucking up the results of the underlying smi calls?
Second question: Is anyone else interested in a full Python wrapper? I'm no SMI expert (beyond SNMP MIB's using it), and I can't really pursue much more functionality since I'm basically clueless about Elements, Refinements, Types, and Macros. If there _is_ a test suite, I could implement based on that, if not I could use advice and suggestions on where to learn more so I can extend as time permits. If nobody else cares, I'll just keep it as is until I need more from it.
TIA