zebra: Add debug statement for nexthop netlink messages

Add the zebra kernel debug statement for nexthop messages
so we can see them via vtysh.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
This commit is contained in:
Stephen Worley 2019-03-06 13:42:05 -05:00
parent 1909e63acf
commit e1536fce85

View File

@ -1861,8 +1861,6 @@ int kernel_get_ipmr_sg_stats(struct zebra_vrf *zvrf, void *in)
*/
static int netlink_nexthop(int cmd, struct zebra_dplane_ctx *ctx)
{
int ret = 0;
struct {
struct nlmsghdr n;
struct nhmsg nhm;
@ -1944,10 +1942,7 @@ static int netlink_nexthop(int cmd, struct zebra_dplane_ctx *ctx)
return -1;
}
if (ret) {
zlog_debug("Something failed with inserting nhg into kernel");
}
_netlink_nexthop_debug(cmd, nhe->id);
return netlink_talk_info(netlink_talk_filter, &req.n,
dplane_ctx_get_ns(ctx), 0);