mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-26 03:19:48 +00:00
Fix missing portname in lldp data
Root cause was pysnmp returning extraneous leftover data causing calling code to overrite good data.
This commit is contained in:
parent
8b37199654
commit
ca7711b373
@ -99,6 +99,10 @@ class Session(object):
|
||||
elif errnum:
|
||||
raise exc.ConfluentException(errnum.prettyPrint())
|
||||
for ans in answers:
|
||||
if not obj[0].isPrefixOf(ans[0]):
|
||||
# PySNMP returns leftovers in a bulk command
|
||||
# filter out such leftovers
|
||||
break
|
||||
yield ans
|
||||
except snmperr.WrongValueError:
|
||||
raise exc.TargetEndpointBadCredentials('Invalid SNMPv3 password')
|
||||
|
Loading…
Reference in New Issue
Block a user