2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-24 10:30:22 +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 e583d34555
commit 5d0423c38b

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