summaryrefslogtreecommitdiff
path: root/zebra/zserv.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zserv.c')
-rw-r--r--zebra/zserv.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/zebra/zserv.c b/zebra/zserv.c
index 4c8656af0d..44f4641fcf 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -590,6 +590,7 @@ static void zserv_client_free(struct zserv *client)
/* Close file descriptor. */
if (client->sock) {
unsigned long nroutes;
+ unsigned long nnhgs;
close(client->sock);
@@ -600,6 +601,13 @@ static void zserv_client_free(struct zserv *client)
"client %d disconnected %lu %s routes removed from the rib",
client->sock, nroutes,
zebra_route_string(client->proto));
+
+ /* Not worrying about instance for now */
+ nnhgs = zebra_nhg_score_proto(client->proto);
+ zlog_notice(
+ "client %d disconnected %lu %s nhgs removed from the rib",
+ client->sock, nnhgs,
+ zebra_route_string(client->proto));
}
client->sock = -1;
}