etingof / pysnmp

Python SNMP library
http://snmplabs.com/pysnmp/
BSD 2-Clause "Simplified" License
576 stars 196 forks source link

MibCompiler error when node name is 'as',the key world change to 'pysmi_as' #455

Closed BugMakerLee closed 9 months ago

BugMakerLee commented 9 months ago

my pysmi version is 0.3.4

the error code is in jsondoc.py

method: genCode(self, ast, symbolTable, **kwargs)

for sym in self.symbolTable[self.moduleName[0]]['_symtable_order']: if sym not in self._out: raise error.PySmiCodegenError('No generated code for symbol %s' % sym) the sym is nodeName that has been trans,but the name in self.out is not so the error happened