summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2024-05-22 12:32:50 -0500
committerGitHub <noreply@github.com>2024-05-22 12:32:50 -0500
commit82b14fb2bb89eb93eb9b5275b1d94d1bc61d0806 (patch)
tree123d0fe6f1422548af081ec151d9ebdc81ce0b39
parent413fd63b631b1ddd098d9c25dd5268054e6d0674 (diff)
parentb2ce6057473d6c7749f017cd3a6308cb9b7a2192 (diff)
downloadvyos-1x-82b14fb2bb89eb93eb9b5275b1d94d1bc61d0806.tar.gz
vyos-1x-82b14fb2bb89eb93eb9b5275b1d94d1bc61d0806.zip
Merge pull request #3503 from vyos/mergify/bp/sagitta/pr-3501
rollback-soft: T6384: tell the user to compare or commit (backport #3501)
-rw-r--r--python/vyos/config_mgmt.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/vyos/config_mgmt.py b/python/vyos/config_mgmt.py
index fc51d781c..70b6ea203 100644
--- a/python/vyos/config_mgmt.py
+++ b/python/vyos/config_mgmt.py
@@ -283,6 +283,8 @@ Proceed ?'''
rollback_ct = self._get_config_tree_revision(rev)
try:
load(rollback_ct, switch='explicit')
+ print('Rollback diff has been applied.')
+ print('Use "compare" to review the changes or "commit" to apply them.')
except LoadConfigError as e:
raise ConfigMgmtError(e) from e