]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: fix duplicated test clause
authorMark Stapp <mjs@cisco.com>
Tue, 3 Sep 2024 20:11:17 +0000 (16:11 -0400)
committerMark Stapp <mjs@cisco.com>
Tue, 3 Sep 2024 20:11:17 +0000 (16:11 -0400)
Fix a duplicated test clause - cut-and-paste mistake, maybe?

Signed-off-by: Mark Stapp <mjs@cisco.com>
bgpd/bgp_evpn.c

index cb5c8983151bbab339e1b64aeb12bb189f1c3d25..db9364063518a1dd65bccf83f7c2edaff00ec07b 100644 (file)
@@ -2124,22 +2124,18 @@ static void evpn_zebra_reinstall_best_route(struct bgp *bgp,
                }
        }
 
-       if (curr_select && curr_select->type == ZEBRA_ROUTE_BGP
-                       && (curr_select->sub_type == BGP_ROUTE_IMPORTED ||
-                               bgp_evpn_attr_is_sync(curr_select->attr)))
-               if (curr_select && curr_select->type == ZEBRA_ROUTE_BGP &&
-                   (curr_select->sub_type == BGP_ROUTE_IMPORTED ||
-                    bgp_evpn_attr_is_sync(curr_select->attr))) {
-                       if (CHECK_FLAG(bgp->flags, BGP_FLAG_DELETE_IN_PROGRESS))
-                               evpn_zebra_install(bgp, vpn,
-                                                  (const struct prefix_evpn *)
-                                                          bgp_dest_get_prefix(
-                                                                  dest),
-                                                  curr_select);
-                       else
-                               bgp_zebra_route_install(dest, curr_select, bgp,
-                                                       true, vpn, false);
-               }
+       if (curr_select && curr_select->type == ZEBRA_ROUTE_BGP &&
+           (curr_select->sub_type == BGP_ROUTE_IMPORTED ||
+            bgp_evpn_attr_is_sync(curr_select->attr))) {
+               if (CHECK_FLAG(bgp->flags, BGP_FLAG_DELETE_IN_PROGRESS))
+                       evpn_zebra_install(bgp, vpn,
+                                          (const struct prefix_evpn *)
+                                                  bgp_dest_get_prefix(dest),
+                                          curr_select);
+               else
+                       bgp_zebra_route_install(dest, curr_select, bgp, true,
+                                               vpn, false);
+       }
 }
 
 /*