]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: northbound: also log debugs for new get callback
authorChristian Hopps <chopps@labn.net>
Thu, 30 Jan 2025 00:54:33 +0000 (00:54 +0000)
committerChristian Hopps <chopps@labn.net>
Fri, 14 Mar 2025 14:36:13 +0000 (14:36 +0000)
Signed-off-by: Christian Hopps <chopps@labn.net>
lib/northbound_oper.c

index c27fe3c0194b04416cc9c39746cbf06e2b07f813..0aa002fcdf6851c34abce0056d589bda65b4ba67 100644 (file)
@@ -894,9 +894,12 @@ static enum nb_error nb_op_iter_leaf(struct nb_op_yield_state *ys,
                return nb_op_libyang_cb_get(ys, nb_node, ni->inner, xpath);
 
        /* Check for new simple get */
-       if (nb_node->cbs.get)
+       if (nb_node->cbs.get) {
                /* XXX: need to run through translator */
+               DEBUGD(&nb_dbg_cbs_state, "northbound callback (get): xpath [%s] list_entry [%p]",
+                      xpath, ni->list_entry);
                return nb_node->cbs.get(nb_node, ni->list_entry, ni->inner);
+       }
 
        data = nb_callback_get_elem(nb_node, xpath, ni->list_entry);
        if (data == NULL)
@@ -932,9 +935,12 @@ static enum nb_error nb_op_iter_leaflist(struct nb_op_yield_state *ys,
                return NB_OK;
 
        /* Check for new simple get */
-       if (nb_node->cbs.get)
+       if (nb_node->cbs.get) {
                /* XXX: need to run through translator */
+               DEBUGD(&nb_dbg_cbs_state, "northbound callback (get): xpath [%s] list_entry [%p]",
+                      xpath, ni->list_entry);
                return nb_node->cbs.get(nb_node, ni->list_entry, ni->inner);
+       }
 
        if (CHECK_FLAG(nb_node->flags, F_NB_NODE_HAS_GET_TREE))
                /* XXX: need to run through translator */