]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Do not allow redistribution for non-vrf tables 9088/head
authorDonald Sharp <sharpd@nvidia.com>
Mon, 19 Jul 2021 23:52:43 +0000 (19:52 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 20 Jul 2021 00:04:03 +0000 (20:04 -0400)
commit79a9ad1450ba776ef5b32a21158a72338c9c787a
treeb12516fa6a808aa3e3300cbb7442626a710864cf
parentfb8e437bcd53b123f1edc5ee86a163b9ff36aa07
zebra: Do not allow redistribution for non-vrf tables

Current code was allowing redistribution of kernel routes from
the non-default non vrf tables once FRR was already up and running.

In the case where we add `redistribute kernel` in an upper level
protocol we never consider the non-default vrf or non-vrf tables
so it is never accepted.

In the case where a kernel route is added after `redistribute kernel`
is already in place we were never looking at the fact that the
route was in a non-default non-vrf table.  This code fixes
that issue.

Fixes: #9073
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/redistribute.c