mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-03 15:17:05 +00:00
Merge pull request #5219 from pguibert6WIND/interface_same_name
staticd: check tuple (vrf, name) when interface events received
This commit is contained in:
commit
3f8aebe012
@ -310,10 +310,14 @@ static void static_ifindex_update_af(struct interface *ifp, bool up, afi_t afi,
|
|||||||
if (up) {
|
if (up) {
|
||||||
if (strcmp(si->ifname, ifp->name))
|
if (strcmp(si->ifname, ifp->name))
|
||||||
continue;
|
continue;
|
||||||
|
if (si->nh_vrf_id != ifp->vrf_id)
|
||||||
|
continue;
|
||||||
si->ifindex = ifp->ifindex;
|
si->ifindex = ifp->ifindex;
|
||||||
} else {
|
} else {
|
||||||
if (si->ifindex != ifp->ifindex)
|
if (si->ifindex != ifp->ifindex)
|
||||||
continue;
|
continue;
|
||||||
|
if (si->nh_vrf_id != ifp->vrf_id)
|
||||||
|
continue;
|
||||||
si->ifindex = IFINDEX_INTERNAL;
|
si->ifindex = IFINDEX_INTERNAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user