2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-16 18:49:04 +00:00

Suppress extraneous slp trace errors

If a half-behaving peer appears, suppress the error and permit a retry later.
This commit is contained in:
Jarrod Johnson 2022-01-07 07:17:27 -05:00
parent 60398bf8f7
commit d18d7592d3

View File

@ -534,7 +534,10 @@ def process_peer(newmacs, known_peers, peerbymacaddress, peer):
if mac in peerbymacaddress:
peerbymacaddress[mac]['addresses'].append(peer)
else:
q = query_srvtypes(peer)
try:
q = query_srvtypes(peer)
except Exception as e:
q = None
if not q or not q[0]:
# SLP might have started and not ready yet
# ignore for now