<rollback>
(system RPC)
Use this RPC to return the configuration of Vyatta NOS to a particular commit that you specify.
get-commit-history
RPC and review the output.- Module
vyatta-config-rollback-v1
- Available elements
<revision-id>
- Use this to specify the commit version that you want to roll back to. (Mandatory. Must be a 32-bit unsigned integer.)
<comment>
- Use this to specify a comment to associate with the rollback. (Optional.)
- Example XML input
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> <rollback xmlns="urn:vyatta.com:mgmt:vyatta-config-rollback:1"> <revision-id>1</revision-id> <comment>Rollback via RPC</comment> </rollback> </rpc> ]]>]]>
- Example output
If you want to verify this, look at the commit history on the Vyatta NOS system. The history will look something like this:<?xml version="1.0" encoding="UTF-8"?> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> <ok/> </rpc-reply>
user@system:~$ show system commit 0 2022-01-14 12:52:59 by configd Rollback via RPC 1 2022-01-14 12:48:20 by vyatta Change loopback description