Merge pull request #15010 from tlsalmin/master

zebra: Fix crash on macvlan link down/up
This commit is contained in:
Mark Stapp 2024-03-22 08:31:12 -04:00 committed by GitHub
commit 20e017c379
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5159,6 +5159,15 @@ void zebra_vxlan_macvlan_up(struct interface *ifp)
return;
link_ifp = zif->link;
if (!link_ifp) {
if (IS_ZEBRA_DEBUG_VXLAN)
zlog_debug(
"macvlan parent link is not found. Parent index %d ifp %s",
zif->link_ifindex,
ifindex2ifname(zif->link_ifindex,
ifp->vrf->vrf_id));
return;
}
link_zif = link_ifp->info;
assert(link_zif);