Skip to content

Commit

Permalink
bgpd: Retry connecting to label manager if failed
Browse files Browse the repository at this point in the history
Fixes: FRRouting#16747

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
  • Loading branch information
ton31337 committed Sep 5, 2024
1 parent 835e745 commit 0e1dc15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bgpd/bgp_zebra.c
Original file line number Diff line number Diff line change
Expand Up @@ -3585,7 +3585,8 @@ void bgp_if_init(void)

static void bgp_start_label_manager(struct event *start)
{
if (!bgp_zebra_label_manager_connect())
if (!bgp_zebra_label_manager_ready() &&
!bgp_zebra_label_manager_connect())
event_add_timer(bm->master, bgp_start_label_manager, NULL, 1,
&bm->t_bgp_start_label_manager);
}
Expand Down

0 comments on commit 0e1dc15

Please sign in to comment.