BFD neighbor reload issue

Ondrej Zajicek santiago at crfreenet.org
Mon Sep 30 18:55:04 CEST 2019


On Mon, Sep 30, 2019 at 11:15:45PM +0800, Winston Chen wrote:
> Hi,
> 
> I am using BFD neighbor to config BFD sessions statically. I found that if I
> add/remove BFD neighbors in bird.conf  and ask bird to reload with HUP
> signal, bird cannot reload the configuration correctly.
> ...
> After digging into the code, I found that it looks like there is a bug in
> function bfd_reconfigure_neighbors. It loops to check neighbor in old and
> new configuration. There is a return in the block if (bfd_same_neighbor(nn,
> on)). If there is  neighbor existing in both new and old, reconfiguration
> might be skipped.

Hi

Thanks. You are right, the return should just continue in the outer loop.
Your patch seems OK, i just used a simpler fix (attached).

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at 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."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-bfd-reconfig.patch
Type: text/x-diff
Size: 373 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20190930/082dafaf/attachment.bin>


More information about the Bird-users mailing list