From 298975b5741340d4ce9fd6bbc09898531272d53d Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Wed, 1 Nov 2023 10:21:05 +0200 Subject: [PATCH] zebra: Remove vrf_id check against VRF_DEFAULT for zebra_redistribute() A dead code. When `is_table_direct` is true, vrf_id is always VRF_DEFAULT. So this block is never called. CID 1570863. Signed-off-by: Donatas Abraitis --- zebra/redistribute.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/zebra/redistribute.c b/zebra/redistribute.c index 71e7956324..6121949ced 100644 --- a/zebra/redistribute.c +++ b/zebra/redistribute.c @@ -135,10 +135,6 @@ static void zebra_redistribute(struct zserv *client, int type, if (!zebra_check_addr(&rn->p)) continue; - if (type == ZEBRA_ROUTE_ADD && is_table_direct && - newre->vrf_id != VRF_DEFAULT) - continue; - zsend_redistribute_route(ZEBRA_REDISTRIBUTE_ROUTE_ADD, client, rn, newre, is_table_direct); } -- 2.39.5