summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-06-19 18:35:52 +0300
committerDonatas Abraitis <donatas@opensourcerouting.org>2023-06-20 20:50:40 +0300
commit52dde8747b484cd00120cd9d9d9128c6ece1d943 (patch)
treed51c0bb6635d187a774dd609b4954c4e1d24089b
parent257a0e0688f341d58d39e969d55449543d1d0b30 (diff)
zebra: Ignore non GR-aware zclient handling for BGP
This is for synchronous client (label/table manager) - aka session_id == 1. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
-rw-r--r--zebra/zserv.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/zebra/zserv.c b/zebra/zserv.c
index 3170da5193..85e1edeca0 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -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);