]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: remove unused safi in bgp_aggregate structure 17842/head
authorEnke Chen <enchen@paloaltonetworks.com>
Sat, 11 Jan 2025 22:14:10 +0000 (14:14 -0800)
committerEnke Chen <enchen@paloaltonetworks.com>
Sat, 11 Jan 2025 22:14:10 +0000 (14:14 -0800)
Remove the unused safi field in bgp_aggregate structure.

Signed-off-by: Enke Chen <enchen@paloaltonetworks.com>
bgpd/bgp_route.c
bgpd/bgp_route.h

index f520c2e2bc843694e5f3be239e09d09eeae6a594..b6f2041f08b5c074d16b4b56415d2c31eb520e84 100644 (file)
@@ -8948,7 +8948,7 @@ static int bgp_aggregate_set(struct vty *vty, const char *prefix_str, afi_t afi,
        }
 
        aggregate->as_set = as_set_new;
-       aggregate->safi = safi;
+
        /* Override ORIGIN attribute if defined.
         * E.g.: Cisco and Juniper set ORIGIN for aggregated address
         * to IGP which is not what rfc4271 says.
index 43033c8c39493e15923085dd48f3a82fdb15c200..7f4a3b918cdec490cae64f02363d5fb65ed2d84b 100644 (file)
@@ -492,9 +492,6 @@ struct bgp_aggregate {
        /* Aggregate route's as-path. */
        struct aspath *aspath;
 
-       /* SAFI configuration. */
-       safi_t safi;
-
        /** MED value found in current group. */
        uint32_t med_matched_value;