From e69aa084193bcadc7a48c99c381741e8ff307658 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 15 Mar 2018 21:06:44 -0400 Subject: zebra: Allow for deletion of rules when the originator goes away When zebra detects that the originator has dissapeared delete all rules associated with that client. Signed-off-by: Donald Sharp --- zebra/zserv.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'zebra/zserv.c') diff --git a/zebra/zserv.c b/zebra/zserv.c index 57b1be4b8..5a903f051 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -2631,6 +2631,9 @@ static void zebra_client_free(struct zserv *client) /* Send client de-registration to BFD */ zebra_ptm_bfd_client_deregister(client->proto); + /* Cleanup any rules installed from this client */ + zebra_pbr_client_close_cleanup(client->sock); + /* Cleanup any registered nexthops - across all VRFs. */ zebra_client_close_cleanup_rnh(client); -- cgit v1.2.3