bug: routes in linux kernel are not removed on withdraw if krt_metric is used

Leif Jakob jakob at weite-welt.com
Mon May 27 07:42:03 CEST 2024


bird version: 2.0.12-7 (Debian stable)

Hi,

I use this config to install BGP routes into the linux kernel:

protocol kernel {
  kernel table 300;
  scan time 10;
  learn on;
  graceful restart;
  metric 0; # needed to override in filter

  ipv6 {
    import none; # kernel->bgp - nothing needed
    export filter { # bgp->kernel
      if ( proto = "xxx"       ) then { krt_metric = 20; accept; } # lower is choosed first by kernel
      if ( proto = "yyy"       ) then { krt_metric = 30; accept; }
      reject;
    };
  };
}

This works fine. But when the route is removed (protocol gets down) it's still in the linux kernel.

If I remove the krt_metric in the config it all works fine.

Thanks
Leif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20240527/b0641e71/attachment.htm>


More information about the Bird-users mailing list