Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Roll Back Uncommitted Changes in the Candidate Configuration Using NETCONF

date_range 15-Jul-21

In a NETCONF session with a device running Junos OS, the client application 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.

content_copy zoom_out_map
<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.

footer-navigation