From 76e4eb84dd815ddee7d7e46bb5a2635bfe2501f5 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Fri, 6 Oct 2023 02:58:58 +0300 Subject: mgmtd, lib: implement CREATE_EXCL operation Currently, there's no difference between CREATE and MODIFY operations. To be compatible with NETCONF/RESTCONF, add new CREATE_EXCL operation that throws an error if the configuration data already exists. Signed-off-by: Igor Ryzhov --- lib/northbound.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/northbound.h') diff --git a/lib/northbound.h b/lib/northbound.h index b8e2c4fa4..e11958c77 100644 --- a/lib/northbound.h +++ b/lib/northbound.h @@ -718,6 +718,7 @@ struct nb_config { /* Northbound operations */ enum nb_operation { + NB_OP_CREATE_EXCL, NB_OP_CREATE, NB_OP_MODIFY, NB_OP_DESTROY, -- cgit v1.2.3