You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's me again. I've faced a rare MIB file that contains hex string under Integer syntax type. Would it be much trouble for you to update the parser module to be something like this?
I have some mixed feelings about this item. To start with, the syntax referenced is not valid ASN.1 for a Named Number. This syntax is also not supported by libsmi, which is what this project was based on. It does appear to be supported by Net-SNMP, but looking through the source code, it appears to be a side-effect of the way that parser is written and not necessarily intended.
The goal of this project is to be as standards-compliant as possible. I understand that not all vendors consistently adhere to those same standards while developing their MIBs, so concessions have been made for some proposed/draft standards, but I do not want to encourage that practice. I know that ultimately comes back on the end-user though and not the vendor and want to be cognizant of that.
I have looked through all the MIBs (thousands) currently in my collection and this is the only file that I see using this syntax. The change is also more extensive than just the line of code referenced, as it breaks the API for any code consuming that Value and expecting an integer. If it was more widespread, then I would be more inclined to include support, but I will not be doing that for this one-off at this time.
Hi there,
It's me again. I've faced a rare MIB file that contains hex string under Integer syntax type. Would it be much trouble for you to update the parser module to be something like this?
gosmi/parser/common.go
Line 122 in 5a282bd
Please find the line 111 in the attached as a reference. This MIB can be found online from here too under the name "AprisaXECardType".
I look forward to hearing from you soon.
Cheers.
4RF-APRISAXE-TC.zip
The text was updated successfully, but these errors were encountered: