zebra: fix debug in macvlan down event

fix a debug where display parent interface name
only if it exists.

Ticket:CM-27733

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
This commit is contained in:
Chirag Shah 2020-01-03 15:34:44 -08:00
parent d8744f7247
commit c1c292e777

View File

@ -8624,9 +8624,8 @@ void zebra_vxlan_macvlan_down(struct interface *ifp)
struct interface *ifp;
ifp = if_lookup_by_index_all_vrf(zif->link_ifindex);
zlog_debug("macvlan %s parent link is not found. Parent index %d ifp %s",
ifp->name, zif->link_ifindex,
ifp ? ifp->name : " ");
zlog_debug("macvlan parent link is not found. Parent index %d ifp %s",
zif->link_ifindex, ifp ? ifp->name : " ");
}
return;
}