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.

Commit configuration changes — commit

An example that shows how to use the commit command to commit changes that you've made to a configuration and apply them to the running configuration.

Configuration changes do not take effect until you commit them to the running configuration.

You can review the changes that you have made to the candidate configuration but not yet committed to the running configuration. When you show or compare the configuration, Vyatta NOS uses symbols to indicate the changes:

  • A plus sign + indicates an addition
  • A greater-than sign > indicates a modification
  • A minus sign - indicates a deletion

For example, here we have a candidate configuration in which you have deleted an address node.

user@system# show interfaces dataplane dp0p1p1
-address 192.08.2.21/24
 hw-id 00:13:46:e6:f6:87
[edit]
user@system#

This change will take effect on the running configuration only when you commit it.

  1. Commit the change.
    user@system# commit
    
    [edit]
    user@system#
  2. Optional: Show the configuration.
    user@system# show interfaces dataplane dp0p1p1
     hw-id 00:13:46:e6:f6:87
    [edit]
    user@system#

    Notice that you no longer see any indicators, because your candidate configuration and the running configuration are now identical. And, the non-mandatory configuration node address is no longer present in the configuration.