Counting prefered routes for a protocol with bird2
Ondrej Zajicek
santiago at crfreenet.org
Fri Nov 30 00:14:21 CET 2018
On Tue, Nov 27, 2018 at 03:32:36PM +0100, Alarig Le Lay wrote:
> Hi,
>
> With bird1, I can know how much routes are used for each protocol just
> by parsing birdc:
> [alarig at nominoe ~]$ birdc show protocols all bgp_breizhix | grep 'Routes:'
> Routes: 75 imported, 0 filtered, 4 exported, 73 preferred
>
> With bird2, I don’t see this information:
> [alarig at budic ~]$ birdc -r show protocols all bgp_breizhix_ipv4
>
> [alarig at budic ~]$ time birdc -r show route count primary table master4 protocol bgp_breizhix_ipv4 | awk '/routes/ { print $1 }'
>
> Is there a faster manner to do this?
Hi
Not really, we removed the preferred counter as it was misleading -
it counted each route several times for each routing table in which
it was preferred.
> My goal is to adapt
> https://git.grifon.fr/alarig/munin-bird/src/branch/master/bird_ to
> bird2.
I would just also drop the preferred counter from the munin script.
--
Elen sila lumenn' omentielvo
Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20181130/de520666/attachment.sig>
More information about the Bird-users
mailing list