Discard configuration changes — discard
An example that shows how to use the discard
command to discard changes that you made to the candidate configuration in your current session.
Rather than delete many specific changes, you can abandon all changes that you made within a configuration session. You can do this with the discard
command, or with the exit
command plus the discard
option.
The discard
command gives the same result as if you delete all of the changes that you've made in your current configuration session.
For example, here we have a candidate configuration in which you added non-mandatory address
and description
nodes.
user@system# show interfaces dataplane dp0p1p1
+address 192.0.2.21/24
+description "This is a test"
hw-id 00:13:46:e6:f6:87
[edit]
user@system#
You can discard all such changes with a single discard
command.