diff options
author | Pushpasis Sarkar <pushpasis.frr@gmail.com> | 2023-03-14 11:36:06 +0100 |
---|---|---|
committer | Christian Hopps <chopps@gmail.com> | 2023-03-22 06:22:56 +0100 |
commit | 1401ee8bf74b7688ca5f5bdfc3411734e9f0cb3b (patch) | |
tree | 04c63358d2e90417cf95dd0eee6968a3f9c08521 /mgmtd/mgmt_history.h | |
parent | mgmtd: lib: utilize msglib constructed from the removed code (diff) | |
download | frr-1401ee8bf74b7688ca5f5bdfc3411734e9f0cb3b.tar.xz frr-1401ee8bf74b7688ca5f5bdfc3411734e9f0cb3b.zip |
lib, mgmtd: Add few fixes for commit-check and rollback
This commit contains fixes for the following issues found
- 'mgmt commit check' issued through 'vtysh -f' was actually commtting the changeset.
- On config validation failure backend, mgmtd was not passing the correct error-reason
to frontend.
- 'mgmt rollback ...' was reverting the change on backend, but config on mgmtd daemon
remains intact
Signed-off-by: Pushpasis Sarkar <pushpasis@gmail.com>
Diffstat (limited to 'mgmtd/mgmt_history.h')
-rw-r--r-- | mgmtd/mgmt_history.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mgmtd/mgmt_history.h b/mgmtd/mgmt_history.h index 23ce4062e..29a1d7738 100644 --- a/mgmtd/mgmt_history.h +++ b/mgmtd/mgmt_history.h @@ -42,6 +42,8 @@ extern int mgmt_history_rollback_by_id(struct vty *vty, const char *cmtid_str); */ extern int mgmt_history_rollback_n(struct vty *vty, int num_cmts); +extern void mgmt_history_rollback_complete(bool success); + /* * Show mgmt commit history. */ |