[rancid] RANCID is incorrectly parsing my Cisco IOS Firewall, adding linebreaks, joining lines, etc

Alan McKinnon alan.mckinnon at gmail.com
Fri Sep 12 20:41:24 UTC 2014


On 12/09/2014 22:10, Jason Humes wrote:
> Here is an example;
> 
> Index: configs/ core4506
> ===================================================================
> - -- configs/ core4506	(revision 198)
> @@ -446,9 +446,9 @@
>   !VLAN:                                                 Fa2/6, Fa2/7, Fa2/8, Fa2/10, Fa2/11, Fa2/13, Fa2/14, Fa2/15, Fa2/16, Fa2/17, Fa2/19
>   !VLAN:                                                 Fa2/20, Fa2/22, Fa2/23, Fa2/24, Fa2/29, Fa2/32, Fa2/33, Fa2/34, Fa2/40, Fa2/41
>   !VLAN:                                                 Fa2/42, Fa2/43, Fa2/44, Fa2/45, Fa2/46, Fa2/47, Fa2/48, Te3/1, Te3/2, Gi3/3, Gi3/4
> - !VLAN:                                                 Gi3/5, Gi3/6, Te4/1, Te4/2, Gi4/3, Gi4/4, Gi4/5, Gi4/6, Gi5/34, Gi6/5, Gi6/15
> - !VLAN:                                                 Gi6/18, Gi6/19, Gi6/20, Gi6/22, Gi6/23, Gi6/24, Gi6/28, Gi6/34, Gi6/35, Gi6/36
> - !VLAN:                                                 Gi6/37, Gi6/38, Gi6/39, Gi7/7, Gi7/8, Gi7/9, Gi7/10, Gi7/11, Gi7/12
> + !VLAN:                                                 Gi3/5, Gi3/6, Te4/1, Te4/2, Gi4/3, Gi4/4, Gi4/5, Gi4/6, Gi5/14, Gi5/34, Gi6/5
> + !VLAN:                                                 Gi6/15, Gi6/18, Gi6/19, Gi6/20, Gi6/22, Gi6/23, Gi6/24, Gi6/28, Gi6/34, Gi6/35
> + !VLAN:                                                 Gi6/36, Gi6/37, Gi6/38, Gi6/39, Gi7/7, Gi7/8, Gi7/9, Gi7/10, Gi7/11, Gi7/12
>   !VLAN: 2    Engineering                      active    Fa1/29, Fa1/32, Fa1/35, Fa1/44, Fa1/45, Fa1/47, Fa2/18, Gi5/15, Gi5/33, Gi6/32
>   !VLAN:                                                 Gi6/40
>   !VLAN: 3    EDM                              active    
> 
> 
> Jason 
> 
> -----Original Message-----
> From: Jason Humes 
> Sent: Friday, September 12, 2014 3:06 PM
> To: rancid-discuss at shrubbery.net
> Subject: RANCID is incorrectly parsing my Cisco IOS Firewall, adding linebreaks, joining lines, etc
> 
> Hi
> Recently upgraded to RANCID 3.1 and I'm finding all our Cisco devices are coming up with new configs after every run due to rancid adding line breaks in some cases and in others it joins two lines of the config.
> 
> Any thoughts on why this might be going on?  I'm running Ubuntu 14.04.
> 
> Thanks


Jason,

That doesn't look like "adding linebreaks, joining lines" to me, it
looks like the device is simply not sorting the list so the order ir
seemingly random.

Sort the list in the main processing loop before outputting it. The code
for prefix lists has some clues of how to approach this (but the final
implementation will be very different)



-- 
Alan McKinnon
alan.mckinnon at gmail.com



More information about the Rancid-discuss mailing list