Merge pull request #5938 from donaldsharp/redistribute_afi

zebra: Only redistribute default routes of the right afi
This commit is contained in:
Sri Mohana Singamsetty 2020-03-10 15:32:16 -07:00 committed by GitHub
commit e5d9aae349
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,6 +75,10 @@ static void zebra_redistribute_default(struct zserv *client, vrf_id_t vrf_id)
struct route_entry *newre;
for (afi = AFI_IP; afi <= AFI_IP6; afi++) {
if (!vrf_bitmap_check(client->redist_default[afi], vrf_id))
continue;
/* Lookup table. */
table = zebra_vrf_table(afi, SAFI_UNICAST, vrf_id);
if (!table)