]> 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:02:51 +0000 (21:02 +0200)
commitc324949b20d3a562f61adcdbb7a6b7ac768312bc
tree26809977b24b7e1ee17ee6b5adeab1bbbdd81dd5
parent33239b558dd5cba82e50bb576e2d3e59a2eb3ab6
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