[rancid] IOS interfaces (show controllers) reappear after rancid upgrade

Alan McKinnon alan.mckinnon at gmail.com
Wed Aug 5 13:01:18 UTC 2015


On 05/08/2015 14:45, Marki wrote:
> Alan McKinnon <alan.mckinnon <at> gmail.com> writes:
> 
>>
>> What 2.3 version were you running?
>>
>> 2.3.8 should be doing the same as 3.2, here is the 2.3.8 code that does it:
> 
> 
> Hmm, it was 2.3.6 I believe. Doesn't matter, ok, so it's there now/again,
> and we have to deal with it.
> 
> Can we add something to get rid of the PRI interfaces (up/down on-demand)?
> 
> I have included this now in our rancid:
> 
>   # Remove dynamic PRI interfaces
>   if (/^Hardware is HDLC32/) {
>     if ($INT =~ /Serial[\d\/]+\d:(\d+), /) {
>       $1!=15 && next;
>     }
>   }
> 
> right before the part above. Seems to work for me.
> Feel free to use/include the snippet.


That will work :-)

Foe heasley to add this to upstream, you might want to reply and expound
a little on how IOS lists these dynamic PRIs, with some output snippets.

This is so it will work best for the general case.


-- 
Alan McKinnon
alan.mckinnon at gmail.com



More information about the Rancid-discuss mailing list