-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config-mgmt: T5976: add option for commit-confirm to use 'soft' rollback #4128
Conversation
👍 |
✅ No issues found in unused-imports check.. Please refer the workflow run |
Commit-confirm will restore a previous configuration if a confirmation is not received in N minutes. Traditionally, this was restored by a reboot into the last configuration on disk; add a configurable option to reload the last completed commit without a reboot. The default setting is to reboot.
12d4e35
to
4d5f2a5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should rename the option to commit-confirm action
, and I think it's a good idea because we can also add other options there, such as commit-confirm timeout
and commit-confirm force
(if someone wants to make every commit a confirmed commit).
Changes made following discussion in meeting as summarized by @dmbaturin above. |
I expect to use
But yes we can see it in the log:
Will be cool to add a message to the vyos console print/logger/etc |
Added display message on soft revert, and adjusted completion hint: |
CI integration ❌ failed! Details
|
Change Summary
Allow commit-confirm to use (a version of) 'soft' rollback. This adds a configurable option
['system', 'config-management', 'commit-confirm'] (reload|reboot)
The setting will apply the method
revert_soft
in the case of unconfirmed commits, using the same techniques as those of soft rollback, making a reboot unnecessary. The default setting is the traditional reboot, so it must be configured to take effect.Types of changes
Related Task(s)
Related PR(s)
vyos/vyos-documentation#1558
vyos/vyatta-cfg#93
Component(s) name
Proposed changes
How to test
Smoketest result
Checklist: