Bird 2.0.0 and (filter) code deduplication
Ondrej Zajicek
santiago at crfreenet.org
Sun Dec 17 03:19:09 CET 2017
On Sun, Dec 17, 2017 at 01:37:39AM +0100, Luis Ressel wrote:
> Hello *,
>
> Could you please add a way to check the current channel's AFI/SAFI from
> within filter code? That way, I could keep my bar() function unmodified
> and merge the two foo() implementations using a 'if afi = "ipv4" then
> { } else { }' construction.
Hi
You can use 'net.type = NET_IP4', 'net.type = NET_IP6'.
See: http://bird.network.cz/?get_doc&f=bird-5.html#type-prefix
--
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: 195 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20171217/c7b49bef/attachment.asc>
More information about the Bird-users
mailing list