fib: re-evaluate the import/export state of a prefix. 00/34000/6
authorNeale Ranns <neale@graphiant.com>
Fri, 8 Oct 2021 07:16:12 +0000 (07:16 +0000)
committerNeale Ranns <neale@graphiant.com>
Mon, 15 Nov 2021 08:42:26 +0000 (08:42 +0000)
commit50bd1d3e256154212198a31932896b07af5b129f
tree020ead7393316f8229f0f592f6cc8e1bc2daf6c0
parent8d76ccf9cca5991d2f9b18035989ccb0baca1798
fib: re-evaluate the import/export state of a prefix.

Type: fix

re-evaluate the import/export state of a prefix when the interface it is attached to rebinds to a different table.
Only attached routes have import/export requirements, so we can back walk from the glean adjacency when the interface rebinds tables.
There are two cases to consider.
 1. the rebind may change the prefix from/to import
 2. the import VRF may change

Signed-off-by: Neale Ranns <neale@graphiant.com>
Change-Id: I25b6af43b3b2d8f701dfbe7a08710dc56b3f5778
src/vnet/adj/adj_glean.c
src/vnet/fib/fib_entry.c
src/vnet/fib/fib_entry_src.c
src/vnet/fib/fib_node.h
src/vnet/fib/fib_path.c
test/test_ip4.py