From: Philippe Guibert Date: Mon, 21 May 2018 14:40:31 +0000 (+0200) Subject: bgpd: upon uninstalling pbr rule, update local structure X-Git-Tag: frr-5.0~3^2~7 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e195a297087e08105e7948be54c97747bf3298f7;p=matthieu%2Ffrr.git 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 --- 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; } } }