Vyatta Network OS Documentation

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

<get-commit-history> (system RPC)

Use this RPC to mimic the CLI show system commit command.

Module
vyatta-config-rollback-v1
Available elements
None.
Example XML input
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
<get-commit-history xmlns="urn:vyatta.com:mgmt:vyatta-config-rollback:1"/>
</rpc>
]]>]]>
Example output
<?xml version="1.0"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <revision xmlns="urn:vyatta.com:mgmt:vyatta-config-rollback:1">
  <timestamp>2022-01-14T11:28:45+00:00</timestamp>
  <user-id>vyatta</user-id>
  <revision-id>0</revision-id> 
  <comment>Change loopback description</comment>
 </revision>
 <revision xmlns="urn:vyatta.com:mgmt:vyatta-config-rollback:1">
  <revision-id>1</revision-id>
  <comment/>
  <timestamp>2022-01-14T11:19:00+00:00</timestamp>
  <user-id>vyatta</user-id>
 </revision>
 <revision xmlns="urn:vyatta.com:mgmt:vyatta-config-rollback:1">
  <revision-id>2</revision-id>
  <comment/>
   <timestamp>2022-01-14T10:17:45+00:00</timestamp>
  <user-id>vyatta</user-id>
 </revision>
 ...
 <revision xmlns="urn:vyatta.com:mgmt:vyatta-config-rollback:1">
  <comment/>
  <timestamp>2022-01-12T13:49:32+00:00</timestamp>
  <revision-id>18</revision-id>
  <user-id>vyatta</user-id>
 </revision>
 <revision xmlns="urn:vyatta.com:mgmt:vyatta-config-rollback:1">
  <comment/>
  <user-id>vyatta</user-id>
  <revision-id>19</revision-id>
  <timestamp>2022-01-12T13:49:25+00:00</timestamp>
 </revision>
</rpc-reply>
]]>]]>
The <comment> element is included when the user specified a comment at the time of commit. The <revision-id> element provides the identifier to use in the rollback RPC.