Vyatta Network OS Documentation

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

show system commit diff <rev-num>

Compares adjacent configuration file revisions.

show system commit diff rev-num
rev-num
A configuration file revision to compare with a subsequent revision; that is: rev-num +1.

Operational mode

Use this command to compare adjacent revisions of the configuration file.

The revisions to be compared are rev-num and rev-num+1. This command is a shortcut for the show system commit file rev-num compare rev-num+1 command. You can see the list of configuration file revisions by using show system commit.

The following example shows configuration file revision 18 on R1.

vyatta@R1:~$ show system commit diff 18 
[edit routing routing-instance red]
-protocols {
-       static {
-               route 20.2.3.0/24 {
-                       next-hop 20.1.2.2
-               }
-               route 20.2.4.0/24 {
-                       next-hop 20.1.2.2
-               }
-               route 20.3.2.0/24 {
-                       next-hop 20.1.2.2
-               }
-               route 20.3.4.0/24 {
-                       next-hop 20.1.2.2
-                       next-hop 20.3.1.2
-               }
-               route 20.4.2.0/24 {
-                       next-hop 20.1.2.2
-               }
-               route 20.4.4.0/24 {
-                       next-hop 20.1.2.2
-               }
-       }
-} 
vyatta@R1:~$