mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 18:56:40 +00:00
Revert "bgpd: vrf route leaking, fix vrf redistribute"
This reverts commit 6b2433c63f
.
This commit is contained in:
parent
03d39784e7
commit
d9083050c8
@ -1700,6 +1700,9 @@ int bgp_redistribute_set(struct bgp *bgp, afi_t afi, int type,
|
|||||||
|
|
||||||
redist_add_instance(&zclient->mi_redist[afi][type], instance);
|
redist_add_instance(&zclient->mi_redist[afi][type], instance);
|
||||||
} else {
|
} else {
|
||||||
|
if (vrf_bitmap_check(zclient->redist[afi][type], bgp->vrf_id))
|
||||||
|
return CMD_WARNING;
|
||||||
|
|
||||||
#ifdef ENABLE_BGP_VNC
|
#ifdef ENABLE_BGP_VNC
|
||||||
if (EVPN_ENABLED(bgp) && type == ZEBRA_ROUTE_VNC_DIRECT) {
|
if (EVPN_ENABLED(bgp) && type == ZEBRA_ROUTE_VNC_DIRECT) {
|
||||||
vnc_export_bgp_enable(
|
vnc_export_bgp_enable(
|
||||||
|
@ -337,12 +337,17 @@ void zebra_redistribute_add(ZAPI_HANDLER_ARGS)
|
|||||||
zvrf_id(zvrf), afi);
|
zvrf_id(zvrf), afi);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (IS_ZEBRA_DEBUG_EVENT)
|
if (!vrf_bitmap_check(client->redist[afi][type],
|
||||||
zlog_debug("%s: setting vrf %s(%u) redist bitmap",
|
zvrf_id(zvrf))) {
|
||||||
__func__, VRF_LOGNAME(zvrf->vrf),
|
if (IS_ZEBRA_DEBUG_EVENT)
|
||||||
zvrf_id(zvrf));
|
zlog_debug(
|
||||||
vrf_bitmap_set(client->redist[afi][type], zvrf_id(zvrf));
|
"%s: setting vrf %s(%u) redist bitmap",
|
||||||
zebra_redistribute(client, type, 0, zvrf_id(zvrf), afi);
|
__func__, VRF_LOGNAME(zvrf->vrf),
|
||||||
|
zvrf_id(zvrf));
|
||||||
|
vrf_bitmap_set(client->redist[afi][type],
|
||||||
|
zvrf_id(zvrf));
|
||||||
|
zebra_redistribute(client, type, 0, zvrf_id(zvrf), afi);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_failure:
|
stream_failure:
|
||||||
|
Loading…
Reference in New Issue
Block a user