ip-neighbor: Handle local MAC address change for incomplete adjacencies 88/33488/2
authorNeale Ranns <neale@graphiant.com>
Fri, 13 Aug 2021 08:10:59 +0000 (08:10 +0000)
committerNeale Ranns <neale@graphiant.com>
Mon, 13 Sep 2021 08:36:08 +0000 (08:36 +0000)
commitea8adf76375389e4c46c1a2eb903743142e44a8d
treef11a5664938575cf934e4369ae14984966ab8c7e
parentcba87100f1dd6d8b07eab7d9914bb80d469b982f
ip-neighbor: Handle local MAC address change for incomplete adjacencies

Type: fix

When the local MAC address of an interface changes the rewrite strings
of all adjacency types need to be updated - this patch fixes the missing
case of incomplete adjacencies.
I moved the update of all adj types into the adj module, since if the
complete adjs were done by the ip-neighbour module and incomplete ones
by adj module, that would mean two walks of the adj DB, as it is not
possible to walk only a specific type.
UT is updated to include the missing case.

Signed-off-by: Neale Ranns <neale@graphiant.com>
Signed-off-by: Ivan Shvedunov <ivan4th@gmail.com>
Change-Id: I36af94976c645bdd0d4d3bc0093b24d7d077e9d7
src/vnet/adj/adj_glean.c
src/vnet/adj/adj_glean.h
src/vnet/adj/adj_nbr.c
src/vnet/ethernet/interface.c
src/vnet/ip-neighbor/ip_neighbor.c
test/test_neighbor.py