Quick question. If I inadvertently make some changes to the config and I want to discard those changes, do I just exit configuration mode? When I exit configuration mode with the changes be discarded from the candidate configuration? Or are there additional steps that need to be taken?
Thanks in advance.
Do this _before_ exiting config mode
And then exit.
thanks for the reply, here is the output of a show|compare rollback 0
root@switch# show | compare rollback 0
Yes - that is correct - rollback 0 replaces the "candidate" config (the one you are editing) with the active config (same as the boot config). You can also do rollback "n" where n = a prior active config. JUNOS stores up to 50 prior configs (6 on some platforms)
perfect, thanks. i appreciate the insight.
The sort answer to your question is yes, exiting config before committing will discard the candidate config. The answers given below are the cleaner way to achieve what you are asking though.