Difference between revisions of "Commit (command)"

From VyOS Wiki
Jump to: navigation, search
(Page creation)
 
(Added info)
 
Line 1: Line 1:
 
The `commit` command commits the proposed changes to the configuration file. Every changes done in the configuration session is only applied when the configuration is committed. To view the changes that will be applied, use the [[show (command)#configuration_mode|show]] command. To discard the changes without committing, use the [[discard (command)|discard]] command. The `commit` command doesn't save the configuration, you need to manually use the [[save (command)|save]] command.
 
The `commit` command commits the proposed changes to the configuration file. Every changes done in the configuration session is only applied when the configuration is committed. To view the changes that will be applied, use the [[show (command)#configuration_mode|show]] command. To discard the changes without committing, use the [[discard (command)|discard]] command. The `commit` command doesn't save the configuration, you need to manually use the [[save (command)|save]] command.
  
The `confirm` keyword can be added, see [[commit-confirm (command)|commit-confirm]].
+
The `confirm` keyword can be added, see [[commit-confirm (command)|commit-confirm]]. A comment can be entered, it will appear in the commit log.
  
 
== Syntax ==
 
== Syntax ==
Line 8: Line 8:
 
[edit]
 
[edit]
 
vyos@vyos# commit
 
vyos@vyos# commit
 +
Possible completions:
 +
  <Enter>      Commit working configuration
 +
  comment      Comment for commit log
 
</pre>
 
</pre>
  

Latest revision as of 01:59, 29 March 2017

The `commit` command commits the proposed changes to the configuration file. Every changes done in the configuration session is only applied when the configuration is committed. To view the changes that will be applied, use the show command. To discard the changes without committing, use the discard command. The `commit` command doesn't save the configuration, you need to manually use the save command.

The `confirm` keyword can be added, see commit-confirm. A comment can be entered, it will appear in the commit log.

Syntax

[edit]
vyos@vyos# commit
Possible completions:
  <Enter>       Commit working configuration
  comment       Comment for commit log

Command tree