]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: upon uninstalling pbr rule, update local structure
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 21 May 2018 14:40:31 +0000 (16:40 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 31 May 2018 15:44:40 +0000 (17:44 +0200)
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 <philippe.guibert@6wind.com>
bgpd/bgp_pbr.c

index 120d0b390f22c44070c4b8b266f663d82a2822c7..6ba5293daeb2ca8797d5a24020a9492a56faaed7 100644 (file)
@@ -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;
                }
        }
 }