Register fixed lengths for octet strings #9
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR restores pysmi's
fixedLength
field generation. As such, it is the fix for point (2) of my (first) comment in lextudio/pysnmp#141. That should allow fixes for pysnmp for the other two points from that comment to restore proper generation and parsing of OIDs with fixed-length string indices.This PR does not change the mibs.pysnmp.com statistics (i.e., no regressions), but there are now 9969
fixedLength
assignments across 2085 MIBs from that collection that were missing before, and those numbers are very close to the pre-Jinja2 numbers from there (9954 assignments across 2088 MIBs). Note that the collection itself has been slightly altered since then, so an exact match is not expected there. In any case, I think this is looking good.In addition, the pysmi test set is extended to 510 tests.