]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: do not add default route for flowspec for each FS entry
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 13 Jun 2018 09:56:35 +0000 (11:56 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 2 Jul 2018 07:20:39 +0000 (09:20 +0200)
Because the Flowspec entries are parsed first, then injected to Zebra,
there are cases where the install feedback from zebra is not received.
This leads to unnecessary add route events, whereas one should be
enough.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_pbr.c

index bf09a999d477748d7f86e094220765e191c29f5c..779bf2de6dd8dd95b4e0c10f7c6d818e195126cd 100644 (file)
@@ -1393,7 +1393,7 @@ static void bgp_pbr_policyroute_add_to_zebra(struct bgp *bgp,
         * it will be suppressed subsequently
         */
        /* ip rule add */
-       if (!bpa->installed) {
+       if (!bpa->installed && !bpa->install_in_progress) {
                bgp_send_pbr_rule_action(bpa, true);
                bgp_zebra_announce_default(bgp, nh,
                                           AFI_IP, bpa->table_id, true);