diff options
| author | Enke Chen <enchen@paloaltonetworks.com> | 2024-10-14 18:42:15 -0700 | 
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-10-15 14:25:51 +0000 | 
| commit | 839a1c66f35931a9f814ff6efebe54af50379b70 (patch) | |
| tree | 5831e7a8d9edf7e6ef67ce5f0b92a61269bda753 /bgpd/bgp_attr.c | |
| parent | 3135d7597676ab32abf15bb60f4742e6b90b1f9b (diff) | |
bgpd: fix route selection with AIGP
The nexthop metric should be added to AIGP when calculating the
bestpath in bgp_path_info_cmp().
Signed-off-by: Enke Chen <enchen@paloaltonetworks.com>
(cherry picked from commit 081422e8e71085d3a3d4d2ff0bc1e1abaff0d52e)
Diffstat (limited to 'bgpd/bgp_attr.c')
| -rw-r--r-- | bgpd/bgp_attr.c | 10 | 
1 files changed, 0 insertions, 10 deletions
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c index a835a6df90..bb56ac8be1 100644 --- a/bgpd/bgp_attr.c +++ b/bgpd/bgp_attr.c @@ -479,16 +479,6 @@ static bool bgp_attr_aigp_get_tlv_metric(uint8_t *pnt, int length,  	return false;  } -static uint64_t bgp_aigp_metric_total(struct bgp_path_info *bpi) -{ -	uint64_t aigp = bgp_attr_get_aigp_metric(bpi->attr); - -	if (bpi->nexthop) -		return aigp + bpi->nexthop->metric; -	else -		return aigp; -} -  static void stream_put_bgp_aigp_tlv_metric(struct stream *s,  					   struct bgp_path_info *bpi)  {  | 
