Commit configuration changes —
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
user@system# show interfaces dataplane dp0p1p1 -address 192.08.2.21/24 hw-id 00:13:46:e6:f6:87  user@system#
This change will take effect on the running configuration only when you commit it.
- Commit the change.
- Optional: Show the configuration.
user@system# show interfaces dataplane dp0p1p1
hw-id 00:13:46:e6:f6:87  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
addressis no longer present in the configuration.