Bird 2.0.10: ipv6 static onlink route updates after each scan time
Hi, I have an issue with onlink static routes bird constantly remove and add them to kernel. Is this expected behavior that for ipv6 onlink route bird after each scan time remove and add route? for other static routes bird update kernel once My setup: protocol kernel { scan time 2; ipv4 { export all; }; merge paths on; } protocol kernel { scan time 2; ipv6 { export all; }; merge paths on; } protocol device { scan time 2; } protocol static { ipv4 { preference 50; }; } protocol static { ipv6 { preference 50; }; route 2600:1408:c400::1234/128 via "eth-1_1_39_1" onlink; #update after each scan time by remove and add route 2600:1408:c400::4444/128 via "eth-1_1_39_1"; #update once } protocol direct { ipv4; ipv6; interface "eth*"; } I would expect single update similar to other static routes this cause changes in kernel in each kernel scan time. Best regards, Marcin
On Wed, Oct 12, 2022 at 11:04:52AM +0000, Saklak, Marcin via Bird-users wrote:
Hi, I have an issue with onlink static routes bird constantly remove and add them to kernel.
Is this expected behavior that for ipv6 onlink route bird after each scan time remove and add route? for other static routes bird update kernel once
Hello Onlink flag is meaningful only with explicit next hops (IPs). I would check how it will behave with direct routes (like in your case), but that is not expected usage.
route 2600:1408:c400::1234/128 via "eth-1_1_39_1" onlink; #update after each scan time by remove and add
route 2600:1408:c400::4444/128 via "eth-1_1_39_1"; #update once
-- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
On Wed, Oct 12, 2022 at 05:00:07PM +0200, Ondrej Zajicek via Bird-users wrote:
On Wed, Oct 12, 2022 at 11:04:52AM +0000, Saklak, Marcin via Bird-users wrote:
Hi, I have an issue with onlink static routes bird constantly remove and add them to kernel.
Is this expected behavior that for ipv6 onlink route bird after each scan time remove and add route? for other static routes bird update kernel once
Hello
Onlink flag is meaningful only with explicit next hops (IPs). I would check how it will behave with direct routes (like in your case), but that is not expected usage.
Fixed by this commit: https://gitlab.nic.cz/labs/bird/-/commit/324252975004154cc70623c94f05083bff1... The online flaw was ignored on routes without next hop -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
participants (2)
-
Ondrej Zajicek -
Saklak, Marcin