]> git.ipfire.org Git - thirdparty/bird.git/commit
BGP: fix warnings for roa_check() with no import table and route refresh on
authorMaria Matejka <mq@ucw.cz>
Wed, 21 May 2025 09:06:01 +0000 (11:06 +0200)
committerMaria Matejka <mq@ucw.cz>
Sun, 25 May 2025 19:01:49 +0000 (21:01 +0200)
commit23d9ae35c1ea937a4a9faedc876a15c9a9cf4aff
tree7e7fed6f9019dad15047302dd2b28996e5cb3c27
parent00562a5eb217ea9c0feadfe9391a427dc0442637
BGP: fix warnings for roa_check() with no import table and route refresh on

When roa_check() appears in import filters, the autoreload is switched
on but prohibited for BGP if no import table is available. By fixing the
route refresh feature in 9edc421148fe9c5e7d6038b667ba8fafb587a1eb, we
inadvertently exposed another bug where Nest wasn't distinguishing
between locally and remotely available reload.

Whereas on manual reconfiguration, the route refresh is expected to be
invoked, the autoreload should not trigger any remote actions. Therefore
now the channels actualy indicate whether their reload hook triggers
remote actions or not. This information can be then used to decide
whether to allow autoreload or not.
nest/proto.c
nest/protocol.h
proto/bgp/bgp.c