]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix process_queue when un-hiding
authorLouis Scalbert <louis.scalbert@6wind.com>
Wed, 12 Feb 2025 12:09:37 +0000 (13:09 +0100)
committerLouis Scalbert <louis.scalbert@6wind.com>
Fri, 14 Feb 2025 17:08:53 +0000 (18:08 +0100)
commita2c1956efa399c6770605712d0b53e5f24979acc
treef3408ebd6326944573617a65895944a989248e8c
parent20664936afc7f952a51a19ab26daece5105bbee5
bgpd: fix process_queue when un-hiding

bgp_process_queue_init() is not called in bgp_create() when leaving the
BGP instance hidden state because of the following goto:

> if (hidden) {
> bgp = bgp_old;
> goto peer_init;
> }

Upon reconfiguration of the default instance, the prefixes are never set
into a meta queue by mq_add_handler(). They are never processed for
zebra RIB installation and announcements of update/withdraw.

Do not delete the BGP process_queue when hiding.

Fixes: 4d0e7a49cf ("bgpd: VRF-Lite fix default bgp delete")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
bgpd/bgpd.c