From 6ee203557a7f9c35666752920cd2eb0881c9e069 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Mon, 21 May 2018 16:40:31 +0200 Subject: [PATCH] bgpd: upon uninstalling pbr rule, update local structure Currently, uninstall pbr rule is not handled by BGP notification handler. So the uninstall update of the structure is done, immediately after sending the request of uninstall to zebra. Signed-off-by: Philippe Guibert --- bgpd/bgp_pbr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bgpd/bgp_pbr.c b/bgpd/bgp_pbr.c index 120d0b390f..6ba5293dae 100644 --- a/bgpd/bgp_pbr.c +++ b/bgpd/bgp_pbr.c @@ -480,6 +480,7 @@ static void bgp_pbr_action_free(void *arg) AFI_IP, bpa->table_id, false); + bpa->installed = false; } } XFREE(MTYPE_PBR_ACTION, bpa); @@ -917,6 +918,7 @@ static void bgp_pbr_flush_entry(struct bgp *bgp, struct bgp_pbr_action *bpa, AFI_IP, bpa->table_id, false); + bpa->installed = false; } } } -- 2.39.5