Skip to content

Commit

Permalink
lib: explain semantics of northbound operations
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Ryzhov <[email protected]>
  • Loading branch information
idryzhov committed Jan 11, 2024
1 parent d726114 commit 7e48299
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions lib/northbound.h
Original file line number Diff line number Diff line change
Expand Up @@ -716,15 +716,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 {
Expand Down

0 comments on commit 7e48299

Please sign in to comment.