mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 14:31:51 +00:00
vrrpd: handle failure to lookup parent iface
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
0dcbec72aa
commit
3cb543cf1e
@ -212,6 +212,15 @@ static struct vrrp_vrouter *vrrp_lookup_by_if_mvl(struct interface *mvl_ifp)
|
||||
}
|
||||
|
||||
p = if_lookup_by_index(mvl_ifp->link_ifindex, VRF_DEFAULT);
|
||||
|
||||
if (!p) {
|
||||
DEBUGD(&vrrp_dbg_zebra,
|
||||
VRRP_LOGPFX
|
||||
"Tried to lookup interface %d, parent of %s, but it doesn't exist",
|
||||
mvl_ifp->link_ifindex, mvl_ifp->name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
uint8_t vrid = mvl_ifp->hw_addr[5];
|
||||
|
||||
return vrrp_lookup(p, vrid);
|
||||
|
Loading…
Reference in New Issue
Block a user