2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-13 01:00:02 +00:00

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.
This commit is contained in:
Jarrod Johnson 2021-03-05 13:08:25 -05:00
parent da7b7c8923
commit e3c17491e5

View File

@ -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