Suggestions for testing changes regarding names of anonymous nodes

Bill Fenner <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <CAF4Sogawmvgg2Sr2VgbhFL+aMN-ds66Xszu=c+g3haz0dNpAxA@mail.gmail.com>
Hi,

I found that net-snmp will output a nonsense name if there's an anonymous
node in the path.  For example, if you add

+--
+--  An object defined with an anonymous intermeidate node
+--  for testing object output in "-On" mode
+--
+
+netSnmpExampleAnonymousIntermediateNode OBJECT IDENTIFIER
+                                  ::= { netSnmpExamples 42 2 }
+

to NET-SNMP-EXAMPLES-MIB, and then "snmptranslate netSnmpExamples.42.1",
you get "NET-SNMP-EXAMPLES-MIB::42.1", which is not an object.  I have a
small patch at
https://github.com/fenner/net-snmp/commit/37d2e018254806ccbd9d84e75c594bbed35708d7
which fixes my example, but I want to make sure that it doesn't have any
bad side effects.

I imagined writing a test that exercises all of the output options (-Of,
-On, -Os, -OS, -Ou) for both netSnmpExampleAnonymousIntermediateNode
and netSnmpExamples.42.1.  Does anyone have any other suggestions of what
to test?

Thanks,
  Bill

_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.