mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 20:55:25 +00:00
zebra: Make kernel debug nexthop standardized
Make the the kernel debug zlog for nexthop messages from the kernel more aligned with the route message kernel debug zlog. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
This commit is contained in:
parent
2d6cd1f007
commit
fdee485ad0
@ -2322,14 +2322,16 @@ int netlink_nexthop_change(struct nlmsghdr *h, ns_id_t ns_id, int startup)
|
||||
/* We use the ID key'd nhg table for kernel updates */
|
||||
id = *((uint32_t *)RTA_DATA(tb[NHA_ID]));
|
||||
|
||||
if (IS_ZEBRA_DEBUG_KERNEL) {
|
||||
zlog_debug("Nexthop ID (%u) update from the kernel", id);
|
||||
}
|
||||
|
||||
family = nhm->nh_family;
|
||||
|
||||
afi = family2afi(family);
|
||||
|
||||
if (IS_ZEBRA_DEBUG_KERNEL)
|
||||
zlog_debug("%s ID (%u) %s NS %u",
|
||||
nl_msg_type_to_str(h->nlmsg_type), id,
|
||||
nl_family_to_str(family), ns_id);
|
||||
|
||||
|
||||
nhe = zebra_nhg_lookup_id(id);
|
||||
|
||||
if (h->nlmsg_type == RTM_NEWNEXTHOP) {
|
||||
|
Loading…
Reference in New Issue
Block a user