Merge pull request #4325 from sworleys/Order-Recv-Nexthops

zebra: Modify zebra to order nexthops received
This commit is contained in:
Renato Westphal 2019-07-12 15:25:37 -03:00 committed by GitHub
commit 02a71d1015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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++;
}