diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2023-10-06 01:58:58 +0200 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-11 14:06:53 +0100 |
commit | 76e4eb84dd815ddee7d7e46bb5a2635bfe2501f5 (patch) | |
tree | ea6bd2707b0146d203feabcf2c820a0756f1dbfd /lib/northbound.h | |
parent | lib: split nb_operation into two types (diff) | |
download | frr-76e4eb84dd815ddee7d7e46bb5a2635bfe2501f5.tar.xz frr-76e4eb84dd815ddee7d7e46bb5a2635bfe2501f5.zip |
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 <iryzhov@nfware.com>
Diffstat (limited to 'lib/northbound.h')
-rw-r--r-- | lib/northbound.h | 1 |
1 files changed, 1 insertions, 0 deletions
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, |