diff options
author | Neale Ranns <neale@graphiant.com> | 2021-10-08 07:16:12 +0000 |
---|---|---|
committer | Neale Ranns <neale@graphiant.com> | 2021-11-15 08:42:26 +0000 |
commit | 50bd1d3e256154212198a31932896b07af5b129f (patch) | |
tree | 020ead7393316f8229f0f592f6cc8e1bc2daf6c0 /src/vnet/fib/fib_path.c | |
parent | 8d76ccf9cca5991d2f9b18035989ccb0baca1798 (diff) |
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
Diffstat (limited to 'src/vnet/fib/fib_path.c')
-rw-r--r-- | src/vnet/fib/fib_path.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vnet/fib/fib_path.c b/src/vnet/fib/fib_path.c index 209cf403c6e..d7b6091325b 100644 --- a/src/vnet/fib/fib_path.c +++ b/src/vnet/fib/fib_path.c @@ -1161,6 +1161,11 @@ FIXME comment fib_path_unresolve(path); path->fp_oper_flags |= FIB_PATH_OPER_FLAG_DROP; } + if (FIB_NODE_BW_REASON_FLAG_INTERFACE_BIND & ctx->fnbw_reason) + { + /* bind walks should appear here and pass silently up to + * to the fib_entry */ + } break; case FIB_PATH_TYPE_UDP_ENCAP: { |