[quagga-dev 11627] Overhual BGP debugs

Daniel Walton dwalton at cumulusnetworks.com
Thu Oct 23 14:31:21 BST 2014


Overhual BGP debugs 
Summary of changes 
- added an option to enable keepalive debugs for a specific peer 
- added an option to enable inbound and/or outbound updates debugs for a specific peer 
- added an option to enable update debugs for a specific prefix 
- added an option to enable zebra debugs for a specific prefix 
- combined "deb bgp", "deb bgp events" and "deb bgp fsm" into "deb bgp neighbor-events". "deb bgp neighbor-events" can be enabled for a specific peer. 
- merged "deb bgp filters" into "deb bgp update" 
- moved the per-peer logging to one central log file. We now have the ability to filter all verbose debugs on a per-peer and per-prefix basis so we no longer need to keep log files per-peer. This simplifies troubleshooting by keeping all BGP logs in one location. The use 
r can then grep for the peer IP they are interested in if they wish to see the logs for a specific peer. 
- Changed "show debugging" in isis to "show debugging isis" to be consistent with all other protocols. This was very confusing for the user because they would type "show debug" and expect to see a list of debugs enabled across all protocols. 
- Removed "undebug" from the parser for BGP. Again this was to be consisten with all other protocols. 
- Removed the "all" keyword from the BGP debug parser. The user can now do "no debug bgp" to disable all BGP debugs, before you had to type "no deb all bgp" which was confusing. 

The new parse tree for BGP debugging is: 

deb bgp as4 
deb bgp as4 segment 
deb bgp keepalives [A.B.C.D|WORD|X:X::X:X] 
deb bgp neighbor-events [A.B.C.D|WORD|X:X::X:X] 
deb bgp nht 
deb bgp updates [in|out] [A.B.C.D|WORD|X:X::X:X] 
deb bgp updates prefix [A.B.C.D/M|X:X::X:X/M] 
deb bgp zebra 
deb bgp zebra prefix [A.B.C.D/M|X:X::X:X/M] 

https://github.com/CumulusNetworks/quagga/commit/0604850f2a070c7f35b3706cb6ba6224094ac116 

Daniel 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quagga.net/pipermail/quagga-dev/attachments/20141023/f75dc32e/attachment-0001.html>


More information about the Quagga-dev mailing list