mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-25 08:16:38 +00:00
Merge pull request #15489 from idryzhov/vty-mgmt-error
vty: change output of errors from mgmtd
This commit is contained in:
commit
bb5a2a9375
10
lib/vty.c
10
lib/vty.c
@ -3570,8 +3570,9 @@ static void vty_mgmt_set_config_result_notified(
|
|||||||
zlog_err("SET_CONFIG request for client 0x%" PRIx64
|
zlog_err("SET_CONFIG request for client 0x%" PRIx64
|
||||||
" failed, Error: '%s'",
|
" failed, Error: '%s'",
|
||||||
client_id, errmsg_if_any ? errmsg_if_any : "Unknown");
|
client_id, errmsg_if_any ? errmsg_if_any : "Unknown");
|
||||||
vty_out(vty, "ERROR: SET_CONFIG request failed, Error: %s\n",
|
vty_out(vty, "%% Configuration failed.\n\n");
|
||||||
errmsg_if_any ? errmsg_if_any : "Unknown");
|
if (errmsg_if_any)
|
||||||
|
vty_out(vty, "%s\n", errmsg_if_any);
|
||||||
} else {
|
} else {
|
||||||
debug_fe_client("SET_CONFIG request for client 0x%" PRIx64
|
debug_fe_client("SET_CONFIG request for client 0x%" PRIx64
|
||||||
" req-id %" PRIu64 " was successfull",
|
" req-id %" PRIu64 " was successfull",
|
||||||
@ -3602,8 +3603,9 @@ static void vty_mgmt_commit_config_result_notified(
|
|||||||
zlog_err("COMMIT_CONFIG request for client 0x%" PRIx64
|
zlog_err("COMMIT_CONFIG request for client 0x%" PRIx64
|
||||||
" failed, Error: '%s'",
|
" failed, Error: '%s'",
|
||||||
client_id, errmsg_if_any ? errmsg_if_any : "Unknown");
|
client_id, errmsg_if_any ? errmsg_if_any : "Unknown");
|
||||||
vty_out(vty, "ERROR: COMMIT_CONFIG request failed, Error: %s\n",
|
vty_out(vty, "%% Configuration failed.\n\n");
|
||||||
errmsg_if_any ? errmsg_if_any : "Unknown");
|
if (errmsg_if_any)
|
||||||
|
vty_out(vty, "%s\n", errmsg_if_any);
|
||||||
} else {
|
} else {
|
||||||
debug_fe_client("COMMIT_CONFIG request for client 0x%" PRIx64
|
debug_fe_client("COMMIT_CONFIG request for client 0x%" PRIx64
|
||||||
" req-id %" PRIu64 " was successfull",
|
" req-id %" PRIu64 " was successfull",
|
||||||
|
Loading…
Reference in New Issue
Block a user