Fix var-bind initialization from ObjectIdentity at hlapi
parent
91fe21ab60
commit
c950f407ea
|
@ -23,13 +23,15 @@ Revision 5.0.0, released 2018-07-??
|
|||
methods. The goal is to let MIB objects access/modify whatever
|
||||
custom Python objects they need while being called back.
|
||||
|
||||
Revision 4.4.5, released 2018-04-XX
|
||||
Revision 4.4.5, released 2018-07-XX
|
||||
-----------------------------------
|
||||
|
||||
- Fixed zero SNMPv3 boots/time values put in SNMPv3 TRAP messages
|
||||
- Fixed broken InetAddressType rendering caused by a pyasn1 regression
|
||||
- Fixed typo in RFC1158 module
|
||||
- Fixed possible infinite loop in GETBULK response PDU builder
|
||||
- Fixed memory leak in the `config.delContext()` VACM management harness
|
||||
- Fixed var-binds initialization from `ObjectIdentity` object at `hlapi`
|
||||
|
||||
Revision 4.4.4, released 2018-01-03
|
||||
-----------------------------------
|
||||
|
|
|
@ -29,8 +29,8 @@ class CommandGeneratorVarBinds(AbstractVarBinds):
|
|||
for varBind in varBinds:
|
||||
if isinstance(varBind, ObjectType):
|
||||
pass
|
||||
elif isinstance(varBind[0], ObjectIdentity):
|
||||
varBind = ObjectType(*varBind)
|
||||
elif isinstance(varBind, ObjectIdentity):
|
||||
varBind = ObjectType(varBind)
|
||||
elif isinstance(varBind[0][0], tuple): # legacy
|
||||
varBind = ObjectType(ObjectIdentity(varBind[0][0][0], varBind[0][0][1], *varBind[0][1:]), varBind[1])
|
||||
else:
|
||||
|
@ -57,8 +57,8 @@ class NotificationOriginatorVarBinds(AbstractVarBinds):
|
|||
for varBind in varBinds:
|
||||
if isinstance(varBind, ObjectType):
|
||||
pass
|
||||
elif isinstance(varBind[0], ObjectIdentity):
|
||||
varBind = ObjectType(*varBind)
|
||||
elif isinstance(varBind, ObjectIdentity):
|
||||
varBind = ObjectType(varBind)
|
||||
else:
|
||||
varBind = ObjectType(ObjectIdentity(varBind[0]), varBind[1])
|
||||
__varBinds.append(varBind.resolveWithMib(mibViewController))
|
||||
|
|
Loading…
Reference in New Issue