filter all prefixes except a few with 'case' control

Ondrej Zajicek santiago at crfreenet.org
Thu Sep 29 09:16:11 CEST 2016


On Thu, Sep 29, 2016 at 07:01:00AM +0000, Войнович Андрей Александрович wrote:
> Construction with single IP addresses passes syntax check, but filter does not work as expected - it passes all routes and does not filter anything.

H

1) Case expression works for most types with exception of prefixes. It is not implemented for prefixes.

2) Case expressio with ip addresses works, but you must put ip address and not network to it (i.e. use 'case net.ip { ... }')

3) What you are trying to do is usually done with a prefix set:

  if net ~ [1.1.1.1/32, 2.2.2.2/32, ...] then ...

4) ROA tables could be used with any prefixes even if they are non-BGP,
just supply some dummy ASN. But prefix sets in this case are enough and
much simpler.

-- 
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/20160929/9e3ca813/attachment.asc>


More information about the Bird-users mailing list