Navigation
Rolling Back a Configuration Using NETCONF
In a NETCONF session with a device running Junos OS, you can roll back the candidate configuration to the current running configuration, which removes any uncommitted changes from the candidate configuration. This operation is equivalent to the CLI configuration mode rollback 0 command.
To roll back the candidate configuration to the current running configuration, enclose the <discard-changes> tag within the <rpc> element.
<rpc>
<discard-changes/>
</rpc>
]]>]]>
After you issue the </discard-changes> tag, the NETCONF server indicates that it successfully discarded the changes by returning the <ok/> tag.