OSPF: Route attribute "ospf_tag" lost between different OSPF instances

Ondrej Zajicek santiago at crfreenet.org
Wed Dec 28 01:25:24 CET 2016


On Wed, Dec 28, 2016 at 12:49:16AM +0100, markus/grundmann wrote:
> I tried to use this "variable" ;-) *lol*
> 
> [snip]
>         if ospf_rcv_tag = 510 then {
>            ospf_metric1 = SEC_M1_VPN;
>            ospf_metric2 = SEC_M2_VPN;
>            accept;
>         }
> [/snap]

That was just a contemplation about possible design options.

If you need current time workaround, the simplest way is to abuse some
other integer attribute (e.g. bgp_med) to store the value [1] in the
import filter of the first OSPF instance, then restore it [2] in the
export filter of the second OSPF instance. It is a dirty untested
trick, but it should work.

[1] bgp_med = ospf_tag;

[2] ospf_tag = bgp_med;

-- 
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/20161228/935acf7b/attachment.asc>


More information about the Bird-users mailing list