diff options
author | Donald Sharp <donaldsharp72@gmail.com> | 2023-06-06 13:22:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-06 13:22:31 +0200 |
commit | da877b5cedcb1380f811124788d35242381f91a0 (patch) | |
tree | 8c0a1d9d1406fe159ae2aebe0374eaa1c12aaeba /lib | |
parent | Merge pull request #13618 from LabNConsulting/chopps/fixlogging (diff) | |
parent | mgmtd: rm unused/unneeded code add couple comments (diff) | |
download | frr-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.c | 7 | ||||
-rw-r--r-- | lib/vty.c | 1 |
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; } @@ -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; |