From dfba19b3e89f47690c0abdee5f6410278237122e Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Tue, 8 Oct 2024 10:16:52 -0500 Subject: config-mgmt: T5976: display message when reverting to previous config --- python/vyos/config_mgmt.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/vyos/config_mgmt.py b/python/vyos/config_mgmt.py index 851ac2134..1c2b70fdf 100644 --- a/python/vyos/config_mgmt.py +++ b/python/vyos/config_mgmt.py @@ -289,6 +289,9 @@ Proceed ?""" # confirmed, hence a soft revert is to revision 0 revert_ct = self._get_config_tree_revision(0) + message = '[commit-confirm] Reverting to previous config now' + os.system('wall -n ' + message) + mask = os.umask(0o002) session = ConfigSession(os.getpid(), app='config-mgmt') -- cgit v1.2.3