Skip to content
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: update commit-confirm description for option reload #1558

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions docs/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -662,10 +662,22 @@ different levels in the hierarchy.
.. cfgcmd:: commit-confirm <minutes>

Use this command to temporarily commit your changes and set the
number of minutes available for validation. ``confirm`` must
be entered within those minutes, otherwise the system will reboot
into the previous configuration. The default value is 10 minutes.
number of minutes available for confirmation. ``confirm`` must
be entered within those minutes, otherwise the system will revert
into a previous configuration. The default value is 10 minutes.

The definition of 'revert' and 'a previous configuration' depends on
the setting:

.. code-block:: none

vyos@vyos# set system config-management commit-confirm
Possible completions:
reload Reload previous configuration if not confirmed
reboot Reboot to saved configuration if not confirmed (default)

Note that 'reload' loads the most recent completed configuration and does
not require a reboot.

What if you are doing something dangerous? Suppose you want to setup
a firewall, and you are not sure there are no mistakes that will lock
Expand All @@ -684,12 +696,6 @@ different levels in the hierarchy.
vyos@router# confirm
[edit]


.. note:: A reboot because you did not enter ``confirm`` will not
take you necessarily to the *saved configuration*, but to the
point before the unfortunate commit.


.. cfgcmd:: copy

Copy a configuration element.
Expand Down
Loading