summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_vxlan.c
diff options
context:
space:
mode:
authorChirag Shah <chirag@cumulusnetworks.com>2019-10-15 20:26:32 +0200
committerChirag Shah <chirag@cumulusnetworks.com>2019-11-22 16:53:39 +0100
commit65e76a9bcf16e5af09665faa66c1bd6c2b1b859d (patch)
tree919c8be776ad7520c90aed4878e01df69c8d2a81 /zebra/zebra_vxlan.c
parentzebra: handle macvlan down event (diff)
downloadfrr-65e76a9bcf16e5af09665faa66c1bd6c2b1b859d.tar.xz
frr-65e76a9bcf16e5af09665faa66c1bd6c2b1b859d.zip
zebra: display proper field in debug statement
Ticket:CM-26622 Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_vxlan.c')
-rw-r--r--zebra/zebra_vxlan.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c
index dbc47223e..1d80dffcf 100644
--- a/zebra/zebra_vxlan.c
+++ b/zebra/zebra_vxlan.c
@@ -8583,10 +8583,14 @@ void zebra_vxlan_macvlan_down(struct interface *ifp)
assert(zif);
link_ifp = zif->link;
if (!link_ifp) {
- if (IS_ZEBRA_DEBUG_VXLAN)
+ if (IS_ZEBRA_DEBUG_VXLAN) {
+ 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,
- if_lookup_by_index_all_vrf(zif->link_ifindex));
+ ifp ? ifp->name : " ");
+ }
return;
}
link_zif = link_ifp->info;