BGP filter

Arvin Gan AGan at advaoptical.com
Wed Apr 25 11:58:33 CEST 2018


Hi All,
  I am implementing a function that send default route to BGP peer, and I am facing an issue about BGP filter, when I use "show route filter" in birdc, the filter result is correct; when I add this filter to config-file and start bird, the bird will occur coredump issue. Does anyone know the reason?  Appreciated in advance.


1.       bird>show route filter {if format(net) = "0.0.0.0/0" then accept;}  //correct result

/* show route filter {if net = "0.0.0.0/0" then accept;}  // incorrect result  */

2.       config-file:
              filter filter_bgp1{
                  if format(net) = "0.0.0.0/0" then accept;  // "format(net) = ..." , bird coredump ???
                  /* if net = "0.0.0.0/0" then accept;  // " net= ..." ,  not bird coredump*/
            }

          protocol  bgp bgp1 {
             ......
            ipv4 {
                  import all;
                  export filter filter_bgp1;
          };
          ........
}
Thanks
Arvin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20180425/f2e03c26/attachment.html>


More information about the Bird-users mailing list