Skip to content

fix: tolerate lowercase type identifiers in SEQUENCE OF#17

Open
Jellyfrog wants to merge 1 commit intolextudio:mainfrom
Jellyfrog:fix/lowercase-sequence-of-types
Open

fix: tolerate lowercase type identifiers in SEQUENCE OF#17
Jellyfrog wants to merge 1 commit intolextudio:mainfrom
Jellyfrog:fix/lowercase-sequence-of-types

Conversation

@Jellyfrog
Copy link
Copy Markdown

Add relaxed grammar option to handle MIB files that incorrectly use lowercase type identifiers in SEQUENCE OF declarations.

Please note this code was generated by AI, but tested :)

Add relaxed grammar option to handle MIB files that incorrectly use
lowercase type identifiers in SEQUENCE OF declarations.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jan 22, 2026

CLA assistant check
All committers have signed the CLA.

@lextm
Copy link
Copy Markdown

lextm commented Jan 22, 2026

You need to disclose a few MIB documents that have such issues and not fixed by their respective vendors.

It wouldn't make any sense to make this package more complicated, just to help hide bugs on the vendor side.

@Jellyfrog
Copy link
Copy Markdown
Author

A few from https://github.com/librenms/librenms/tree/master/mibs

Failed MIBs: ALVARION-DOT11-WLAN-TST-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value brzLighteNewVvaEntry at MIB ALVARION-DOT11-WLAN-TST-MIB, line 545)
Failed MIBs: PowerNet-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value pduUnitPsFunc at MIB PowerNet-MIB, line 1089)
 NMS-CHASSIS (Bad grammar near token type LOWERCASE_IDENTIFIER, value nmsAuxEntry at MIB NMS-CHASSIS, line 1199)
Failed MIBs: BISON-ROUTER-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value pppoeEntry at MIB BISON-ROUTER-MIB, line 99)
 NSCRTV-FTTX-EPON-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value ponOnuAuthenticationModeEntry at MIB NSCRTV-FTTX-EPON-MIB, line 8693)
Failed MIBs: DAHUA-SNMP-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value regularStreamInfoTableEntry at MIB DAHUA-SNMP-MIB, line 669)
 SLE-PERFORMANCEMGMT-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value sleSfpmonThresholdEntry at MIB SLE-PERFORMANCEMGMT-MIB, line 7271)
Failed MIBs: DCN-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value priPowerEntry at MIB DCN-MIB, line 2829)
Failed MIBs: DLB-RADIO3-DRV-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value dlbRdo3StatsEntry at MIB DLB-RADIO3-DRV-MIB, line 89)
 DELLEMC-OS10-CHASSIS-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value os10ChassisProductBase at MIB DELLEMC-OS10-CHASSIS-MIB, line 273)
Failed MIBs: DLINKSW-NETWORK-ACCESS-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value 0xffffffff at MIB DLINKSW-NETWORK-ACCESS-MIB, line 973)
Failed MIBs: ECS4100-52T-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value radiusServerType at MIB ECS4100-52T-MIB, line 54303)
Failed MIBs: EDS-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value dTrapEntry at MIB EDS-MIB, line 155)
Failed MIBs: TEMPUSLXUNISON-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value cdmaNTPNotPolling at MIB TEMPUSLXUNISON-MIB, line 799)
Failed MIBs: ENLOGIC-PDU2-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value pdupowershareEntry at MIB ENLOGIC-PDU2-MIB, line 2039)
Failed MIBs: XMUX4-PLUS (Bad grammar near token type LOWERCASE_IDENTIFIER, value muxEntry at MIB XMUX4-PLUS, line 247)
 FS-AC-MGMT-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value fsApWiredEntry at MIB FS-AC-MGMT-MIB, line 8343)
 GBNDeviceSWAPI-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value oemQueueWeightEntry at MIB GBNDeviceSWAPI-MIB, line 4195)
 GBNL3IPPool-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value ipPoolEntry at MIB GBNL3IPPool-MIB, line 105)
 GBNL3Rip-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value gbnL3RipEntry at MIB GBNL3Rip-MIB, line 161)
 GBNServiceCM-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value gbn8021xCmConfEntry at MIB GBNServiceCM-MIB, line 125)
 GBNServiceRADIUS-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value gbnRadiusConfEntry at MIB GBNServiceRADIUS-MIB, line 2213)
 LAG-ARCH-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value lagTrunkGroupEntry at MIB LAG-ARCH-MIB, line 41)
 NSCRTV-EPON-IGMP-MGM-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value igmpOnuUniEntry at MIB NSCRTV-EPON-IGMP-MGM-MIB, line 1293)
Failed MIBs: GANDI-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value pktjTable at MIB GANDI-MIB, line 49)
Failed MIBs: GRANDSTREAM-GWN-PRODUCTS-SWITCH-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value alarmConfigEntry at MIB GRANDSTREAM-GWN-PRODUCTS-SWITCH-MIB, line 369)
Failed MIBs: HIKVISION-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value hikDiskEntry at MIB HIKVISION-MIB, line 417)
 HUAWEI-BRAS-IPTN-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value hwIptnEnableEntry at MIB HUAWEI-BRAS-IPTN-MIB, line 93)
 GGSN-MIB (Bad grammar near token type LOWERCASE_IDENTIFIER, value pgwApnSaccRatingGroupStats at MIB GGSN-MIB, line 13269)

@lextm lextm added priority:low Low priority due to limited impact warning:faulty mib Related to MIB documents that don't follow the standards or conventions labels Jan 23, 2026
@lextm
Copy link
Copy Markdown

lextm commented Jan 23, 2026

Unless there is a compelling example with significant impact on user base, this pull request is not going to be accepted. Problematic MIB documents should be fixed by their vendors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:low Low priority due to limited impact warning:faulty mib Related to MIB documents that don't follow the standards or conventions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants