From 5d0423c38b8fa1cdec33ed3857a5cbbdc79a1ffc Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 5 Mar 2021 13:08:25 -0500 Subject: [PATCH] Attempt refresh of neigh table on miss When an address is new it may not be in the last captured neighbor table. Induce refresh before deciding that neighbor is unavailable. --- confluent_server/confluent/discovery/protocols/slp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_server/confluent/discovery/protocols/slp.py b/confluent_server/confluent/discovery/protocols/slp.py index 30e9de4f..61573039 100644 --- a/confluent_server/confluent/discovery/protocols/slp.py +++ b/confluent_server/confluent/discovery/protocols/slp.py @@ -107,6 +107,8 @@ def _parse_slp_packet(packet, peer, rsps, xidmap): if '%' in addr: addr = addr[:addr.index('%')] mac = None + if addr not in neighutil.neightable: + neighutil.update_neigh() if addr in neighutil.neightable: identifier = neighutil.neightable[addr] mac = identifier