Macvlan down event have sentinel check of its parent
link presence.
Ticket:CM-26622
Reviewed By:CCR-9326
Testing Done:
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
zif = ifp->info;
assert(zif);
link_ifp = zif->link;
+ if (!link_ifp) {
+ if (IS_ZEBRA_DEBUG_VXLAN)
+ zlog_debug("macvlan %s parent link is not found. Parent index %d ifp %s",
+ ifp->name, zif->link_ifindex,
+ if_lookup_by_index_all_vrf(zif->link_ifindex));
+ return;
+ }
link_zif = link_ifp->info;
assert(link_zif);