Skip to content

Commit

Permalink
zebra: Ignore non GR-aware zclient handling for BGP
Browse files Browse the repository at this point in the history
This is for synchronous client (label/table manager) - aka session_id == 1.

Signed-off-by: Donatas Abraitis <[email protected]>
  • Loading branch information
ton31337 committed Jun 20, 2023
1 parent 257a0e0 commit 52dde87
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions zebra/zserv.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,13 @@ static void zserv_client_free(struct zserv *client)

close(client->sock);

/* If this is a synchronous BGP Zebra client for label/table
* manager, then ignore it. It's not GR-aware, and causes GR to
* be skipped for the session_id == 0 (asynchronous).
*/
if (client->proto == ZEBRA_ROUTE_BGP && client->session_id == 1)
return;

if (DYNAMIC_CLIENT_GR_DISABLED(client)) {
zebra_mpls_client_cleanup_vrf_label(client->proto);

Expand Down

0 comments on commit 52dde87

Please sign in to comment.