]> git.puffer.fish Git - matthieu/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>
Mon, 24 Feb 2025 14:17:05 +0000 (15:17 +0100)
commit71a3756f2dda272e69727fa416bca12c016d9567
tree8495e17f4b6fdbc26b21a7c3b4ad145054152d5b
parentd2ff7e8a2117ad4bc38cec0e48c6b3c11dc49c91
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