summaryrefslogtreecommitdiffstats
path: root/bgpd
diff options
context:
space:
mode:
authorAbhinay Ramesh <rabhinay@vmware.com>2021-04-01 07:17:54 +0200
committerAbhinay Ramesh <rabhinay@vmware.com>2021-04-07 08:09:42 +0200
commit6b2433c63f7fd3027cea8e06ca45f85bd3eea6f2 (patch)
tree70ff977d93826cb0c6edc0797b3f259f3078e8e5 /bgpd
parentbgpd: vrf route leaking, fix vrf delete (diff)
downloadfrr-6b2433c63f7fd3027cea8e06ca45f85bd3eea6f2.tar.xz
frr-6b2433c63f7fd3027cea8e06ca45f85bd3eea6f2.zip
bgpd: vrf route leaking, fix vrf redistribute
Description: After FRR restart, routes are not getting redistributed; when routes added first and then 'redistribute static' cmd is issued. During the frr restart, vrf_id will be unknown, so irrespective of redistribution, we set the redistribute vrf bitmap. Later, when we add a route and then issue 'redistribute' cmd, we check the redistribute vrf bitmap and return CMD_WARNING; zebra_redistribute_add also checks the redistribute vrf bitmap and returns. Instead of checking the redistribute vrf bitmap, always set it anyways. Co-authored-by: Santosh P K <sapk@vmware.com> Co-authored-by: Kantesh Mundaragi <kmundaragi@vmware.com> Signed-off-by: Abhinay Ramesh <rabhinay@vmware.com>
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_zebra.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c
index d1912db01..ae0bf7fe9 100644
--- a/bgpd/bgp_zebra.c
+++ b/bgpd/bgp_zebra.c
@@ -1700,9 +1700,6 @@ int bgp_redistribute_set(struct bgp *bgp, afi_t afi, int type,
redist_add_instance(&zclient->mi_redist[afi][type], instance);
} else {
- if (vrf_bitmap_check(zclient->redist[afi][type], bgp->vrf_id))
- return CMD_WARNING;
-
#ifdef ENABLE_BGP_VNC
if (EVPN_ENABLED(bgp) && type == ZEBRA_ROUTE_VNC_DIRECT) {
vnc_export_bgp_enable(