mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-02 13:04:01 +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 (strcmp(si->ifname, ifp->name))
|
||||
continue;
|
||||
if (si->nh_vrf_id != ifp->vrf_id)
|
||||
continue;
|
||||
si->ifindex = ifp->ifindex;
|
||||
} else {
|
||||
if (si->ifindex != ifp->ifindex)
|
||||
continue;
|
||||
if (si->nh_vrf_id != ifp->vrf_id)
|
||||
continue;
|
||||
si->ifindex = IFINDEX_INTERNAL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user