mirror of
				https://github.com/xcat2/confluent.git
				synced 2025-10-31 11:22:28 +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:
		| @@ -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') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user