summaryrefslogtreecommitdiffstats
path: root/src/vnet/fib/fib_table.c
diff options
context:
space:
mode:
authorNeale Ranns <neale@graphiant.com>2021-07-09 13:03:52 +0000
committerDamjan Marion <dmarion@me.com>2021-07-13 19:26:07 +0000
commit66edaf209fcfa618f42c0e6d21873a31de86b412 (patch)
treee7faf670a70fe98ce284e3bfe79afdb77f8c46fd /src/vnet/fib/fib_table.c
parent48057bd23433a352338358ca1f6cdc6cebd84f08 (diff)
fib: Set the GLEAN flag on attached export routes so that the SAS works
correctly. Type: fix Signed-off-by: Neale Ranns <neale@graphiant.com> Change-Id: I4bc2eb394a8f9d01c5a12de2ce963c22209d5439
Diffstat (limited to 'src/vnet/fib/fib_table.c')
-rw-r--r--src/vnet/fib/fib_table.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vnet/fib/fib_table.c b/src/vnet/fib/fib_table.c
index eaeee5bb921..7cc989d6324 100644
--- a/src/vnet/fib/fib_table.c
+++ b/src/vnet/fib/fib_table.c
@@ -531,6 +531,11 @@ fib_table_route_path_fixup (const fib_prefix_t *prefix,
fib_prefix_normalize(prefix, &path->frp_connected);
}
}
+ else if (fib_route_path_is_attached(path))
+ {
+ path->frp_flags |= FIB_ROUTE_PATH_GLEAN;
+ fib_prefix_normalize(prefix, &path->frp_connected);
+ }
if (*eflags & FIB_ENTRY_FLAG_DROP)
{
path->frp_flags |= FIB_ROUTE_PATH_DROP;