summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2023-06-06 13:22:31 +0200
committerGitHub <noreply@github.com>2023-06-06 13:22:31 +0200
commitda877b5cedcb1380f811124788d35242381f91a0 (patch)
tree8c0a1d9d1406fe159ae2aebe0374eaa1c12aaeba /lib
parentMerge pull request #13618 from LabNConsulting/chopps/fixlogging (diff)
parentmgmtd: rm unused/unneeded code add couple comments (diff)
downloadfrr-da877b5cedcb1380f811124788d35242381f91a0.tar.xz
frr-da877b5cedcb1380f811124788d35242381f91a0.zip
Merge pull request #13690 from LabNConsulting/chopps/mgmtd-cleanup
Chopps/mgmtd cleanup
Diffstat (limited to 'lib')
-rw-r--r--lib/northbound.c7
-rw-r--r--lib/vty.c1
2 files changed, 5 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;
}
diff --git a/lib/vty.c b/lib/vty.c
index b701f3bc0..50c4f80aa 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -2420,6 +2420,7 @@ void vty_close(struct vty *vty)
vty->status = VTY_CLOSE;
if (mgmt_fe_client && vty->mgmt_session_id) {
+ MGMTD_FE_CLIENT_DBG("closing vty session");
mgmt_fe_destroy_client_session(mgmt_fe_client,
vty->mgmt_client_id);
vty->mgmt_session_id = 0;