2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-03-01 00:31:42 +00:00

Fix stub from refactor

foobar was a stand-in for continue to
allow refactor, and needed
to be changed to return.
This commit is contained in:
Jarrod Johnson 2021-10-05 08:04:58 -04:00
parent 1a80d9f31a
commit 1fda0e50d8

View File

@ -516,18 +516,18 @@ def snoop(handler, protocol=None):
def process_peer(newmacs, known_peers, peerbymacaddress, peer):
mac = neighutil.get_hwaddr(peer[0])
if not mac:
foobar
return
known_peers.add(peer)
if mac in peerbymacaddress:
peerbymacaddress[mac]['addresses'].append(peer)
else:
q = query_srvtypes(peer)
if not q or not q[0]:
# SLP might have started and not ready yet
# ignore for now
# SLP might have started and not ready yet
# ignore for now
known_peers.discard(peer)
foobar
# we want to prioritize the very well known services
return
# we want to prioritize the very well known services
svcs = []
for svc in q:
if svc in _slp_services: