mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 01:42:48 +00:00
bgpd: fix remove vpn aggregated prefix upon unconfiguration
When unconfiguring an aggregated prefix, the VPN prefix is not removed. Fix this by refreshing the VPN leak when the aggregated route is or is not available. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
bccf1e5447
commit
32088c43a8
@ -8015,6 +8015,9 @@ static void bgp_aggregate_install(
|
||||
bgp_process(bgp, dest, new, afi, safi);
|
||||
if (debug)
|
||||
zlog_debug(" aggregate %pFX: installed", p);
|
||||
if (SAFI_UNICAST == safi && (bgp->inst_type == BGP_INSTANCE_TYPE_VRF ||
|
||||
bgp->inst_type == BGP_INSTANCE_TYPE_DEFAULT))
|
||||
vpn_leak_from_vrf_update(bgp_get_default(), bgp, new);
|
||||
} else {
|
||||
uninstall_aggregate_route:
|
||||
/* Withdraw the aggregate route from routing table. */
|
||||
@ -8023,6 +8026,11 @@ static void bgp_aggregate_install(
|
||||
bgp_process(bgp, dest, pi, afi, safi);
|
||||
if (debug)
|
||||
zlog_debug(" aggregate %pFX: uninstall", p);
|
||||
if (SAFI_UNICAST == safi &&
|
||||
(bgp->inst_type == BGP_INSTANCE_TYPE_VRF ||
|
||||
bgp->inst_type == BGP_INSTANCE_TYPE_DEFAULT)) {
|
||||
vpn_leak_from_vrf_withdraw(bgp_get_default(), bgp, pi);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user