Skip to content

Commit

Permalink
rollback-soft: T6384: tell the user to compare or commit
Browse files Browse the repository at this point in the history
after applying the diff
  • Loading branch information
dmbaturin committed May 22, 2024
1 parent 23a4201 commit 7bba95c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/vyos/config_mgmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ def rollback_soft(self, rev: int):
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

Expand Down

0 comments on commit 7bba95c

Please sign in to comment.