Re: Suggestions for testing changes regarding names of anonymous nodes

2020-11-02 Thread Wes Hardaker via Net-snmp-coders
Bill Fenner  writes:

> 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?

I'd think it'd be easy to extract a list of all nodes using the tree/etc
printer of snmptranslate with MIBS=ALL set, and then diff the results
with before/after the patch?
-- 
Wes Hardaker
Please mail all replies to net-snmp-coders@lists.sourceforge.net


___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Suggestions for testing changes regarding names of anonymous nodes

2020-11-02 Thread Bill Fenner
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
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders