summaryrefslogtreecommitdiffstats
path: root/lib/northbound.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2023-10-06 14:01:16 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2024-01-11 14:06:53 +0100
commit3c2598a26ff01fc712d61233a6a627fdfa1a7b77 (patch)
tree9b3ba850ffe7b13c1ce1d4c27d9846dd7d951364 /lib/northbound.h
parentmgmtd, lib: implement CREATE_EXCL operation (diff)
downloadfrr-3c2598a26ff01fc712d61233a6a627fdfa1a7b77.tar.xz
frr-3c2598a26ff01fc712d61233a6a627fdfa1a7b77.zip
mgmt, lib: differentiate DELETE and REMOVE operations
Currently, there's a single operation type which doesn't return error if the object doesn't exists. To be compatible with NETCONF/RESTCONF, we should support differentiate between DELETE (fails when object doesn't exist) and REMOVE (doesn't fail if the object doesn't exist). Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/northbound.h')
-rw-r--r--lib/northbound.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/northbound.h b/lib/northbound.h
index e11958c77..ef774fb47 100644
--- a/lib/northbound.h
+++ b/lib/northbound.h
@@ -722,6 +722,7 @@ enum nb_operation {
NB_OP_CREATE,
NB_OP_MODIFY,
NB_OP_DESTROY,
+ NB_OP_DELETE,
NB_OP_MOVE,
};
@@ -953,7 +954,6 @@ extern bool nb_is_operation_allowed(struct nb_node *nb_node,
*
* Returns:
* - NB_OK on success.
- * - NB_ERR_NOT_FOUND when the element to be deleted was not found.
* - NB_ERR for other errors.
*/
extern int nb_candidate_edit(struct nb_config *candidate,