mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 11:48:50 +00:00
eigrpd: Improve external route distance comparison
If the new nexthop is external while the previous best was Internal or Connected, it should always loose. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
7cfa432255
commit
3aea4e507b
@ -414,9 +414,13 @@ enum metric_change eigrp_topology_update_distance(struct eigrp_fsm_action_messag
|
||||
case EIGRP_EXT:
|
||||
{
|
||||
ext_data = msg->data.ipv4_ext_data;
|
||||
if (eigrp_metrics_is_same(ext_data->metric,
|
||||
entry->reported_metric))
|
||||
return change;
|
||||
|
||||
if (prefix->nt == EIGRP_TOPOLOGY_TYPE_REMOTE_EXTERNAL) {
|
||||
if (eigrp_metrics_is_same(ext_data->metric,
|
||||
entry->reported_metric))
|
||||
return change;
|
||||
} else
|
||||
change = METRIC_INCREASE;
|
||||
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user