diff options
author | Christian Hopps <chopps@labn.net> | 2023-06-05 00:09:25 +0200 |
---|---|---|
committer | Christian Hopps <chopps@labn.net> | 2023-06-05 21:29:05 +0200 |
commit | c6b8e95703ee0701d81787d050a09a9d16f73448 (patch) | |
tree | 45f79b9960a115add17fa311f40e879e68650257 /lib/northbound.c | |
parent | tests: mgmtd: add prologue to bigconf tests (diff) | |
download | frr-c6b8e95703ee0701d81787d050a09a9d16f73448.tar.xz frr-c6b8e95703ee0701d81787d050a09a9d16f73448.zip |
mgmtd: rm unused/unneeded code add couple comments
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/northbound.c')
-rw-r--r-- | lib/northbound.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/northbound.c b/lib/northbound.c index 775f6ff92..ef2344ee1 100644 --- a/lib/northbound.c +++ b/lib/northbound.c @@ -792,18 +792,19 @@ static void nb_update_candidate_changes(struct nb_config *candidate, LYD_TREE_DFS_BEGIN (root, dnode) { op = nb_lyd_diff_get_op(dnode); switch (op) { - case 'c': + case 'c': /* create */ nb_config_diff_created(dnode, seq, cfg_chgs); LYD_TREE_DFS_continue = 1; break; - case 'd': + case 'd': /* delete */ nb_config_diff_deleted(dnode, seq, cfg_chgs); LYD_TREE_DFS_continue = 1; break; - case 'r': + case 'r': /* replace */ nb_config_diff_add_change(cfg_chgs, NB_OP_MODIFY, seq, dnode); break; + case 'n': /* none */ default: break; } |