Regarding how to check the results of roa_check()
Alexander Zubkov
green at qrator.net
Tue Mar 25 10:37:01 CET 2025
I think because in this query you are checking both IPv4 and IPv6 routes
with v6 roa table, so IPv6 routes are getting statuses
VALID/INVALID/UNKNOWN, and all IPv4 routes are getting UNKNOWN. So you see
in the result. I think you might want to add something like that to your
filter:
net.type = NET_IP6 && roa_check(r6) = ROA_UNKNOWN
On Tue, Mar 25, 2025 at 10:13 AM <ushiroz at ate-mahoroba.jp> wrote:
> Thanks Alexander for the response.
>
> I confirmed that the following commands were executed and the results of
> VALID and INVALID were displayed.
>
> bird> show route where roa_check(r6) = ROA_VALID
> bird> show route where roa_check(r6) = ROA_INVALID
>
> In the case of VALID and INVALID, the results for v6 are displayed, but in
> the case of UNKNOWN, even if the following command is executed, the results
> for both v4 and v6 are displayed.
>
> Is it because ROA_UNKNOWN cannot distinguish between v4 and v6, or is it a
> bug in bird?
> (The version of bird is 2.14)
>
>
> On Sun, 23 Mar 2025 13:58:55 +0100
> Alexander Zubkov <green at qrator.net> wrote:
>
> > Hi,
> >
> > Doesn't it work when using in CLI expressions? Like this:
> > show route where roa_check(...) = ROA_VALID
> >
> > On Sun, Mar 23, 2025 at 10:24?AM <ushiroz at ate-mahoroba.jp> wrote:
> >
> > > Hi
> > >
> > > I am using roa_check().
> > > Is there a bird command that checks the result of roa_check() on the
> > > command line, not just in the conf processing?
> > >
> > >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20250325/b4ee0b4b/attachment.htm>
More information about the Bird-users
mailing list