diff options
-rw-r--r-- | pysnmp/hlapi/asyncore/cmdgen.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pysnmp/hlapi/asyncore/cmdgen.py b/pysnmp/hlapi/asyncore/cmdgen.py index e4d20070..64623c24 100644 --- a/pysnmp/hlapi/asyncore/cmdgen.py +++ b/pysnmp/hlapi/asyncore/cmdgen.py @@ -337,6 +337,10 @@ class CommandGenerator: self.__asynCmdGen = AsynCommandGenerator(snmpEngine) else: self.__asynCmdGen = asynCmdGen + + # compatibility attributes + self.snmpEngine = self.__asynCmdGen.snmpEngine + self.mibViewController = self.__asynCmdGen.mibViewController def getCmd(self, authData, transportTarget, *varNames): def __cbFun( |