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/a5fc59587fe864e4fcfb44eb3be57231...
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@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."