mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 06:03:10 +00:00
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>
This commit is contained in:
parent
8e3a96e846
commit
298975b574
@ -135,10 +135,6 @@ static void zebra_redistribute(struct zserv *client, int type,
|
|||||||
if (!zebra_check_addr(&rn->p))
|
if (!zebra_check_addr(&rn->p))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (type == ZEBRA_ROUTE_ADD && is_table_direct &&
|
|
||||||
newre->vrf_id != VRF_DEFAULT)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
zsend_redistribute_route(ZEBRA_REDISTRIBUTE_ROUTE_ADD,
|
zsend_redistribute_route(ZEBRA_REDISTRIBUTE_ROUTE_ADD,
|
||||||
client, rn, newre, is_table_direct);
|
client, rn, newre, is_table_direct);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user