Commits

Anonymous committed 9640413

fix to MibVariable handling of the MIB, <empty-symbol> initializers

Comments (0)

Files changed (2)

   both items should be passed to request PDU through *Cmd() request
   initiation method, the items of authData object should be used only for
   LCD configuration.
+- Fix to MibVariable handling of the MIB, <empty-symbol> initializers.
 - Fix to outgoing queue processing order at socket transport. Now
   it's a FIFO discipline rather than LIFO.
 - Fix to NotificationOriginator's additionalVarBinds parameter - it is

pysnmp/entity/rfc3413/oneliner/mibvar.py

         if self.__state & (self.stOidOnly | self.stClean):
             return self
 
-        MibScalar, MibTableColumn, = mibViewController.mibBuilder.importSymbols(
-            'SNMPv2-SMI', 'MibScalar', 'MibTableColumn'
-        )
+        MibScalar, MibTableColumn, = mibViewController.mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTableColumn')
 
         if len(self.__args) == 1:  # OID or label
             try:
             if self.__args[1]:
                 self.__symName = self.__args[1]
             else:
-                oid, _, _ = mibViewController.getFirstNodeName(self.__args[0])
+                mibViewController.mibBuilder.loadModules(self.__modName)
+                oid, _, _ = mibViewController.getFirstNodeName(self.__modName)
                 _, self.__symName, _ = mibViewController.getNodeLocation(oid)
 
             mibNode, = mibViewController.mibBuilder.importSymbols(