Skip to content

Commit

Permalink
Merge pull request FRRouting#38 from ranjanyash54/bug_fix
Browse files Browse the repository at this point in the history
cmgd: Throw a warning instead of error when reading empty config
  • Loading branch information
pushpasis authored Sep 17, 2021
2 parents 15736d6 + 61a93e9 commit e70afab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmgd/cmgd_trxn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ static int cmgd_trxn_prepare_config(cmgd_trxn_ctxt_t *trxn)
* This means there's no changes to commit whatsoever
* is the source of the changes in config.
*/
(void) cmgd_trxn_send_commit_cfg_reply(trxn, false,
(void) cmgd_trxn_send_commit_cfg_reply(trxn, true,
"No changes found to be committed!");
ret = -1;
goto cmgd_trxn_prepare_config_done;
Expand Down
2 changes: 2 additions & 0 deletions lib/vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -3318,6 +3318,8 @@ static void vty_cmgd_commit_config_result_notified(
} else {
zlog_err("COMMIT_CONFIG request for client 0x%lx req-id %lu was successfull!",
client_id, req_id);
if (errmsg_if_any)
vty_out(vty, "CMGD: %s\n", errmsg_if_any);
}

vty_cmgd_resume_response(vty, success);
Expand Down

0 comments on commit e70afab

Please sign in to comment.