mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-26 08:44:39 +00:00
Merge pull request #7670 from ton31337/fix/bgpd_nexhop_handling_for_zebra
bgpd: Handle IPv6 prefixes with IPv4 nexthops for zebra
This commit is contained in:
commit
7fbdb03103
@ -1347,11 +1347,21 @@ void bgp_zebra_announce(struct bgp_dest *dest, const struct prefix *p,
|
||||
|
||||
nexthop = bgp_path_info_to_ipv6_nexthop(mpinfo_cp,
|
||||
&ifindex);
|
||||
|
||||
if (!nexthop)
|
||||
nh_updated = update_ipv4nh_for_route_install(
|
||||
nh_othervrf,
|
||||
nh_othervrf ? info->extra->bgp_orig
|
||||
: bgp,
|
||||
&mpinfo_cp->attr->nexthop,
|
||||
mpinfo_cp->attr, is_evpn, api_nh);
|
||||
else
|
||||
nh_updated = update_ipv6nh_for_route_install(
|
||||
nh_othervrf, nh_othervrf ?
|
||||
info->extra->bgp_orig : bgp,
|
||||
nexthop, ifindex,
|
||||
mpinfo, info, is_evpn, api_nh);
|
||||
nh_othervrf,
|
||||
nh_othervrf ? info->extra->bgp_orig
|
||||
: bgp,
|
||||
nexthop, ifindex, mpinfo, info, is_evpn,
|
||||
api_nh);
|
||||
}
|
||||
|
||||
/* Did we get proper nexthop info to update zebra? */
|
||||
|
Loading…
Reference in New Issue
Block a user