-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overly strict when parsing MIB files #25
Comments
The examples listed are all warnings. For the precise purpose of being able to parse the files, while still able to read then properly. Or as Mibble have understood them. Errors block MIB reading though and I've worked quite a bit to convert most errors to warnings in latest couple of releases... |
Yes they are, but the MIB is still failing to load.
This MIB loads fine with iReasoning |
Can you attach the MIB in question to this issue? Or send it via email directly to me? Seems impossible to download it from the Austin Hughes website as far as I can see... 😞 |
Apologies, I thought I attached the file in the original ticket. |
Thanks. I'll add this to the test suite. Unfortunately this MIB file is broken in a few ways that cannot be completely repaired or ignored:
It is clear that no proper MIB validation tool was used for the creation of this MIB. Also clear is that these errors cannot be "auto-repaired" or similar, as Mibble attempts to do for some common issues (missing imports, etc). I don't know how other tools handle this. Perhaps an option would be to provide an error-to-warning mode that allows leaving types or values set to As a side-note, I noted that the list of intermingled warnings and errors was rather unreadable for this MIB. Created issue #27 to try to disentangle it a bit. |
You are right about the authors of this MIB, they could not have used a validator. |
Ok, I see... Will get back to you when I have something to share. Might take a few weeks, though. |
i have the same problem, fail to load mib file with mibble while iReasoning mib browser load it successfully |
Some vendors publish MIB files with trailing commas... |
One of the problems we are getting on an increasingly common basis is Mibble not being able to parse MIB files that all other MIB tools (e.g. iReasoning) can handle without issue.
It seems to boil down to the strictness of the parser adhering to the standard - other tools are a lot more accommodating.
Here is a typical example of loading a rack PDU MIB from Austin Hughes;
What are your thoughts?
Would it be possible to introduce a flag to indicate non-strict mode?
The text was updated successfully, but these errors were encountered: