home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

confirm

Confirms the previous commit-confirm change and cancels the automatic rollback.

confirm

Configuration mode

Use this command to confirm a successful change in configuration after requiring commit confirmation.

For configuration changes that carry some risk of causing loss of access to a system, you can direct the system to require commit confirmation by using the command commit-confirm <minutes>. This command sets the system to wait for confirmation that a configuration has succeeded.

Entering the confirm command within the specified commit-confirm interval causes the configuration change to be accepted. If confirmation is not provided by entering this command, the system reboots to the previous configuration.

The following example shows how to confirm commit-confirm changes.

vyatta@R1# set int loopback lo description anotherTest
[edit]
vyatta@R1# commit-confirm 2 comment anotherTest

commit will rollback to previous version in 2 minutes unless you enter 'confirm'


[edit]
vyatta@R1# confirm
[edit]
vyatta@R1#

If you enter confirm within the timeout period of 2 minutes, the system configuration corresponds to the following version:

vyatta@R1# run show system commit
0   2017-01-06 10:20:14 by Vyatta
    Updated loopback interface description
1   2017-01-06 09:50:15 by Vyatta
    Change loopback interface address
2   2017-01-06 09:48:45 by Vyatta
    Set loopback interface address
3   2017-01-06 09:48:20 by Vyatta
    Update loopback interface description
...

If you do not enter confirm within the timeout period of 2 minutes, the system configuration rolls back to the previous version, as illustrated here:

vyatta@R1# run show system commit
0   2017-01-06 10:22:15 by configd
    Rollback to previous version.
1   2017-01-06 10:20:14 by Vyatta
    Updated loopback interface description
2   2017-01-06 09:50:15 by Vyatta
    Change loopback interface address/
3   2017-01-06 09:48:45 by Vyatta
    Set loopback interface address
4   2017-01-06 09:48:20 by Vyatta
    Update loopback interface description