From cabf424fe93d15eee3ed64991e6954934158729b Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Mon, 13 Nov 2023 23:39:59 +0100 Subject: [PATCH] lib: explain semantics of northbound operations Signed-off-by: Igor Ryzhov --- lib/northbound.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/lib/northbound.h b/lib/northbound.h index def06a376858..6362ed1932b4 100644 --- a/lib/northbound.h +++ b/lib/northbound.h @@ -699,15 +699,18 @@ struct nb_config { uint32_t version; }; -/* Northbound operations */ +/* + * Northbound operations. The semantics of operations is explained in RFC 8072, + * section 2.5: https://datatracker.ietf.org/doc/html/rfc8072#section-2.5. + */ enum nb_operation { - NB_OP_CREATE_EXCL, - NB_OP_CREATE, - NB_OP_MODIFY, - NB_OP_DESTROY, - NB_OP_DELETE, - NB_OP_REPLACE, - NB_OP_MOVE, + NB_OP_CREATE_EXCL, /* "create" */ + NB_OP_CREATE, /* "merge" - kept for backward compatibility */ + NB_OP_MODIFY, /* "merge" */ + NB_OP_DESTROY, /* "remove" */ + NB_OP_DELETE, /* "delete" */ + NB_OP_REPLACE, /* "replace" */ + NB_OP_MOVE, /* "move" */ }; struct nb_cfg_change {