mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 11:44:16 +00:00
Merge pull request #17632 from opensourcerouting/fix/backport_9b0b9282d317a9aeab36d9a8b08a35fe9a172c4b_10.0
bgpd: Fix bgp core with a possible Intf delete (backport)
This commit is contained in:
commit
5af15b0f0f
@ -1166,9 +1166,10 @@ static bool update_ipv6nh_for_route_install(int nh_othervrf, struct bgp *nh_bgp,
|
|||||||
ifindex =
|
ifindex =
|
||||||
pi->peer->nexthop.ifp->ifindex;
|
pi->peer->nexthop.ifp->ifindex;
|
||||||
if (!ifindex) {
|
if (!ifindex) {
|
||||||
if (pi->peer->conf_if)
|
if (pi->peer->conf_if) {
|
||||||
ifindex = pi->peer->ifp->ifindex;
|
if (pi->peer->ifp)
|
||||||
else if (pi->peer->ifname)
|
ifindex = pi->peer->ifp->ifindex;
|
||||||
|
} else if (pi->peer->ifname)
|
||||||
ifindex = ifname2ifindex(
|
ifindex = ifname2ifindex(
|
||||||
pi->peer->ifname,
|
pi->peer->ifname,
|
||||||
pi->peer->bgp->vrf_id);
|
pi->peer->bgp->vrf_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user