Skip to content

Commit

Permalink
zebra: improve an rnode debug
Browse files Browse the repository at this point in the history
Improve a debug when we create a new rib_dest by calling the debug
after setting up the dest.

Signed-off-by: Mark Stapp <mjs@cisco.com>
  • Loading branch information
Mark Stapp committed Dec 4, 2024
1 parent d0d72fa commit 2f54047
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zebra/zebra_rib.c
Original file line number Diff line number Diff line change
@@ -4033,10 +4033,10 @@ static void rib_link(struct route_node *rn, struct route_entry *re, int process)

dest = rib_dest_from_rnode(rn);
if (!dest) {
dest = zebra_rib_create_dest(rn);

if (IS_ZEBRA_DEBUG_RIB_DETAILED)
rnode_debug(rn, re->vrf_id, "rn %p adding dest", rn);

dest = zebra_rib_create_dest(rn);
}

re_list_add_head(&dest->routes, re);

0 comments on commit 2f54047

Please sign in to comment.