]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: display proper field in debug statement
authorChirag Shah <chirag@cumulusnetworks.com>
Tue, 15 Oct 2019 18:26:32 +0000 (11:26 -0700)
committerChirag Shah <chirag@cumulusnetworks.com>
Fri, 22 Nov 2019 15:53:39 +0000 (07:53 -0800)
Ticket:CM-26622

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
zebra/zebra_vxlan.c

index dbc47223e1940c1616d5d12a8ddbfef9749f1290..1d80dffcf678f7555dbcd9951f7ceea7422d6940 100644 (file)
@@ -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;