Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & physical platforms portfolio.

Discard your changes — <discard-changes>

An example of how to use the <discard-changes> RPC to discard the changes that you made, rather than commit them.
This RPC will discard all edits that you made in your current NETCONF session — that is, it will cancel all <edit-config> operations in this session. Thus your candidate configuration will revert to match the running configuration.
Use the <discard-changes> RPC.
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <discard-changes/>
</rpc>
]]>]]>