Ignoring IP-Host DIFF in Cisco configs

Andrew Partan asp at partan.com
Wed Apr 30 17:55:40 UTC 2003


On Wed, Apr 30, 2003 at 01:46:54PM -0400, Brian Apley wrote:
> ip host a2e 10.5.1.17
> ip host a1e 10.5.1.18
> ip host nsp 10.6.1.15

There is some stuff in rancid to order "ip host line\d+" commands,
but it looks like this ip host stuff is more than just the line\d+
stuff, so try this patch & let me know if it works.
	--asp

Index: rancid.in
===================================================================
RCS file: /home/rancid/.CVS/rancid/bin/rancid.in,v
retrieving revision 1.136
diff -u -r1.136 rancid.in
--- rancid.in	28 Apr 2003 06:09:12 -0000	1.136
+++ rancid.in	30 Apr 2003 17:53:19 -0000
@@ -1239,9 +1239,9 @@
 	    ProcessHistory("NTP","keysort",$sortkey,"$_");
 	    next;
 	}
-	# order ip host line statements
-	/^ip host line(\d+)/ &&
-	    ProcessHistory("IPHOST","numsort","$1","$_") && next;
+	# order ip host statements
+	/^ip host (\S+) / &&
+	    ProcessHistory("IPHOST","keysort","$1","$_") && next;
 	# order ip nat source static statements
 	/^ip nat (\S+) source static (\S+)/ &&
 	    ProcessHistory("IP NAT $1","ipsort","$2","$_") && next;



More information about the Rancid-discuss mailing list