diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-11-01 09:21:05 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-11-01 09:23:49 +0100 |
commit | 298975b5741340d4ce9fd6bbc09898531272d53d (patch) | |
tree | 0f11b603518e829f3b03d10d1e7f5c2d9bd24d73 /zebra | |
parent | Merge pull request #14546 from adrianomarto/ospf6-point-to-multipoint (diff) | |
download | frr-298975b5741340d4ce9fd6bbc09898531272d53d.tar.xz frr-298975b5741340d4ce9fd6bbc09898531272d53d.zip |
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 <donatas@opensourcerouting.org>
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/redistribute.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/zebra/redistribute.c b/zebra/redistribute.c index 71e795632..6121949ce 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); } |