Conversation
|
Thank you albarytu for the patch, it had an error on line 119. |
|
Sorry for that bug... a parenthesis was missing. find attached to this mail a code sample comparing the result of both I also include a new_new method, implementing the new one in a more 2016-01-26 12:24 GMT+01:00 Rayed Alrashed notifications@github.com:
Álvaro Fernández Conejero #!/usr/bin/python #the original algorithm #my original patch #new - pythonic version #These are the oids we are publishing #User is navigating 1.2. from snmpwalk. #This operation is supposed to read everything between 1.2 and 1.3 #in this process, we get to a point where we have read 1.2.4.2.1 and |
get_next didn't work correctly with a big tree of different-length oids when asking for a mid-range oid. This new algorithm works for me