BIRD, Route Source and BSD
Ondrej Zajicek
santiago at crfreenet.org
Wed Nov 30 13:48:36 CET 2016
On Fri, Nov 25, 2016 at 05:45:52PM +0100, Jean-Baptiste COUPIAC wrote:
> Hello list,
>
> I'm a new in Bird word :).
>
> I'm working on a Bird mock-up. I'm actually blocked on OSPF filters.
>
> ...
> And when I check the bird route when network is accepted, I can see "OSPF"
> bird> show route
> 0.0.0.0/0 via 192.168.0.254 on xn0 [kernel1 16:35:00] * (10)
> 192.168.0.221/32 dev lo0 [kernel1 16:35:00] * (10)
> *80.247.227.0/24 <http://80.247.227.0/24> via 172.16.51.4 on xn1 [OSPF
> 16:42:18] * I (150/20) [192.168.0.223]*
> 172.16.51.1/32 dev lo0 [kernel1 16:35:00] * (10)
> bird>
>
> So I don't understand why *&& (source ~ [ RTS_OSPF_EXT1, RTS_OSPF_EXT2 ]) *does
> not match when the rule is added to my filter ?
Hello
The expression does not mach because you are matching against OSPF
external route types, while the route is OSPF internal route (RTS_OSPF).
You have to use:
[ RTS_OSPF, RTS_OSPF_IA, RTS_OSPF_EXT1, RTS_OSPF_EXT2 ]
For a set of all OSPF route types.
Or just check that source = RTS_OSPF if you know the route is OSPF internal.
--
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."
More information about the Bird-users
mailing list