You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
685 B
24 lines
685 B
#
|
|
# This file is part of pysmi software.
|
|
#
|
|
# Copyright (c) 2015-2019, Ilya Etingof <etingof@gmail.com>
|
|
# License: http://snmplabs.com/pysmi/license.html
|
|
#
|
|
from pysmi.mibinfo import MibInfo
|
|
from pysmi.codegen.base import AbstractCodeGen
|
|
from pysmi import debug
|
|
|
|
|
|
class NullCodeGen(AbstractCodeGen):
|
|
"""Dummy code generation backend.
|
|
|
|
Could be used for disabling code generation at *MibCompiler*.
|
|
"""
|
|
|
|
def genCode(self, ast, symbolTable, **kwargs):
|
|
debug.logger & debug.flagCodegen and debug.logger('%s invoked' % self.__class__.__name__)
|
|
return MibInfo(oid=None, name='', imported=[]), ''
|
|
|
|
def genIndex(self, mibsMap, **kwargs):
|
|
return ''
|