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: [email protected]) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
signature.asc
Description: PGP signature
