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 <[email protected]>
  • Loading branch information
ton31337 committed Sep 5, 2024
1 parent 4f185c5 commit d815c89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bgpd/bgp_zebra.c
Original file line number Diff line number Diff line change
Expand Up @@ -3585,7 +3585,10 @@ void bgp_if_init(void)

static void bgp_start_label_manager(struct event *start)
{
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);
}

static bool bgp_zebra_label_manager_ready(void)
Expand Down

0 comments on commit d815c89

Please sign in to comment.