bgpd: remove unused safi in bgp_aggregate structure

Remove the unused safi field in bgp_aggregate structure.

Signed-off-by: Enke Chen <enchen@paloaltonetworks.com>
This commit is contained in:
Enke Chen 2025-01-11 14:14:10 -08:00
parent a962ff7833
commit d015e1d7d3
2 changed files with 1 additions and 4 deletions

View 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->as_set = as_set_new;
aggregate->safi = safi;
/* Override ORIGIN attribute if defined. /* Override ORIGIN attribute if defined.
* E.g.: Cisco and Juniper set ORIGIN for aggregated address * E.g.: Cisco and Juniper set ORIGIN for aggregated address
* to IGP which is not what rfc4271 says. * to IGP which is not what rfc4271 says.

View File

@ -492,9 +492,6 @@ struct bgp_aggregate {
/* Aggregate route's as-path. */ /* Aggregate route's as-path. */
struct aspath *aspath; struct aspath *aspath;
/* SAFI configuration. */
safi_t safi;
/** MED value found in current group. */ /** MED value found in current group. */
uint32_t med_matched_value; uint32_t med_matched_value;