]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Display ifindex of interface being installed on
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 1 May 2020 15:57:02 +0000 (11:57 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 1 May 2020 15:58:20 +0000 (11:58 -0400)
When installing a nexthop group, dump out the ifindex of the
nexthop being installed as a bit more data for the developer.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/rt_netlink.c

index 4630b8a8e999f11f858a4d6215cc9d7ae214e0d0..a65183305e5505bc175453ca5bb18fff2add5bd8 100644 (file)
@@ -2091,8 +2091,8 @@ static int netlink_nexthop(int cmd, struct zebra_dplane_ctx *ctx)
 nexthop_done:
 
                        if (IS_ZEBRA_DEBUG_KERNEL)
-                               zlog_debug("%s: ID (%u): %pNHv vrf %s(%u) %s ",
-                                          __func__, id, nh,
+                               zlog_debug("%s: ID (%u): %pNHv(%d) vrf %s(%u) %s ",
+                                          __func__, id, nh, nh->ifindex,
                                           vrf_id_to_name(nh->vrf_id),
                                           nh->vrf_id, label_buf);
                }