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

Sergey Popovich popovich_sergei at mail.ru
Fri Sep 27 11:10:21 CEST 2013


В письме от 27 сентября 2013 11:26:36 пользователь Ondrej Zajicek написал:
> 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:

Agree with this, static attribute handing code after your rewrite looks much 
more cleaner.

> https://gitlab.labs.nic.cz/labs/bird/commit/a5fc59587fe864e4fcfb44eb3be57231
> b4ca339b
> > 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.

Thanks, I will keep this in my mind.

-- 
SP5474-RIPE
Sergey Popovich




More information about the Bird-users mailing list