zebra: Modify zebra to order nexthops received

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2019-01-24 10:13:22 -05:00 committed by Stephen Worley
parent 379ae68584
commit cf05bc9424

View File

@ -193,7 +193,7 @@ int zebra_check_addr(const struct prefix *p)
/* Add nexthop to the end of a rib node's nexthop list */
void route_entry_nexthop_add(struct route_entry *re, struct nexthop *nexthop)
{
_nexthop_add(&re->ng.nexthop, nexthop);
_nexthop_group_add_sorted(&re->ng, nexthop);
re->nexthop_num++;
}