<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi.<br>
    <br>
    For this situation we may have more solutions. <br>
    <br>
    You can do the check only on routes that have bgp_path defined. <br>
    <br>
    You can add:<br>
    <br>
        if defined (bgp_path)...<br>
    <br>
    It also seems, that you are using this in an export filter. It might
    be more useful to use this in a BGP import filter. In that case
    every route will have bgp_path defined.<br>
    <br>
    I hope this helps. <br>
    Happy routing, <br>
    Jana<br>
    <pre class="moz-signature" cols="72">Jana Babovakova (she/her) | BIRD Tech Support | CZ.NIC, z.s.p.o.

</pre>
    <div class="moz-cite-prefix">On 22. 05. 25 3:41,
      <a class="moz-txt-link-abbreviated" href="mailto:ushiroz@ate-mahoroba.jp">ushiroz@ate-mahoroba.jp</a> wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:20250522104104.6D32.6F9F92@ate-mahoroba.jp">
      <pre wrap="" class="moz-quote-pre">Hi,

In our BIRD 2.14 we’re running roa_check like this:

  if (net.type = NET_IP4) then {
    case roa_check(r4, net, bgp_path.last) {

However, the BIRD logs show the following error:

<ERR> filters, line 1: Missing AS_PATH attribute

would it be advisable to add a check to determine whether the route is a BGP route before proceeding?


</pre>
    </blockquote>
    <br>
  </body>
</html>