External OSPF route cost metric

Ondrej Zajicek santiago at crfreenet.org
Fri Jul 17 22:48:09 CEST 2015


On Mon, Jul 13, 2015 at 11:50:16AM +0200, Christian Tacke wrote:
> Just some ideas / hints (use your own brain):
> 
> I assume those routes are already in a bird main table.
> Try 
>   show route all
> to look at those routes and find the attribute with the
> cost.  I hope it is something like kernel.cost or
> something.
> 
> Then in your filter you can do:
>   if ... then OSPF.metric1 = PROTO.attr * 100;

Hi

Unfortunately the syntax in filters is slightly different than one
in 'show route all' so it is ospf_metric1 instead of OSPF.metric1 .

-- 
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: 181 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20150717/749aa69c/attachment.asc>


More information about the Bird-users mailing list