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;