diff --git a/confluent_server/confluent/snmputil.py b/confluent_server/confluent/snmputil.py index aa48b93e..ae6c39b6 100644 --- a/confluent_server/confluent/snmputil.py +++ b/confluent_server/confluent/snmputil.py @@ -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')