[rancid] Re: spanning tree/portcost changes causing diffs

Laker Netman laker_netman at yahoo.com
Mon Aug 6 18:46:11 UTC 2007


Awesome!  My inbox and I thank you.  And yes, I think this is a great addition for the next alpha.  Ummm, any idea when this will become a beta?  I've run it for a long time now and it's pretty stable!

Thanks again,
Laker

----- Original Message ----
From: Lance <rancid at gheek.net>
To: Laker Netman <laker_netman at yahoo.com>
Cc: rancid-discuss at shrubbery.net
Sent: Monday, August 6, 2007 11:00:25 AM
Subject: RE: [rancid] Re: spanning tree/portcost changes causing diffs

Laker,

Since you and others have been wanting this I have tried to figure out
the easiest ways of doing it.

So rather than posting a diff I will just post the couple of lines above
and below where the new code will go I hope this helps. Let me know if
it doesn't work.

John H,

Any chance getting this added to the next alpha release?

#
# bin/cat5rancid
# The 2 new lines are directly below "# Dog gone Cool matches to process
the rest of the config"
#

        # Dog gone Cool matches to process the rest of the config
        /^set spantree priority.*$/     && next if
(defined($ENV{'IGNORESPANTREE'})); # kill set spantree priority*
        /^set spantree port.*$/ && next if
(defined($ENV{'IGNORESPANTREE'})); # kill set spantree port*
        /^#time: /              && next; # kill time:
        /^tftp-server flash /   && next; # kill any tftp remains
        /^ntp clock-period /    && next; # kill ntp clock-period




#
# etc/rancid.conf
# Place this anywhere in the rancid.conf
#

# Uncomment IGNORESPANTREE to ignore "set spantree port" and set
# "spantree priority" messages in the diff email
IGNORESPANTREE=YES; export IGNORESPANTREE

-Lance


> -------- Original Message --------
> Subject: [rancid] Re: spanning tree/portcost changes causing diffs
> From: Lance <rancid at gheek.net>
> Date: Fri, August 03, 2007 9:15 am
> To: Laker Netman <laker_netman at yahoo.com>
> Cc: rancid-discuss at shrubbery.net
> 
> Laker,
> 
> So in other words you don't want to see them even in the CVS repo
> correct? Filtering them out of the email is cake. 1 change to
> control_rancid and you are good to go.
> 
> -Lance
> 
> > -------- Original Message --------
> > Subject: Re: [rancid] spanning tree/portcost changes causing diffs
> > From: Laker Netman <laker_netman at yahoo.com>
> > Date: Fri, August 03, 2007 6:51 am
> > To: Lance <rancid at gheek.net>
> > Cc: rancid-discuss at shrubbery.net
> > 
> > I understand that, but I'd prefer not to have them appear as configuration changes if possible, i.e., have the script ignore changes to those lines. It wouldn't affect restoring a config, because the switch would set the ports to their correct state anyway.
> > 
> > Laker
> > 
> > ----- Original Message ----
> > From: Lance <rancid at gheek.net>
> > To: Laker Netman <laker_netman at yahoo.com>
> > Cc: rancid-discuss at shrubbery.net
> > Sent: Thursday, August 2, 2007 7:12:29 PM
> > Subject: RE: [rancid] spanning tree/portcost changes causing diffs
> > 
> > Laker,
> > 
> > This is directly related to ports changing state (aka someone turning
> > on/off their pc).
> > 
> > -Lance
> > 
> > 
> > > -------- Original Message --------
> > > Subject: Re: [rancid] spanning tree/portcost changes causing diffs
> > > From: Laker Netman <laker_netman at yahoo.com>
> > > Date: Thu, August 02, 2007 1:13 pm
> > > To: Lance <rancid at gheek.net>
> > > Cc: rancid-discuss at shrubbery.net
> > > 
> > > Here's and example of what I get in email and CVS:
> > > 
> > > Index: configs/192.168.20.206
> > > ===================================================================
> > > retrieving revision 1.38
> > > diff -U4 -r1.38 192.168.20.206
> > > @@ -1072,10 +1072,10 @@
> > > set trunk 4/46 auto negotiate 1-1005,1025-4094
> > > set trunk 4/47 auto negotiate 1-1005,1025-4094
> > > set trunk 4/48 auto negotiate 1-1005,1025-4094
> > > set spantree portfast 4/1-48 disable
> > > - set spantree portcost 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/31-32,4/38,4/45,4/47 19
> > > - set spantree portcost 4/2-4,4/11,4/14-20,4/23-24,4/27-30,4/33-37,4/39-44,4/46,4/48 100
> > > + set spantree portcost 4/1,4/5-10,4/12-13,4/21-22,4/25-26,4/28,4/31-32,4/38,4/45,4/47 19
> > > + set spantree portcost 4/2-4,4/11,4/14-20,4/23-24,4/27,4/29-30,4/33-37,4/39-44,4/46,4/48 100
> > > set spantree portpri 4/1-48 32
> > > set spantree portvlanpri 4/1 0
> > > set spantree portvlanpri 4/2 0
> > > set spantree portvlanpri 4/3 0
> > > @@ -1150,9 +1150,9 @@
> > > set spantree portvlancost 4/24 cost 99
> > > set spantree portvlancost 4/25 cost 18
> > > set spantree portvlancost 4/26 cost 18
> > > set spantree portvlancost 4/27 cost 99
> > > - set spantree portvlancost 4/28 cost 99
> > > + set spantree portvlancost 4/28 cost 18
> > > set spantree portvlancost 4/29 cost 99
> > > set spantree portvlancost 4/30 cost 99
> > > set spantree portvlancost 4/31 cost 18
> > > set spantree portvlancost 4/32 cost 18
> > > @@ -1270,10 +1270,10 @@
> > > set trunk 5/47 auto negotiate 1-1005,1025-4094
> > > set trunk 5/48 auto negotiate 1-1005,1025-4094
> > > set spantree portfast 5/26 enable
> > > set spantree portfast 5/1-25,5/27-48 disable
> > > - set spantree portcost 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/41,5/44-45,5/48 19
> > > - set spantree portcost 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-40,5/42-43,5/46-47 100
> > > + set spantree portcost 5/4,5/6,5/9-12,5/14-15,5/19,5/22-24,5/28,5/33,5/35,5/38,5/44-45,5/48 19
> > > + set spantree portcost 5/1-3,5/5,5/7-8,5/13,5/16-18,5/20-21,5/25-27,5/29-32,5/34,5/36-37,5/39-43,5/46-47 100
> > > set spantree portpri 5/1-48 32
> > > set spantree portvlanpri 5/1 0
> > > set spantree portvlanpri 5/2 0
> > > set spantree portvlanpri 5/3 0
> > > @@ -1361,9 +1361,9 @@
> > > set spantree portvlancost 5/37 cost 99
> > > set spantree portvlancost 5/38 cost 18
> > > set spantree portvlancost 5/39 cost 99
> > > set spantree portvlancost 5/40 cost 99
> > > - set spantree portvlancost 5/41 cost 18
> > > + set spantree portvlancost 5/41 cost 99
> > > set spantree portvlancost 5/42 cost 99
> > > set spantree portvlancost 5/43 cost 99
> > > set spantree portvlancost 5/44 cost 18
> > > set spantree portvlancost 5/45 cost 18
> > > @@ -1466,10 +1466,10 @@
> > > set trunk 6/47 auto negotiate 1-1005,1025-4094
> > > set trunk 6/48 auto negotiate 1-1005,1025-4094
> > > set spantree portfast 6/2,6/37 enable
> > > set spantree portfast 6/1,6/3-36,6/38-48 disable
> > > - set spantree portcost 6/1,6/3-5,6/9,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19
> > > - set spantree portcost 6/2,6/6-8,6/10-14,6/19-22,6/24-36,6/39,6/44-45,6/47 100
> > > + set spantree portcost 6/1,6/3-5,6/9,6/13,6/15-18,6/23,6/37-38,6/40-43,6/46,6/48 19
> > > + set spantree portcost 6/2,6/6-8,6/10-12,6/14,6/19-22,6/24-36,6/39,6/44-45,6/47 100
> > > set spantree portpri 6/1-48 32
> > > set spantree portvlanpri 6/1 0
> > > set spantree portvlanpri 6/2 0
> > > set spantree portvlanpri 6/3 0
> > > @@ -1529,9 +1529,9 @@
> > > set spantree portvlancost 6/9 cost 18
> > > set spantree portvlancost 6/10 cost 99
> > > set spantree portvlancost 6/11 cost 99
> > > set spantree portvlancost 6/12 cost 99
> > > - set spantree portvlancost 6/13 cost 99
> > > + set spantree portvlancost 6/13 cost 18
> > > set spantree portvlancost 6/14 cost 99
> > > set spantree portvlancost 6/15 cost 18
> > > set spantree portvlancost 6/16 cost 18
> > > set spantree portvlancost 6/17 cost 18
> > > Index: configs/192.168.20.219
> > > ===================================================================
> > > retrieving revision 1.28
> > > diff -U4 -r1.28 192.168.20.219
> > > @@ -668,10 +668,10 @@
> > > set trunk 3/46 auto dot1q 1-1005
> > > set trunk 3/47 auto dot1q 1-1005
> > > set trunk 3/48 auto dot1q 1-1005
> > > set spantree portfast 3/1-48 disable
> > > - set spantree portcost 3/1-2,3/11-12,3/19,3/25,3/27-29,3/35,3/37-39,3/41,3/43,3/46-48 19
> > > - set spantree portcost 3/3-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/40,3/42,3/44-45 100
> > > + set spantree portcost 3/1,3/11-12,3/19,3/25,3/27-29,3/35,3/37-38,3/41,3/43,3/46-48 19
> > > + set spantree portcost 3/2-10,3/13-18,3/20-24,3/26,3/30-34,3/36,3/39-40,3/42,3/44-45 100
> > > set spantree portpri 3/1-48 32
> > > set spantree portvlanpri 3/1 0
> > > set spantree portvlanpri 3/2 0
> > > set spantree portvlanpri 3/3 0
> > > @@ -720,9 +720,9 @@
> > > set spantree portvlanpri 3/46 0
> > > set spantree portvlanpri 3/47 0
> > > set spantree portvlanpri 3/48 0
> > > set spantree portvlancost 3/1 cost 18
> > > - set spantree portvlancost 3/2 cost 18
> > > + set spantree portvlancost 3/2 cost 99
> > > set spantree portvlancost 3/3 cost 99
> > > set spantree portvlancost 3/4 cost 99
> > > set spantree portvlancost 3/5 cost 99
> > > set spantree portvlancost 3/6 cost 99
> > > @@ -757,9 +757,9 @@
> > > set spantree portvlancost 3/35 cost 18
> > > set spantree portvlancost 3/36 cost 99
> > > set spantree portvlancost 3/37 cost 18
> > > set spantree portvlancost 3/38 cost 18
> > > - set spantree portvlancost 3/39 cost 18
> > > + set spantree portvlancost 3/39 cost 99
> > > set spantree portvlancost 3/40 cost 99
> > > set spantree portvlancost 3/41 cost 18
> > > set spantree portvlancost 3/42 cost 99
> > > set spantree portvlancost 3/43 cost 18
> > > Index: configs/192.168.20.223
> > > ===================================================================
> > > retrieving revision 1.37
> > > diff -U4 -r1.37 192.168.20.223
> > > @@ -713,10 +713,10 @@
> > > set trunk 4/47 auto dot1q 1-1005
> > > set trunk 4/48 auto dot1q 1-1005
> > > set spantree portfast 4/14 enable
> > > set spantree portfast 4/1-13,4/15-48 disable
> > > - set spantree portcost 4/1,4/10-11,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44-45 19
> > > - set spantree portcost 4/2-9,4/12-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4/43,4/46-48 100
> > > + set spantree portcost 4/1,4/10,4/17-18,4/21,4/23,4/25,4/27,4/29,4/32,4/34,4/38-39,4/42,4/44-45 19
> > > + set spantree portcost 4/2-9,4/11-16,4/19-20,4/22,4/24,4/26,4/28,4/30-31,4/33,4/35-37,4/40-41,4/43,4/46-48 100
> > > set spantree portpri 4/1-48 32
> > > set spantree portvlanpri 4/1 0
> > > set spantree portvlanpri 4/2 0
> > > set spantree portvlanpri 4/3 0
> > > @@ -774,9 +774,9 @@
> > > set spantree portvlancost 4/7 cost 99
> > > set spantree portvlancost 4/8 cost 99
> > > set spantree portvlancost 4/9 cost 99
> > > set spantree portvlancost 4/10 cost 18
> > > - set spantree portvlancost 4/11 cost 18
> > > + set spantree portvlancost 4/11 cost 99
> > > set spantree portvlancost 4/12 cost 99
> > > set spantree portvlancost 4/13 cost 99
> > > set spantree portvlancost 4/14 cost 99
> > > set spantree portvlancost 4/15 cost 99
> > > @@ -889,10 +889,10 @@
> > > set trunk 5/47 auto dot1q 1-1005
> > > set trunk 5/48 auto dot1q 1-1005
> > > set spantree portfast 5/10 enable
> > > set spantree portfast 5/1-9,5/11-48 disable
> > > - set spantree portcost 5/4,5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19
> > > - set spantree portcost 5/1-3,5/5-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/44-48 100
> > > + set spantree portcost 5/7,5/11-12,5/15,5/18,5/20,5/26-27,5/33,5/35-36,5/43 19
> > > + set spantree portcost 5/1-6,5/8-10,5/13-14,5/16-17,5/19,5/21-25,5/28-32,5/34,5/37-42,5/44-48 100
> > > set spantree portpri 5/1-48 32
> > > set spantree portvlanpri 5/1 0
> > > set spantree portvlanpri 5/2 0
> > > set spantree portvlanpri 5/3 0
> > > @@ -943,9 +943,9 @@
> > > set spantree portvlanpri 5/48 0
> > > set spantree portvlancost 5/1 cost 99
> > > set spantree portvlancost 5/2 cost 99
> > > set spantree portvlancost 5/3 cost 99
> > > - set spantree portvlancost 5/4 cost 18
> > > + set spantree portvlancost 5/4 cost 99
> > > set spantree portvlancost 5/5 cost 99
> > > set spantree portvlancost 5/6 cost 99
> > > set spantree portvlancost 5/7 cost 18
> > > set spantree portvlancost 5/8 cost 99
> > > @@ -1063,10 +1063,10 @@
> > > set trunk 6/47 auto dot1q 1-1005
> > > set trunk 6/48 auto dot1q 1-1005
> > > set spantree portfast 6/29,6/32 enable
> > > set spantree portfast 6/1-28,6/30-31,6/33-48 disable
> > > - set spantree portcost 6/9,6/17,6/26-27,6/30,6/33,6/36 19
> > > - set spantree portcost 6/1-8,6/10-16,6/18-25,6/28-29,6/31-32,6/34-35,6/37-48 100
> > > + set spantree portcost 6/9,6/17,6/24,6/26-27,6/30,6/33,6/36 19
> > > + set spantree portcost 6/1-8,6/10-16,6/18-23,6/25,6/28-29,6/31-32,6/34-35,6/37-48 100
> > > set spantree portpri 6/1-48 32
> > > set spantree portvlanpri 6/1 0
> > > set spantree portvlanpri 6/2 0
> > > set spantree portvlanpri 6/3 0
> > > @@ -1137,9 +1137,9 @@
> > > set spantree portvlancost 6/20 cost 99
> > > set spantree portvlancost 6/21 cost 99
> > > set spantree portvlancost 6/22 cost 99
> > > set spantree portvlancost 6/23 cost 99
> > > - set spantree portvlancost 6/24 cost 99
> > > + set spantree portvlancost 6/24 cost 18
> > > set spantree portvlancost 6/25 cost 99
> > > set spantree portvlancost 6/26 cost 18
> > > set spantree portvlancost 6/27 cost 18
> > > set spantree portvlancost 6/28 cost 99
> > > 
> > > ----- Original Message ----
> > > From: Lance <rancid at gheek.net>
> > > To: Laker Netman <laker_netman at yahoo.com>
> > > Cc: rancid-discuss at shrubbery.net
> > > Sent: Wednesday, August 1, 2007 2:39:20 PM
> > > Subject: RE: [rancid] spanning tree/portcost changes causing diffs
> > > 
> > > Maybe I am a little crazy but I don't think it would be that hard to do.
> > > Of course if depends where you want the changes to be ignored. If you
> > > want them to be tracked in CVS but not in the emails then I think that
> > > is easy to do, but I would like to see the emails reflect the CVS repo.
> > > So saying that I would say you either keep them or get rid of them with
> > > an option in rancid.conf.
> > > 
> > > Opinions?
> > > 
> > > -Lance
> > > 
> > > > -------- Original Message --------
> > > > Subject: [rancid] spanning tree/portcost changes causing diffs
> > > > From: Laker Netman <laker_netman at yahoo.com>
> > > > Date: Wed, August 01, 2007 12:11 pm
> > > > To: rancid-discuss at shrubbery.net
> > > > 
> > > > I have read several threads on the subject of portcost changes creating bogus diffs, but I haven't found one that presents a solution. Is there one?
> > > > 
> > > > I am running RANCID 2.3.2a6
> > > > 
> > > > 
> > > > Thanks,
> > > > Laker
> > > > 
> > > > 
> > > > 
> > > > 
> > > > ____________________________________________________________________________________
> > > > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 
> > > > 
> > > > _______________________________________________
> > > > Rancid-discuss mailing list
> > > > Rancid-discuss at shrubbery.net
> > > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > ____________________________________________________________________________________
> > > Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.
> > > http://autos.yahoo.com/carfinder/
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > ____________________________________________________________________________________Ready for the edge of your seat? 
> > Check out tonight's top picks on Yahoo! TV. 
> > http://tv.yahoo.com/
> 
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss






       
____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/


More information about the Rancid-discuss mailing list