mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-09 23:32:59 +00:00
bgpd: Stop overriding nexthop when BGP unnumberred
When we use vrf-to-vrf export, the nexthop has already not been overridden when the peer is BGP unnumberred. However, when we use normal export, the nexthop will be oberridden. This behavior will make the VPN routes invalid in VPN RIB. This PR stops overriding nexthop even if we use normal export. Signed-off-by: Ryoga Saito <ryoga.saito@linecorp.com>
This commit is contained in:
parent
c7e804c900
commit
f784007d67
@ -1505,7 +1505,8 @@ void vpn_leak_from_vrf_update(struct bgp *to_bgp, /* to */
|
|||||||
} else {
|
} else {
|
||||||
if (!CHECK_FLAG(from_bgp->af_flags[afi][SAFI_UNICAST],
|
if (!CHECK_FLAG(from_bgp->af_flags[afi][SAFI_UNICAST],
|
||||||
BGP_CONFIG_VRF_TO_VRF_EXPORT)) {
|
BGP_CONFIG_VRF_TO_VRF_EXPORT)) {
|
||||||
if (afi == AFI_IP) {
|
if (afi == AFI_IP &&
|
||||||
|
!BGP_ATTR_NEXTHOP_AFI_IP6(path_vrf->attr)) {
|
||||||
/*
|
/*
|
||||||
* For ipv4, copy to multiprotocol
|
* For ipv4, copy to multiprotocol
|
||||||
* nexthop field
|
* nexthop field
|
||||||
|
Loading…
Reference in New Issue
Block a user