]> 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>
Thu, 27 Feb 2025 08:43:55 +0000 (09:43 +0100)
commitcec0da3d9b26b718ae8975e0741c6ffac3bcf750
treefd3dcccf9e4ef6b1e3536236e9dff1bf0f14f333
parent64dba6b488cc9905811477bb9677c8ca2c205f6b
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>
(cherry picked from commit 71a3756f2dda272e69727fa416bca12c016d9567)
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
bgpd/bgpd.c