From d015e1d7d312201c65f3b7d773e5a7606f3e486e Mon Sep 17 00:00:00 2001 From: Enke Chen Date: Sat, 11 Jan 2025 14:14:10 -0800 Subject: [PATCH] bgpd: remove unused safi in bgp_aggregate structure Remove the unused safi field in bgp_aggregate structure. Signed-off-by: Enke Chen --- bgpd/bgp_route.c | 2 +- bgpd/bgp_route.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index f520c2e2bc..b6f2041f08 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -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. diff --git a/bgpd/bgp_route.h b/bgpd/bgp_route.h index 43033c8c39..7f4a3b918c 100644 --- a/bgpd/bgp_route.h +++ b/bgpd/bgp_route.h @@ -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; -- 2.39.5