mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 09:20:25 +00:00
bgpd: fix vpn import from local vrf with no retain
The BGP "no retain" VPN option avoids storing VPN prefixes that are not
imported in the incoming BGP table (aka. Adj RIB in). When a VPN import
policy is changed, BGP does a soft clear so that a prefix refresh is
requested from the peers. However, the import from local VPN prefixes
is never requested.
Fix this issue by requesting a local import refresh.
Fixes: a486300b26
("bgpd: implement retain route-target all behaviour")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
This commit is contained in:
parent
edd243280c
commit
b1c2c70828
@ -245,7 +245,6 @@ static inline void vpn_leak_postchange(enum vpn_policy_direction direction,
|
||||
if (!CHECK_FLAG(bgp_vpn->af_flags[afi][SAFI_MPLS_VPN],
|
||||
BGP_VPNVX_RETAIN_ROUTE_TARGET_ALL))
|
||||
bgp_clear_soft_in(bgp_vpn, afi, SAFI_MPLS_VPN);
|
||||
else
|
||||
vpn_leak_to_vrf_update_all(bgp_vrf, bgp_vpn, afi);
|
||||
}
|
||||
if (direction == BGP_VPN_POLICY_DIR_TOVPN) {
|
||||
|
Loading…
Reference in New Issue
Block a user