filters: Implement "ifname" and "ifindex" route attributes

Ondrej Zajicek santiago at crfreenet.org
Fri Sep 27 11:26:36 CEST 2013


On Thu, Sep 26, 2013 at 12:45:37PM +0300, Sergey Popovich wrote:
> 
> Hello, BIRD developers!
> 
> Currently there is no way in filter rules to match routes by interface name
> and interface index.
> 
> Only one thing that is really needed is exposing attribute with name to filter 
> which references route outgoing interface name and index. Of course all of 
> these variables must be readonly.

Thanks for this patch too, but the original static attribute handling code
was rather messy and your patch would make it even more messier, so i finally
rewrote that part:

https://gitlab.labs.nic.cz/labs/bird/commit/a5fc59587fe864e4fcfb44eb3be57231b4ca339b


> Currently only sink (blackhole, unreachable and prohibit) routes in BIRD
> have no interface associated. Return an empty string and index equal to zero
> (no real index in kernel) for such routes.

BTW, multipath routes also do not have an associated interface in rta.

-- 
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: 197 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20130927/9198e0e8/attachment-0001.asc>


More information about the Bird-users mailing list